纱线安装Azure Pipeline;错误发生意外错误:[Azure-Registry]:请求失败\&quort'401未经授权\&quort''
我正在尝试在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能有一个权限问题,以下是常见解决方案:
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