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
其实也可以直接改代码