I’m working on a new fullstack project. I’m a beginner developer and this is my first time using visual studio code. Im trying to run "dev" script from my package.json using the command:
npm run dev
and
nodemon server.js
both the commands return errors. Please advise
Thanks in advance!
2
Answers
npm install and then npm run dev
Make sure nodemon is installed globally and then (optional) add the dev script to package.json:
“dev”: “nodemon server.is”
Then you can either run “npm run dev”
Or if you didn’t add it to the package.json just run “nodemon server.js”
Also make sure the file server.is exists and you’re in the right directory