Programmers learn & share
0 votes

Problem :

Facing following Node.Js error

'npm' is not recognized as an internal or external command, operable program or batch file.

by (6.9k points)   | 33 views

1 Answer

0 votes

Solution :

To make node.js work on Windows 7 please perform following steps:

  1. Please click the Start button and then click Control Panel
  2. Click on User Accounts
  3. Click on Change my environment variables
  4. Now select the PATH and click on the Edit button
  5. At the end of the Variable value, add the C:\Program Files\nodejs
  6. Click on Ok from the "Edit User Variable" window, after that click on Ok from the "Environment Variables" window
  7. Click on Start button then type cmd into the search and hit enter
  8. At the prompt (C:\>) type npm and hit enter; you should now see some help text rather than "npm is not recognized..."

Please start using npm now.

by (36.1k points)  
2,245 questions
2,807 answers
241 users