sudo: npm: command not found
For MAC users, the follow steps worked for me.
If you get Error for Brew, Here's the command you need to type first in the terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Then run following commands:
$ brew update$ brew uninstall node$ brew install node$ brew postinstall