npm set Taobao mirror, nrm, nodemon

1. Set Taobao Mirror

1. Use Taobao Mirror through cnpm:

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

2. Set npm as Taobao image:

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

 3. View cnpm mirror settings:

npm config get registry

4. View cnpm mirror settings:

cnpm config get registry

    When looking at the mirror image, we will encounter the security policy that win10 does not allow scripts to run. We need to open powershell or cmd with administrator privileges to execute

set-executionpol

Guess you like

Origin blog.csdn.net/meihuacike/article/details/127759297