-1

error image with js and json file

I am trying to run my index.js through nodemon start, but don't know why and where it is failing.

sshashank124
  • 31,495
  • 9
  • 67
  • 76
  • 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 Answers2

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"
}
0

Use npm init package-json for making package.json

$ npm start

package.json index.json terminal

Ankit Kumar Rajpoot
  • 5,188
  • 2
  • 38
  • 32