Nodemon: Command not found [Fixed]

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]

You can fix this error by using ‘npx‘ with this command. I think you are using commands like this “nodemon javascript.js“. You can use ‘npx‘ with a command like this “npx nodemon javascript.js“.

 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.

Solved: JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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.

Fixed: AttributeError: ‘str’ object has no attribute ‘decode’

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]

Use the npx to solve the error “nodemon: command not found“, e.g. npx nodemon javascript.js, or install the package globally by running npm install -g nodemon to be able to use the command without adding the npx before the command.

If you are still facing the issues please let me know in the comments section. I would love to solve your javascript problems. Thanks for visiting our Blog.

Leave a Reply