Azure Artifacts 为一些 public npm 包返回 404

Azure Artifacts is returning 404 for some of the public npm packages

我正在尝试将 Azure Artifacts 配置为使用 npmjs.org 作为上游源作为所有私有和 public 包的单一来源。一些 public npm 包正在从 Azure Artifacts 返回 404 Not Found,不过从 npmjs 直接加载工作正常。

public 包的 npm 安装失败示例

C:\git-repos\alinta\FrontEnd.Sitecore>npm i react-app-polyfill
npm ERR! code E404
npm ERR! 404 Not Found - GET https://pkgs.dev.azure.com/AlintaDigital/_packaging/AlintaDigital/npm/registry/react-app-polyfill - NotFound
npm ERR! 404
npm ERR! 404  'react-app-polyfill@^1.0.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jawan\AppData\Roaming\npm-cache\_logs20-03-22T23_17_20_270Z-debug.log

其他一些 public npm 包总是安装失败

虽然其他一些 public 包可用于 Azure Artifacts

上游源设置已配置如下

看起来这是一个权限问题。您能否检查以确保您(以及其他试图从上游资源拉取的开发人员)具有协作者(或更好)权限?

来源:https://docs.microsoft.com/en-us/azure/devops/artifacts/feeds/feed-permissions?view=azure-devops

就我而言,我必须允许项目范围内的构建。我们的 Project Collection Build Service 已经被设置为贡献者。但是在权限下的导航菜单中有一个省略号,单击它时它给了我 select Allow project-scoped builds.

的选项