I am trying to run my index.js through nodemon start, but don't know why and where it is failing.
Asked
Active
Viewed 62 times
-1
-
It seems a problem in your package.json file. Have you changed anything there? – Muneeb Jan 16 '20 at 04:47
-
no. it was working fine with node index.js – Jan 16 '20 at 04:50
-
no. You miss a `,` at the end of line 7 of your package.json. If that doesn't solve your error, consider editing your question with your package.json, index.js and error trace in as code – L. Faros Jan 16 '20 at 04:51
2 Answers
1
Your json is wrong you need to add "," after the test
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1", <-- ADD COMMA HERE
"start": "nodemon index.js"
}

Prabath Udayanga
- 11
- 1