mac remove nodejs and npm code example
Example 1: brew uninstall node
brew uninstall node;
which node;
sudo rm -rf /usr/local/bin/node;
sudo rm -rf /usr/local/lib/node_modules/npm/;
brew doctor;
brew cleanup --prune-prefix;
Example 2: uninstall node
In IOS terminal:
brew uninstall node
Use sudo if ask for permitions