Nodemon Not Working: -bash: nodemon: Command Not Found

Fix “nodemon: command not found” by installing it globally, using npx, or setting the correct PATH. You can also run it as an npm script for convenience.

If you’re trying to run nodemon from the terminal and see the error: nodemon: command not found, it usually means the nodemon package is not installed globally or your terminal can’t find it in your system’s PATH.

Solution 1: Install nodemon Globally

You can install nodemon globally:
npm install -g nodemon
This makes it available system-wide so you can run nodemon from any directory.

Solution 2: Use npx (No Global Install Needed)

If you don’t want a global install:
npx nodemon app.js
This uses the version in your project’s node_modules folder (if installed).

Solution 3: Check Your PATH

Make sure your global npm path is in your system’s PATH. To find it:
npm config get prefix
Make sure the output (e.g., /usr/local/bin) is in your terminal’s PATH variable.
Also Read: How To Use Node JS API in 2025

Solution 4: Use nodemon as an NPM Script

Add this to your package.json:
"scripts": {"dev": "nodemon app.js" }
Run with:
npm run dev

Conclusion

Install nodemon globally, use npx, or run it via npm scripts to avoid “command not found” issues in Bash.
Related

Writing to files is a common task in Node.js, whether for logging, saving uploads or creating reports. Node.js has various methods through the built-in fs…

07 Oct, 2025

Startups succeed when they move fast and that requires the right technology. Node.js Developers have become the backbone for agile teams, powering scalable, high-performance apps…

24 Sep, 2025

Node.js has become the backbone of modern web applications, powering scalable platforms across Europe. Its efficiency and speed make it ideal for fintech, SaaS, e-commerce…

24 Sep, 2025
Request a Quote Schedule a Meeting