npm uses domestic mirrors

 The first way to use cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

Use the cnpm command to install the module (name module name):

cnpm install name

 The second configuration registry ( recommended )

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

//查看
npm config get registry

 

 

Guess you like

Origin blog.csdn.net/takujo/article/details/86743663