skip to Main Content

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!

ss of vscode

2

Answers


  1. npm install and then npm run dev

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search