设置镜像源:
npm config set registry http://registry.npmmirror.com
npm install -g cnpm --registry=http://registry.npmmirror.com
清除缓存
npm cache verify
恢复安装:
npm config set registry https://registry.npmjs.org