1.查看當前使用的鏡像源
npm config get registry
2.修改鏡像源
臨時修改
npm install 軟件名 --registry https://registry.npm.taobao.org/
全局修改
npm config set registry https://registry.npm.taobao.org/
3.使用第三方軟件修改切換鏡像源 nrm
安裝nrm
npm install -g nrm
查看當前所有可用鏡像源
nrm ls
使用淘寶鏡像源
nrm use taobao
測試訪問速度
nrm test taobao
from: https://learnku.com/articles/15975/npm-accelerate-and-modify-mirror-source-in-china