关于npm 修改为淘宝镜像

近期总有一些包加载超时,比如node-sass,还是默默动手修改为淘宝镜像
配置命令如下

 $ npm config get registry    # 查看当前镜像 
 $ npm config set registry  https://registry.npm.taobao.org   #配置淘宝镜像

就是如此简单了,如果需要安装配置cnpm的,请移步至淘宝镜像官网

猜你喜欢

转载自blog.csdn.net/weixin_39370315/article/details/84256746