纱线安装Azure Pipeline;错误发生意外错误:[Azure-Registry]:请求失败\&quort'401未经授权\&quort''

发布于 2025-01-25 22:59:50 字数 426 浏览 4 评论 0原文

我正在尝试在Azure管道上构建我的类星体项目。

我的管道完美地工作了一个星期,但是昨天,我不知道为什么,我无法执行“纱线安装”而没有看到此错误。

error An unexpected error occurred: "{my-azure}/npm/registry/@nestjs/elasticsearch/-/elasticsearch-8.0.0.tgz: Request failed \"401 Unauthorized\""

每次,这都是一个不同的库。

我尝试删除纱线锁,但是当我进行纱线安装时,我有另一个错误,

Couldn't find package "{random library}" on te "npm" registry...

我不知道该怎么办...

I'm trying to build my Quasar project on an azure pipeline.

My pipeline worked perfectly for a week but yesterday, I don't know why, I can't execute "yarn install" without seeing this error.

error An unexpected error occurred: "{my-azure}/npm/registry/@nestjs/elasticsearch/-/elasticsearch-8.0.0.tgz: Request failed \"401 Unauthorized\""

Each time, it's a different library.

I try to delete my yarn lock but then I have another error when i'm doing yarn install

Couldn't find package "{random library}" on te "npm" registry...

I don't know what to do...

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧时浪漫 2025-02-01 22:59:50

您可能有一个权限问题,以下是常见解决方案:

configure-feed-settings ) NPM找不到软件包的问题。它可能与您的提要中的上游源订单有关,请查看此文档以获取更多详细信息:

https://learn.microsoft.com/en-us/azure/devops/artifacts/artifacts/concepts/concepts/concepts/concepts/concepts/upstream-sources视图= azure-devops#订购 - 上游 - 源

You probably have a permissions issue, here are common solutions:

I've sometimes faced a similar issue where npm can't find a package. It could be related to the upstream source order in your feed, check out this documentation for more details:

https://learn.microsoft.com/en-us/azure/devops/artifacts/concepts/upstream-sources?view=azure-devops#order-your-upstream-sources-intentionally

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文