npm源地址查看、切换

1.查看镜像源

npm get registry

2.切换官方源

npm config set registry http://www.npmjs.org

3.切换淘宝源

npm config set registry http://registry.npm.taobao.org
原文地址:https://www.cnblogs.com/jerome92/p/13958829.html