欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

安装和使用 yarn,使用国内镜像加速 npm 和 yarn

最编程 2024-03-12 21:56:09
...

安装yarn

https://yarnpkg.com/lang/zh-hans/docs/install/

使用国内镜像加速npm和yarn

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

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

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