暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

windows下npm官方源切换到淘宝源

智慧大数据 2018-03-16
367

前提:

1、本插件需要已经完成安装node模块;

2、本插件为以安装完npm插件;

开始配置:

一.通过命令配置
1. 命令

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

2. 验证命令

npm config get registry

如果返回https://registry.npm.taobao.org,说明镜像配置成功。

 

二、通过使用cnpm安装
1. 安装cnpm

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


2. 使用cnpm

cnpm install xxx




文章转载自智慧大数据,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论