yarn/npm淘宝源配置
获取设置
npm config get registry
yarn config get registry
设置淘宝镜像
npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
查询镜像地址
npm install nrm -g
nrm ls
本文介绍了如何在NPM和Yarn中配置淘宝镜像源,包括获取当前注册表地址、设置新的镜像地址以及查询镜像地址的方法,以提高包管理器在中国的下载速度。
yarn/npm淘宝源配置
获取设置
npm config get registry
yarn config get registry
设置淘宝镜像
npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
查询镜像地址
npm install nrm -g
nrm ls
4230
856
6038
1920
4833

被折叠的 条评论
为什么被折叠?