Missing script nodemon npm error fixed
To fix this issue follow the given instruction:
- Open the "package.json" file of your project.
- Locate the "script" key.
- Now add the following values "nodemon": "nodemon index.js". Note "index.js" is not necessary to add, it will work fine without it.
- Save the file.
-
Now in the terminal write "npm run nodemon". This will start your
nodemon.
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.
0 Comments