Reputation: 301
I am trying to install nodejs and npm on my Windows 10 PC. Below are the steps I followed for the same
'nvm install v5.1.0
nvm use 5.1.0
node -v
and got the response back v5.1.0npm --version
I am getting error saying npm is not recognized as an internal or external commandI updated the environment variables to set the PATH C:Program Files\nodejs. Restarted PC, and restarted Command prompt still no luck. Really appreciate any help on this. thanks
Upvotes: 7
Views: 15577
Reputation: 1
after execute nvm on
, you will have
enter image description here
and make sure the target is valid enter image description here
Upvotes: 0
Reputation: 550
I had the same problem after I switched from one node version to another using nvm use ----
. Apparently nvm disabled itself at some point and using nvm on
enabled it, now I have access to npm again.
The solution came about from checking this page discussing the same problem
Upvotes: 19