0

I have a question about usage of Nodejs.

I installed it on Win7 and run (green Node.js icon) it, but when I tried to run "npm install" command it dodn't work. I had to move to Nodejs command prompt where npm is working.

Is that how it supposed to work?

Sobis
  • 1,385
  • 4
  • 20
  • 29
  • No, I can call npm update from anywhere. Do you mean you had to move to the folder where node is installed? What error do you get? – Eric Smekens Nov 05 '13 at 07:14
  • If you had the command window open at the time of install, the path wouldn't have been adjusted. So, you'd need to start a new command prompt. – WiredPrairie Nov 05 '13 at 12:04

2 Answers2

1

Once you install NodeJS under Windows, it goes into the global PATH, meaning that it is available in the usual Windows command prompt. So, just open one by pressing:

  1. Windows+R
  2. Type cmd and press Enter

Then type node -v. You should be able to see an appropriate response.

hopper
  • 13,060
  • 7
  • 49
  • 53
Krasimir
  • 13,306
  • 3
  • 40
  • 55
0

Add your AppData\Roaming\npm and Program Files\nodejs folder to your path.

Also have a look at this: Node.js doesn't recognize system path?

Second answer helped me to add my Roaming folder.

Community
  • 1
  • 1
Eric Smekens
  • 1,602
  • 20
  • 32