1, change the source npm
Solution: Replace the source into Taobao
npm config set registry https://registry.npm.taobao.org
- the configuration can be verified by successful in the following manner
npm config get registry
- or npm info express
2, cnpm
Deleting the original all agents
npm config rm proxy
npm config rm https-proxy
Then use npm install -g cnpm --registry = https: //registry.npm.taobao.org installed Taobao cnpm
You can use the Taobao cnpm