yarn config set registry https://registry.npmmirror.com/
时间: 2024-08-02 20:01:36 浏览: 113
Node.js安装与环境配置全攻略:从零到一轻松上手.pdf
To configure yarn to use the `https://registry.npmmirror.com/` as your package registry, you would run the following command in your terminal:
```bash
yarn config set registry https://registry.npmmirror.com/
```
This command sets the `registry` option in your local `.yarnrc` configuration file, which determines where Yarn should look for packages when installing or resolving dependencies.
**相关问题--:**
1. What other options can be set using `yarn config`?
2. How does this change affect offline installation and caching in Yarn?
3. Can I set a different registry for different projects in Yarn?
阅读全文