remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development
http://nodemon.io/
MIT License
26.21k stars 1.72k forks source link

Should not able to install nodemon globally #2109

Closed santoshmanaguli closed 1 year ago

santoshmanaguli commented 1 year ago
  1. I do have nodemon installed in my package.json file but still its does not recognize it and gives an error: 'nodemon: command not found' (I did only npm install nodemon)

  2. After that I did try npm install --save-dev nodemon and the changes that reflected in my package.json was <"devDependencies": {"nodemon": "^2.0.21"}> and still it gave me same above error

  3. Finally I install it globally and it worked.

But my question is when I do have nodemon installed in my package.json file then I should not be allowed to install it globally and It should recognize the dependency

Correct me if I am wrong, or if I am missing somethings

remy commented 1 year ago

How are you running the local dependancy?

santoshmanaguli commented 1 year ago

nodemon <file_name>

github-actions[bot] commented 1 year ago

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. Thank you for contributing <3

github-actions[bot] commented 1 year ago

Automatically closing this issue due to lack of activity