NPM和Yarn添加淘宝镜像

NPM设置淘宝镜像

1.查询当前配置的镜像html

npm get registry npm

> https://registry.npmjs.org/小程序

设置成淘宝镜像微信小程序

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

 

2.换成原来的htm

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

 

Yarn 设置淘宝镜像

1.查询当前配置的镜像get

yarn config get registryclass

> https://registry.yarnpkg.com后台

设置成淘宝镜像

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

 

近期刚上线一门基于微信小程序、公众号和小程序云开发的微信受权、分享和支付的专项课程,若是你对支付感兴趣能够考虑入手:

https://coding.imooc.com/class/343.html

React全家桶开发通用的后台管理系统:

https://coding.imooc.com/class/236.html

Vue2.0+Vue-Router+Vuex+Node+Mongo开发全栈商城课程

https://coding.imooc.com/class/113.html

慕课讲师:河畔一角

讲师地址:http://www.imooc.com/u/1343480

相关文章
相关标签/搜索