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
Post a Comment