Commande Nodemon n'est pas trouvée Linux
sudo npm install nodemon -g
Restu Wahyu Saputra
sudo npm install nodemon -g
sudo npm install nodemon -g
// This command will install nodemon into the system
// package.json
"scripts": {
"dev": "nodemon server.js"
},
npx nodemon server.js
or add in package.json config:
...
"scripts": {
"dev": "npx nodemon server.js"
},
...
then run:
npm run dev
// Installing globally should do the trick if you get 'command not found' error //
npm install -g nodemon --save-dev
"scripts": {
"dev": "./node_modules/nodemon/bin/nodemon.js yourServer.js"
},
//then run
$ npm run dev