i am not able to use nodemon in linux system

525 views
Skip to first unread message

jay prakash

unread,
Nov 29, 2015, 8:59:45 AM11/29/15
to nodejs
i am not able to use nodemon in linux system? it says nodemon command not found... plz help

Aria Stewart

unread,
Nov 29, 2015, 9:25:18 AM11/29/15
to nod...@googlegroups.com

> On Nov 29, 2015, at 7:06 AM, jay prakash <fonef...@gmail.com> wrote:
>
> i am not able to use nodemon in linux system? it says nodemon command not found... plz help

How did you install it?

There's several things that can go wrong here:

- you didn't install it globally. In that case, it's in your current project's node_modules/.bin directory. Run it with "node_modules/.bin/nodemon".
- you did install it globally, but it's not in your PATH: "npm config get prefix" -- make sure that path with /bin at the end is in your PATH environment variable, or adjust the npm prefix with "npm config set prefix" to be somewhere that is in the path. If /usr/local/bin is in your path, try "npm config set prefix /usr/local"
- you did install it, but there was an error -- it would have shown, but sometimes people miss these. try "npm install -g nodemon" again.
- there's a slim chance your shell is remembering that that wasn't a command -- a few old versions of bash cached negative lookups in addition to positive ones, and if you had it previously, and it was removed, your shell could remember the old path. Try typing "hash -r" and try again. This is unlikely, however, since that hasn't been a feature for quite some time, and modern bash also tries the slow way if the fast cached path is not present.

Good luck!

Aria
Reply all
Reply to author
Forward
0 new messages