当前位置: 动力学知识库 > 问答 > 编程问答 >

I installed node,but couldn't use npm

问题描述:

whether I use .pkg from nodejs.com or brew install node, the node can be successfully installed but not the npm.

WineHouse:~ yj$ node -v

v4.2.1

WineHouse:~ yj$ npm

-bash: npm: command not found

WineHouse:~ yj$ brew install npm

Warning: node-4.2.1 already installed

网友答案:

Follow the solution provided in the gist: Fixing npm On Mac OS X for Homebrew Users

分享给朋友:
您可能感兴趣的文章:
随机阅读: