• Register
0 votes
63 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 1.3K views
1.3K 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 1.6K views
1.6K 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 2.3K views
2.3K views
Problem : Currently I am using the windows server 2008 os. I download the composer setup.exe and install it to my PC . But when I try to install composer. I face below error: 'composer' is not recognized as an internal or external command, eg:- 'composer' is not recognized as an internal or external command, operable program or batch file.
asked Feb 4, 2020 jwilliam 3.9k points
0 votes
1 answer 111 views
111 views
Problem : I am facing following MinGW issue: 'gcc' is not recognized as an internal or external command, operable program or batch file.
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
2 answers 274 views
274 views
Problem : I have installed Git for Windows but when I try to use git command in Command Prompt I get the following message: 'git' is not recognized as an internal or external command, operable program or batch file.
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
1 answer 430 views
430 views
Problem : I have Windows 7 and tried to use the 'make' command but getting following error 'make' is not recognized as an internal or external command, operable program or batch file.
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 19 views
19 views
Problem: I am very new to cordova, phonegap, ant,sdk,jdk. I am learning to use phonegap/cordova. Everything is installed properly on my machine i.e cordova, phonegap, ant,sdk,jdk. But now suddenly it started saying that: "’Node' is not recognized as an ... insufficient knowledge I am unable to fix this issue. I am looking for cordova and phonegap experts who can help me in fixing this issue.
asked Sep 2, 2020 Raphael Pacheco 4.9k points
0 votes
2 answers 407 views
407 views
Problem : I am new to Programming. I have created a Maven Project, the JavaScript project is cloned as the git sub-module inside Maven Project. My directory structure is as below mavenapp/src/main/javascript/[npm project files] and inside the package.json my test is looking as below : " ... install But it is not working for me.. npm version : 5.5.1 node version : 9.3.0 How can I fix above error?
asked Mar 3, 2020 mphil 2.3k points
0 votes
1 answer 25 views
25 views
Problem: Hi: I am returning after a little break. I was examining and rehearsing Java these days routinely. I've enlisted myself in an online course to comprehend things in a superior manner. I believe it's helping me somewhat more. Anyway, today I've inquiry with respect to change in Java. I am understanding the java concept of internal and external command.
asked Nov 2, 2020 Mashhoodch 5.6k points
0 votes
2 answers 48 views
48 views
Hello colleagues, I really want to know How To Solve 'python' is not recognized as an internal or external command, operable program or batch file error. Thanks
asked Oct 23, 2020 psandprop 2.4k points