• Register
0 votes
2.7k 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”

8 4 2
2,300 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I came across your above question and it is related to my skill set so I will help you in resolving your issue. You just need to follow below steps.

1.You need to install your nodemon globally using below command:

C:\>npm install -g nodemon

2.Then type below command to get prefix:

C:\>npm config get prefix

After the command executes successfully you will get the output like below in your console:

C:\Users\Family\.node_modules_global

Just Copy it.

3.Now you need to Set Path by following below navigation.
Go to your Advance System Settings → click on Environment Variable → Click on New (Under the User Variables) → Then it will display the Pop up form  → just Pass the below values:

4.variable name = path,
variable value = you need to Copy output from your console

5.At the end just Run Nodemon:

C:\>nodemon .
5 2 1
4,980 points

Related questions

0 votes
1 answer 37 views
37 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 8 views
8 views
Problem: What does this mean and how can I solve this > Node_env' is not recognized as an internal or external command, operable program or batch file.
asked Apr 22 ummeshani 10.8k points
0 votes
1 answer 48 views
48 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 2K views
2K 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 107 views
107 views
Problem : Facing following Node.Js error 'npm' is not recognized as an internal or external command, operable program or batch file.
asked Nov 18, 2019 peterlaw 6.9k points
1 vote
1 answer 8 views
8 views
Problem: How to fix this error? Cordova' is not recognized as an internal or external command, operable program or batch file.
asked Apr 22 PkGuy 23.5k points
0 votes
1 answer 11 views
11 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 3.9k points
0 votes
1 answer 4 views
4 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 48.9k points
0 votes
1 answer 6 views
6 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 48.9k points
0 votes
2 answers 787 views
787 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