• Register
0 votes
93 views

Problem :

Facing following Node.Js error

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

6 5 3
6,930 points

Please log in or register to answer this question.

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.

9 7 4
38,600 points

Related questions

0 votes
1 answer 25 views
25 views
Problem: I have faced this message, any help: 'Tsc' is not recognized as an internal or external command, operable program or batch file.
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
1 answer 13 views
13 views
Problem: I faced this error, how I can fix it: Nodemon' is not recognized as an internal or external command, operable program or batch file.
asked Mar 13 Wafa Abu Yousef 6.1k points
0 votes
1 answer 1.8K views
1.8K views
Problem : I am new to type script and unable to compile my type script file. When I try to hit Ctrl+Shift+B in my VS Code, I face below error " ‘Tsc' is not recognized as an internal or external command, operable program or batch file." I used ... C:\Users\mphil\AppData\Roaming\npm\node_modules\typescript\bin\tsc C:\Users\mphil\AppData\Roaming\npm `-- typescript@2.1.5 How to fix above error?
asked Feb 15, 2020 mphil 2.3k points
0 votes
1 answer 2.4K views
2.4K views
Problem : I am beginner in the node.js .Currently I am trying to install node.js using the below command npm install nodemon --save. But when I try to run a server with below command nodemon server.js. then in my terminal I face below error: “Nodemon is not recognized as internal or external command, operable program or batch file”
asked Feb 13, 2020 mphil 2.3k points
0 votes
1 answer 3 views
3 views
Problem: I can't seem to find a solution; could you please help me “Javac is not recognized as an internal or external command operable program or batch file”?
asked Mar 30 tuhin1 47.2k points
0 votes
1 answer 3 views
3 views
Problem: As I mentioned in my previous query, I'm having difficulties with my learning; I've tried searching the web but haven't been able to find adequate information; could you assist me in continuing my project?
asked Mar 30 tuhin1 47.2k points
0 votes
1 answer 3 views
3 views
Problem: I can't able to recognised as an internal and external command operated program. Anyone here who can help me on this? If yes, then please answer me.
asked Mar 27 niyatiry 2.9k points
0 votes
1 answer 24 views
24 views
Problem : How to fix this erro: Composer' is not recognized as an internal or external command, operable program or batch file..
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 114 views
114 views
Problem: psql' is not recognized as an internal or external command, operable program or batch file.
asked Feb 18 Lucky Guy 1.5k points
0 votes
1 answer 45 views
45 views
Problem: make' is not recognized as an internal or external command, operable program or batch file.
asked Feb 18 Lucky Guy 1.5k points