针对已有的项目,打开 .yarnrc.yml 文件。
.yarnrc.yml
随后在文件中添加:npmRegistryServer: "https://repo.isharkfly.com/repository/npm/" 配置。
npmRegistryServer: "https://repo.isharkfly.com/repository/npm/"
这个配置将会指定 Yarn 从那个仓库为当前的项目下载依赖。
这个配置只对当前的项目有效。