I am completely new to nodejs. I am trying to get nodejs to work on my Windows 2008 box in order to install Karma which I would use for TDDing my AngularJs code. I have done the following steps so far
where npm
gives me c:\User\<Username>\AppData\Roaming\npm
which has nothing in itC:\Program Files\nodejs
. Opening a command prompt in this directory makes npm
work fine.C:\Program Files\nodejs
to PATH
only to get the same error again that npm is not recognized
Node.js
icon in my Start -> Programms
mennu which takes me to nodejs console but not sure what to do with that. Have I missed any important step in the process?
I figured out that if I open "Nodejs command prompt" from program files, then npm is recognized. How do I make it work on a normal command prompt?
After node
I started facing a similar problem with another application. I posted this question on superuser and as rightly pointed out by the accepted answer, I had an additional quote in my PATH
which was causing issues with all the paths added after the quote. I have a feeling that some Chocolatey install adds this troubling quote but I am just not sure which one.
Either delete the path from user variable or correct the right path (C:\Program Files\nodejs). Restart CMD and it should work.
The Npm command not found error can appear when you install or upgrade npm. On Windows, the cause of this error could be that a PATH or system variable is not correctly set. The error can also occur if you do not have npm or Node. js installed, have an outdated version, or have permission issues.
Just add:
;C:\Program Files\nodejs\
To the end of your Path variable on the "User variable" section of the Environment Variables on the System Properties.
After that, reopen your command prompt and type
npm
This should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With