nodebrewでインストールしたnode.jsとnpmをアンインストール
***ちなみに、インストール時のコマンド。
% curl -L git.io/nodebrew | perl - setup
[手順]
1. node.jsの場所を確認
% which node
/Users/haiju/.nodebrew/current/bin/node
2. ~/.zshrcに追加した以下の1行を削除し、有効化
export PATH=$HOME/.nodebrew/current/bin:$PATH
source ~/.zshrc
3. 2のパス以下をコマンドで手動削除
% rm -rf .nodebrew
4. nodeとnpmのバージョンを確認しコマンドが実行できないことを確認
% node -v
zsh: command not found: node
% npm -v
env: node: No such file or directory
[参考サイト]