nodemon not found in npm

前端 未结 29 1502
终归单人心
终归单人心 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 10:51

    You can resolve this problem by adding nodemon to your package.json:

    npm install nodemon --save-dev
    

    The problem happens when nodemon does not exist in /node_modules/.bin.

    Added --save-dev since it's required during development only.

提交回复
热议问题