WineHouse:~ user$ npm
-bash: npm: command not found
WineHouse:~ user$ node -v
v4.2.1
WineHouse:~ user$ brew install npm
Warning: node-4.2.1 already installed
具体情况如上所示,请问为什么会这样呢?
下载官网的安装包吧
https://nodejs.org/en/
WineHouse:~ user$ npm
-bash: npm: command not found
WineHouse:~ user$ node -v
v4.2.1
WineHouse:~ user$ brew install npm
Warning: node-4.2.1 already installed
具体情况如上所示,请问为什么会这样呢?
下载官网的安装包吧
https://nodejs.org/en/