我已经安装了节点使用brew install node,当我使用时,node -v我得到了以下内容v5.0.0.但是,当我尝试运行npm命令时,我得到了npm: command not found.
brew install node
node -v
v5.0.0
npm
npm: command not found
我试图跑brew install npm,但我得到了以下回应node-5.0.0 already installed.
brew install npm
node-5.0.0 already installed
它发生在节点也返回命令未找到,但我通过运行修复brew link node,但是npm仍然似乎不起作用.
brew link node
我该如何解决这个问题?
bash node.js npm osx-elcapitan
bash ×1
node.js ×1
npm ×1
osx-elcapitan ×1