1sudo npm install nodemon -g
2// This command will install nodemon into the system
1npx nodemon server.js
2or add in package.json config:
3
4...
5"scripts": {
6 "dev": "npx nodemon server.js"
7 },
8...
9then run:
10
11npm run dev
1npm config set prefix /usr/local
2sudo npm install nodemon -g --registry=https://registry.npm.taobao.org
312