PS C:UsersDell> npm install -g cnpm --registry=https://registry.npm.taobao.org
npm ERR! fetch failed https://registry.npm.taobao.org/cnpm/download/cnpm-4.2.0.tgz
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT 121.194.7.19:80
解决了,重装了node,然后就正常了。。
其实也可以直接改代码
vi .npmrc
i
然后把淘宝源加进去就行了