Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  26] [ 7]  / answers: 1 / hits: 32779  / 5 Years ago, thu, june 20, 2019, 12:00:00

Currently I already install nodemon with command npm install -g nodemon. And I got Permissions issue, so I do command with sudo npm install -g nodemon and i did it. But when I make "nodeman" command was always show nodemon: command not found.


More From » node.js

 Answers
10

If for any reasons you are unable to set a Global PATH then under your current project directory, run


npm install nodemon --save-dev

then under "scripts" in your package.json file, add "start": "nodemon app.js" like this -


"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"start": "nodemon app.js"
}

then run


npm start

[#51979] Wednesday, June 12, 2019, 5 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gonzalo

Total Points: 336
Total Questions: 114
Total Answers: 98

Location: Iceland
Member since Sat, Sep 17, 2022
2 Years ago
;