and switch between npm cnpm

1. Set the use Taobao cnpm

npm config set registry https://registry.npm.taobao.org

2. Check whether the configuration, you can use the command directly after a successful cnpm

npm config get registry

3. Restore npm warehouse

npm config set registry https://registry.npmjs.org

 

Guess you like

Origin www.cnblogs.com/chendongbky/p/11125648.html