0

I have a question about usage of Node.js.

I installed it on Windows 7 and ran (green Node.js icon) it, but when I tried to run "npm install" command, it didn’t work. I had to move to the Node.js command prompt where npm was working.

Is that how it is supposed to work?

2
  • 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? Commented Nov 5, 2013 at 7: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. Commented Nov 5, 2013 at 12:04

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.