Answers for "exec nodemon"

8

nodemon script

# Install nodemon
npm i nodemon
# Write a script like ...
"scripts": {
        "start":"nodemon index.js"
    }
# Start in your terminal with something like ...
nodemon ./server.js localhost 8000
or
npm run server
Posted by: Guest on April-23-2021
0

Use Nodemon in Express Server

// nodemon wraps around the node command. 
// To use, it, use nodemon wherever you would normally use the node 
// command. 
// To use it in the Express server that you just generated,
// you can go to the package.json file inside mynamedServer folder 
// and replace this line: "start": "node ./bin/www"
// with this "start": "nodemon ./bin/www"
Posted by: Guest on June-23-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language