How to fix npm error missing script nodemon

 Missing script nodemon npm error fixed

npm error nodemon missing

To fix this issue follow the given instruction:
  1. Open the "package.json" file of your project.
  2. Locate the "script" key. 
    npm error nodemon missing script
  3. Now add the following values "nodemon": "nodemon index.js". Note "index.js" is not necessary to add, it will work fine without it.        
    npm error nodemon missing script
  4. Save the file.
  5. Now in the terminal write "npm run nodemon". This will start your nodemon. 
    npm error nodemon missing script

Note: If the error remains, then delete the other values in the script key other than the one which we added now.



I hope this article was helpful to you.
Thank you.

Post a Comment

0 Comments