My npm in terminal isn't working after Mavericks update.
node app.js
works well and runs my app, but when I run npm
followed by anything I get -bash: npm: command not found
. I know this question has been asked before here:
Global installation with npm doesn't work after Mac OS X Mavericks update and How do I install a module globally using npm? and npm not working after reinstalling Mac OS X , but none of the answers resolved my situation.
$ echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/mongodb/bin