简体   繁体   English

如何在 pnpm 中处理 .yarnc? 从注册表安装私有?

[英]How to handle .yarnc in pnpm? Installing private from registry?

How to handle .yarnrc in pnpm?如何在 pnpm 中处理 .yarnrc?

Should I convert it somehow to pnpm equivalent of .yarnrc but I can't find any existing.我是否应该以某种方式将其转换为 .yarnrc 的 pnpm 等效项,但我找不到任何现有的。

So should pnpm use .yarnrc?那么 pnpm 应该使用 .yarnrc 吗? but it doesn't seem to be able to handle it...但它似乎无法处理它......

Currently it have problems to fetch libraries for example from artifactory (jfrog) where links to private repositories are provided for yarn in .yarnrc目前,例如从工件(jfrog)中获取库时存在问题,其中为 .yarnrc 中的纱线提供了指向私有存储库的链接

Can't find it in the doc nor googling...在文档中找不到它,也无法在谷歌搜索...

I'm little bit confused how to approach this我有点困惑如何解决这个问题

pnpm supports npm configuration files, so you can add this to .npmrc : pnpm 支持 npm 配置文件,因此您可以将其添加到.npmrc

registry=...

It should have the same value as npmRegistryServer in your .yarnrc (which you can delete).它应该与npmRegistryServer中的.yarnrc具有相同的值(可以删除)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM