Nodemon: bash: nodemon: command not found

Created on 6 Apr 2013  Â·  13Comments  Â·  Source: remy/nodemon

I'm getting this error after I ran sudo npm install nodemon -g

Anyone else getting this?

Most helpful comment

The same problem for me.
I installed the nodemon npm install -g nodemon it was installed into /usr/local/lib/node_modules/nodemon but in console it was unavailable...

I solve the issue:
I unistalled the nodemon and reinstalled it with root permissions: sudo npm install -g nodemon and all works fine for me now.

All 13 comments

Just some thoughts. I haven't had that issue. Even opening a new terminal doesn't get you access to it? What OS and what do you get when you do which nodemon?

Mine is installed at /usr/local/bin/nodemon

Can you run it directly? Is your install location in your PATH?

The actual script itself is at /usr/local/lib/node_modules/nodemon/nodemon.js

Are you able to run node /usr/local/lib/node_modules/nodemon/nodemon.js ?

Ah, had to add the path to my Bash_profile

Thanks,
Bruce Ackerman
www.bruceackerman.com

On Sun, Apr 7, 2013 at 2:40 AM, michaelwills [email protected]:

Just some thoughts. I haven't had that issue. Even opening a new terminal
doesn't get you access to it? What OS and what do you get when you do which
nodemon?

Mine is installed at /usr/local/bin/nodemon

Can you run it directly? Is your install location in your PATH?

The actual script itself is at
/usr/local/lib/node_modules/nodemon/nodemon.js

Are you able to run node /usr/local/lib/node_modules/nodemon/nodemon.js ?

—
Reply to this email directly or view it on GitHubhttps://github.com/remy/nodemon/issues/159#issuecomment-16011044
.

Yep glad it worked.

@bcackerman how did you fix it? please could you share?? thanks

I m getting error ...

npm WARN install Couldn't install optional dependency: Unsupported
[email protected] D:\sudeep_dk\MEANnode\Mean\contact_passport
└── [email protected]

The same problem for me.
I installed the nodemon npm install -g nodemon it was installed into /usr/local/lib/node_modules/nodemon but in console it was unavailable...

I solve the issue:
I unistalled the nodemon and reinstalled it with root permissions: sudo npm install -g nodemon and all works fine for me now.

thanx web-jenezis solved mine too

npm install nodemon
$HOME/node_modules/nodemon/bin/nodemon.js

The simplest way to fix this bug on windows 10 i found was to reinstall node and git completely.

The same problem for me.
I installed the nodemon npm install -g nodemon it was installed into /usr/local/lib/node_modules/nodemon but in console it was unavailable...

I solve the issue:
I unistalled the nodemon and reinstalled it with root permissions: sudo npm install -g nodemon and all works fine for me now.

this is working thanks

The same problem for me.
I installed the nodemon npm install -g nodemon it was installed into /usr/local/lib/node_modules/nodemon but in console it was unavailable...

I solve the issue:
I unistalled the nodemon and reinstalled it with root permissions: sudo npm install -g nodemon and all works fine for me now.

thank u so much

First, I was running nodemon via npm scripts without any problems. Had installed it only locally npm install nodemon, did not want to do a global install because things usually work well without it when running the things via npm scripts.

...
"scripts": {
  "start": "nodemon test.js",
  "test": "tape test.js"
},
...

But suddenly, it stopped working, giving the nodemon: command not found error. I tried reinstall my package deps by npm install but no help.

Finally, I closed the terminal, reopened it, ran npm install nodemon again, and boom, it worked like before. There is something strange in the air.

Nodemon 1.19.0
Node 8.15.1
macOS Mojave 10.14.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ehmicky picture ehmicky  Â·  4Comments

fabianMendez picture fabianMendez  Â·  4Comments

dimsmol picture dimsmol  Â·  4Comments

endquote picture endquote  Â·  4Comments

Autre31415 picture Autre31415  Â·  4Comments