npm 使用淘宝镜像 npm 使用淘宝镜像

npm 使用淘宝镜像

 

1. npm临时使用淘宝镜像安装依赖包

npm i -g express --registry https://registry.npm.taobao.org

2.npm持久使用淘宝镜像安装依赖包
npm config set registry https://registry.npm.taobao.org
npm i -g express

3. cnpm 使用
安装cnpm
npm i -g cnpm --registry=https://registry.npm.taobao.org
安装插件
cnpm i -g  vue vue-cli

4. 相关链接
npm淘宝镜像


原文地址:https://www.cnblogs.com/justSmile2/p/11153828.html

1. npm临时使用淘宝镜像安装依赖包

npm i -g express --registry https://registry.npm.taobao.org

2.npm持久使用淘宝镜像安装依赖包
npm config set registry https://registry.npm.taobao.org
npm i -g express

3. cnpm 使用
安装cnpm
npm i -g cnpm --registry=https://registry.npm.taobao.org
安装插件
cnpm i -g  vue vue-cli

4. 相关链接
npm淘宝镜像


原文地址:https://www.cnblogs.com/justSmile2/p/11153828.html

猜你喜欢

转载自www.cnblogs.com/zqq-blog/p/12629607.html
今日推荐