NPM和Yarn添加淘宝镜像

NPM设置淘宝镜像

1.查询当前配置的镜像

npm get registry

> https://registry.npmjs.org/

设置成淘宝镜像

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

2.换成原来的

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

Yarn 设置淘宝镜像

1.查询当前配置的镜像

yarn config get registry

> https://registry.yarnpkg.com

设置成淘宝镜像

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

上一篇:【持续集成】[Jenkins]Job中如何传递自定义变量


下一篇:ECSHOP分类页面筛选功能(按分类下子分类和品牌筛选)