Reputation: 509
I have installed the package.json that includes nodemon package (and others)
#npm list --depth 0
but the command #nodemon -v return a -bash error: "nodemon command not found”
I cant start my server.js with nodemon, the same error, but all works with #node server.js
Any idea? Thnks
Upvotes: 1
Views: 129
Reputation: 3965
You can use npx nodemon filename.js
With npm npm install nodemon -g
or with yarn yarn global add nodemon
, that way you can use nodemon
directly (nodemon filename.js
)
Upvotes: 1