Mac -bash: node: command not found

If you have already installed node and still doesn't work, you might try running brew link node. You could create a force link if an error occurs while creating the link. brew link --overwrite node


brew search node 

then brew install node@version, example:

brew install node@8

brew link node@8
node --version

Still getting node not found, try this:

brew link --overwrite --force node@8

I found the cause of the problem.

I had edited the .bash_profile to add the path to JAVA but I did not end it with a colon (:) so it ended up combining the path to JAVA with /usr/local/bin

Once I added the colon, everything started working


Try installing node with homebrew - brew install npm should do it