brew install npm "npm: command not found"
Solution 1:
I encountered the same issue. After searching and reading different things online, what worked for me was:
$ brew postinstall node
However, first please do execute:
$ brew doctor
and follow the instructions there first, like the comment in your question mentions.
Solution 2:
Try running
$ brew postinstall node
Solution 3:
Try the following:
$ brew update
$ brew uninstall node
$ brew install node
$ sudo chown -R YouComputerName /usr/local/lib/node_modules/
$ brew postinstall node
Solution 4:
the same problem with you, I fixed by:
/usr/local/lib/node_modules/npm/bin/npm-cli.js i -g npm