Home  >  Q&A  >  body text

node.js - How to run nodemon in a specified environment

Ubuntu16.04LTS, I first executed npm install -g nodemon, and then installed it again in the folder:
npm install --save nodemon, I am in# In ##package.json, specifies "script" as nodemon ./bin/www, but the system will prompt that there is no permission because nodemon points to the nodemon of the global environment at this time. , how can I make nodemon refer to the nodemon installed in the local environment?

PHP中文网PHP中文网2697 days ago854

reply all(1)I'll reply

  • 阿神

    阿神2017-05-31 10:38:12

    npm uninstall g nodemon delete the global one, the default is global

    reply
    0
  • Cancelreply