请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

安装国内的淘宝的代理不行

aricchoudeMacBook-Pro:bin aric$ sudo npm install -g cnpm --registry=https://registry.npm.taobao.org

Password:

npm ERR! not a package /usr/local/bin/cnpm

npm ERR! addLocal Could not install /usr/local/bin/cnpm

npm ERR! Darwin 15.6.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cnpm" "--registry=https://registry.npm.taobao.org"

npm ERR! node v4.4.5

npm ERR! npm  v2.15.5

npm ERR! path /tmp/npm-18514-feb184e8/unpack-ff66aa827a7f/package.json

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall open


npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-18514-feb184e8/unpack-ff66aa827a7f/package.json'

npm ERR! enoent This is most likely not a problem with npm itself

npm ERR! enoent and is related to npm not being able to find a file.

npm ERR! enoent 


npm ERR! Please include the following file with any support request:

npm ERR!     /usr/local/bin/npm-debug.log

aricchoudeMacBook-Pro:bin aric$ 


正在回答 回答被采纳积分+3

1回答

乐只君子 2016-08-05 12:33:11

文档写了,node最好是5.x

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信