install nodemon but zsh: command not found: nodemon code example
Example 1: nodemon command not found
npx nodemon server.js
or add in package.json config:
...
"scripts": {
"dev": "npx nodemon server.js"
},
...
then run:
npm run dev
Example 2: zsh: command not found: nodemon
npm config set prefix /usr/local
sudo npm install nodemon -g --registry=https://registry.npm.taobao.org
12