close

[Solved] nodemon command is not recognized in terminal for node js server

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error nodemon command is not recognized in terminal for node js server in javascript. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How nodemon command is not recognized in terminal for node js server Error Occurs?

Today I get the following error nodemon command is not recognized in terminal for node js server in javascript.

How To Solve nodemon command is not recognized in terminal for node js server Error ?

  1. How To Solve nodemon command is not recognized in terminal for node js server Error ?

    To Solve nodemon command is not recognized in terminal for node js server Error Does it need to be installed globally? Do you need to be able to just run nodemon server.js ? If not, you could always just call it from your local project directory. Should be here:
    node_modules/.bin/nodemon

  2. nodemon command is not recognized in terminal for node js server

    To Solve nodemon command is not recognized in terminal for node js server Error Does it need to be installed globally? Do you need to be able to just run nodemon server.js ? If not, you could always just call it from your local project directory. Should be here:
    node_modules/.bin/nodemon

Solution 1

  1. Install nodemon globally:C:\>npm install -g nodemon
  2. Get prefix:C:\>npm config get prefix You will get output like following in your console:C:\Users\Family\.node_modules_global Copy it.
  3. Set Path.
    Go to Advance System Settings → Environment Variable → Click New (Under User Variables) → Pop up form will be displayed → Pass the following values:variable name = path, variable value = Copy output from your console
  4. Now Run Nodemon:C:\>nodemon .

Solution 2

Does it need to be installed globally? Do you need to be able to just run nodemon server.js ? If not, you could always just call it from your local project directory. Should be here:

node_modules/.bin/nodemon

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment