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,315
  • 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
  • 12,640
  • 7
  • 49
  • 52
Krasimir
  • 13,032
  • 3
  • 39
  • 54
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,562
  • 20
  • 32