nodemon not found in npm

前端 未结 29 1509
终归单人心
终归单人心 2020-12-24 10:17

I have a problem: nodemon does not run off the npm script (e.g. npm start),
but if nodemon is called on the command line outside the npm script, nodemon run

29条回答
  •  一个人的身影
    2020-12-24 11:06

    This solution had worked for me:

    I assume that you have installed nodemon globally. If it's done follow this steps:

    open your .bash_profile file:

    nano .bash_profile
    

    past this to add a new alias in your bash profile:

    alias nodemon='~/.npm-global/lib/node_modules/nodemon/bin/nodemon.js'
    

    Now you can use nodemon command anywhere.

提交回复
热议问题