Are you facing the “nodemon: command not found” error? Don’t worry. Today I will show you how to fix this error: “command not found nodemon.”
Fixed: nodemon: command not found
The meaning of this error is that the system is not recognizing your “nodemon” command. We can solve this problem using two methods. Let’s discuss both in detail.
Method 01: command not found: nodemon [solved]
npx nodemon@latest server.js
Method 02: command not found nodemon [fixed]
You can solve this error by installing “nodemon” globally. You can use this command to install nodemon globally.
Install nodemon globally
#command to install nodemon globally --> npm install -g nodemon
[Fixed] Install nodemon globally permissions
If you decided to install the nodemon globally but you are facing permission issues. You can use run the command as admin.
Install nodemon globally on mac and Linux using admin permission
sudo npm install -g nodemon
Install nodemon globally on windows using admin permission
If you want to install nodemon globally on windows you can run the command prompt as admin and cak easily install nodemon globally.
Conclusion on nodemon: command not found [fixed]