I installed node with brew 'brew install node', and I get a warning message
'Warning: The post-install step did not complete successfully'.
-bash: /usr/local/bin/npm: No such file or directory
Yup, that thing happened to me too. After a lot of searching I came to a solution. I think this would help you.
sudo brew uninstall node brew update brew upgrade brew cleanup brew install node sudo chown -R myusername /usr/local brew link --overwrite node sudo brew postinstall node