Bit.dev 组件上传失败

发布于 2025-01-13 00:09:50 字数 1335 浏览 0 评论 0原文

原始标题:Bit.dev 从私有范围安装组件

EDIT2:好的,问题出在 bit.dev 上,即使是没有依赖项的微不足道的组件也只能“处理”几个小时才能最终完成失败:

在此处输入图像描述

仍然希望听到有 bit.dev 经验的人的意见,如果这是正常的或可以以某种方式避免

原始问题:

我通过 npm 安装 bit.dev 上的 React 组件时遇到问题。

我创建了我的组织,有一个私人范围“plasmastream”。

我成功地将一些组件上传到该范围,现在我想在另一个项目中使用它们。

当我直接从 bit.dev 上的组件页面使用片段时:

npm i @bit/eiservices.plasmastream.ps-toast

我收到 npm 错误:

npm 错误!代码ENOVERSIONS npm 错误!没有适用于 @bit/eiservices.plasmastream.ps-toast 的版本

由于该组件处于私有范围内,我预计我可能需要登录我的新项目,所以我做了 bit login ,它说我'我已经登录了。 因此,根据此官方指南: https://docs.bit.dev /docs/installing-components#configuring-bit-registry 我尝试手动配置我的注册表。但输入我的位凭据后,我收到此 npm 错误:

npm 错误!代码E401 npm 错误! 401 未经授权 - PUT https://node.bit.dev/-/ user/org.couchdb.user:mikulashrubes

我做错了什么?如何使用 npm 从其他项目中的私有位范围安装组件?

编辑:我将组件的范围设为公开,这似乎没有什么区别。我注意到组件详细信息页面上显示“正在处理”,所以即使在几个小时后,它可能仍然没有完全上传。

Original title: Bit.dev installing components from private scopes

EDIT2: Ok it's starting to be clear that the problem is with bit.dev, even trivial components with no dependencies are 'processing' for hours only to eventually fail:

enter image description here

Would still love to hear from someone who has experience with bit.dev, if this is normal or can be somehow avoided

Original question:

I'm having trouble installing react components that I have on bit.dev via npm.

I created my organisation, with a private scope 'plasmastream'.

I successfully uploaded some components into that scope, and now I want to use them in another project.

When I use the snipet directly from the components page on bit.dev:

npm i @bit/eiservices.plasmastream.ps-toast

I get npm error:

npm ERR! code ENOVERSIONS
npm ERR! No versions available for @bit/eiservices.plasmastream.ps-toast

Since the component is in private scope, I expected I might need to login in my new project, so i did bit login which says I'm already logged in.
So according to this official guide: https://docs.bit.dev/docs/installing-components#configuring-bit-registry I tried to configure my registry manually. But after entering my bit credentials, I get this npm error:

npm ERR! code E401
npm ERR! 401 Unauthorized - PUT https://node.bit.dev/-/user/org.couchdb.user:mikulashrubes

What am I doing wrong? How can I install components from private bit scopes in other projects with npm?

EDIT: I made the scope with the component public, it seems to make no difference. I notice it says 'Processing' at the component detail page, so maybe it's still not uploaded completely, even after many hours.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文