Home > Enterprise >  Nodemon not working on new project with express
Nodemon not working on new project with express

Time:09-27

I have a new project folder configured and running with express.js and the server is running fine on port 3000. I have installed nodemon globally using the sudo command so I expect I don't need to add this as a dependency or locally within the project.

When installing nodemon there are no errors, however when i fire the command nodemon server.js the command line essentially doesn't do anything and stops accepting commands.

I'm wondering if I'm missing something and hoping someone can point me in the right direction. Thanks in advance for your time.

CodePudding user response:

Use npm install -g nodemon this command to install nodemon globally and try to run nodemon [your node app]. For better understanding go through link.

CodePudding user response:

Try adding this in package.json scripts :

 "start": "nodemon server.js"

then run npm run start

  • Related