node.js - Nodemon for development environment -


i wanted know how use nodemon, , push git repo, , have other developers on project able use nodemon without having run command npm install -g nodemon. ideally, developers on project able run npm start , nodemon called whether or not it's installed globally. i've run npm install --save-dev nodemon, , i'm curious if there way nodemon run within node_modules, in start command in scripts section of package.json file.

if install locally, ie without -g flag, it's available in ./node_modules/.bin/nodemon. configure path in npm start script.

for example:

"start" : "./node_modules/.bin/nodemon app.js"


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -