I am trying to run below command on my existing repo which has registry setup in the .npmrc
我正尝试在我的现有repo上运行以下命令,该repo在.npmrc中设置了注册表
bun install -y
BUN安装-y
The -y
flag is for generating yarn v1 lockfile
Y标志用于生成纱线v1锁定文件
It result into following error:
它会导致以下错误:
SegmentationFault at 188
188处的分段故障
How to setup the .rc file for bun to pickup?
如何设置.rc文件,让包子来取?
更多回答
yes, no mention about reading registry file
是,未提及读取注册表文件
What were the causes of the reported issues? What makes you think error: SegmentationFault at 188
has anything to do with "reading registry file"?
所报告问题的原因是什么?是什么让你认为错误:SegmentationFault在188有什么关系“读取注册表文件”?
Very interesting - in the issues that you just read, what was the cause of SegmentationFault at 188
- hint: one person said something about a proxy! Seems bun
is too immature to handle anything but direct connections
非常有趣-在您刚刚阅读的问题中,SegmentationFault值为188的原因是什么-提示:一个人说了一些关于代理的事情!BUN似乎太不成熟了,除了直接联系之外,什么都不能处理
github.com/oven-sh/bun/issues/565 - looks like someone is working on the issue of adding packages behind a proxy - the solution now is to wait, as this issue was raised a day ago
Githorb.com/ococor-sh/bun/Issues/565-看起来有人正在解决在代理后面添加包的问题-现在的解决方案是等待,因为这个问题是在一天前提出的
优秀答案推荐
Bun is still in alpha. Bugs like this would happen. Solution is to use another runtime like Nodejs, or Deno; or just wait for devs to solve this issue.
BUN仍在Alpha中。像这样的虫子就会发生。解决方案是使用另一个运行时,如NodeJS或Deno;或者只是等待DEVS解决这个问题。
There is no .rc file for bun instead you can use bunfig.toml file to specify your package registry.
BUN没有.rc文件,您可以使用bunfig.toml文件来指定您的包注册表。
This is .npmrc file
这是.npmrc文件
@myorg:registry=https://github.com//projects/34234/packages/npm/
//https://github.com//projects/34234/packages/npm/:_authToken=j34j3543j53
And this is how your bunfig.toml will look like
这就是你的包子会是什么样子
[install.scopes]
"@myorg" = { token = "j34j3543j53", url = "https://github.com//projects/34234/packages/npm/" }
更多回答
我是一名优秀的程序员,十分优秀!