I am installing ionic 2 on my Computer. Already installed Node js 0.12 with npm.
I succeed to install ionic 2 but when I check using my cmd it just gives Error "Ionic not recognized as external command"
The question is not clear enough. I would like you to tell more about the error.
Looking at the "not recognized as external command". It looks like you have not added ionic PATH as environment variable.
You can also try to clean the npm cache and re install ionic, it should work. Had a similar issue some time back. It had worked.
Related
I have followed available tutorials and searched around for answers but cannot find them. I have just added the npm package via the extensions tab and restarted the computer. I cannot get npm to be recognized in the terminal:
PS E:\Web Apps> npm
npm : The term 'npm' is not recognized...
Does this have to do with the directory? If so, not sure where to change the directory to.
To use npm on the terminal, you need to install nodejs. See this for window instruction.
You must install NodeJS in your system to access npm.
You can install it from https://nodejs.org/en/download/
I have already installed vimplug I can open the file but has no effect on Neovim 1
The error says that your plugin manager (vim-plug) isn't able to run the git executable. It needs to do this to fetch the plugins you're trying to load. So install git, make sure you can run it from your PowerShell command line, and you should be set.
I’ve a very strange problem from some days…
I’m working on a Ionic 3 Angular 5 app
I make some changes on code, save it and run:
npm i
ionic cordova run browser -lc
Looking log on terminal i see that it’s running a previous code
I’ve tried to delete npm cache, close terminal or vs.code but nothing
Someone has same problem ?
Some help ?
It's strange, but try deleting the folder www or use ionic serve.
I have tried to install ionic on Windows but installation has failed. What should I do?
I have tried more than 20 times but still I got the same problem.
Here I have attached the screenshot for this
Entered commands:
npm install -g cordova
npm install -g ionic
Note: this one windows server machine
My guess is that the NPM global path has not been added to your windows path.
These are the steps to try:
First verify that the command just installed can run. The output contains the full path to the command installed, just copy and paste it to the command line. In your case it might be something like this %APPDATA%\Roaming\npm\iconic -v
Lets assume that works. That means that the command was successfully installed and will run, now we need to add it to your PATH so you can run it from the command line.
Next, Press Windows key and type "path" and select "Edit environment variables for your account". From here. Add or append the path %APPDATA%\Roaming\npm to your PATH variable, and save the results.
Once it is on your PATH you can run it from any command shell window.
Next, start a new command shell (e.g., Windows+R, cmd, Enter) and then type the command iconic -v. Viola, it should work without requiring the full path to the script.
I'm doing most of this from memory so hopefully it's correct. But if it needs some tweeks, let me know and I'll update the answer.
For completness, this install didn't actually fail. The lines with fsevents are warnings. The fsevents package is only designed to work on Mac Unix so these warnings can be safely ignored.
As Suraj Rao mentioned, also see Nodejs cannot find installed module on Windows?.
So I saved an external JS file for a project I was working on. And when I did that at the top of my editor I got this error:
2.[jshint] Failed to load jshint library. Please install jshint in your workspace folder using 'npm install jshint' or globally using 'npm install -g jshint' and then press Retry.
What exactly am I supposed to do to fix these errors? I've seen other people post this issue but I don't understand the solutions that people have been giving them. Can anyone walk me through fixing these two issues in plain, easy to understand English?
The first error means that vscode can not find an install of npm. We use npm to install files that power IntelliSense for external modules such as express.
To fix it:
Install node/npm if you have not already: https://nodejs.org/en/download/
Restart VS Code
If you still see this warning message after doing this, take a look at the docs on this. The workaround is to set "typescript.npm" to point to where npm is installed on your computer, for example:
"typescript.npm": "/Users/matb/.nvm/versions/node/v8.9.1/bin/npm"
The second error means that vscode cannot find a copy of the jshint library. As the error messages says, the fix is to use npm to install a copy of jshint in your workspace. From a commandline in your workspace, run:
npm install jshint
For all your workspaces (globally)
npm install -g jshint