设置npm源为淘宝镜像

修改:

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

  配置后验证是否成功(查看当前npm源):

        npm config get registry    

还原:

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

猜你喜欢

转载自www.cnblogs.com/wuqilang/p/12336991.html