Azure Artifacts 为一些公共 npm 包返回 404

Raj*_*nda 6 azure npm npm-install azure-devops azure-artifacts

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

公共包的 npm install 失败示例

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\_logs\2020-03-22T23_17_20_270Z-debug.log
Run Code Online (Sandbox Code Playgroud)

其他一些经常无法安装的公共 npm 包是

  • react
  • isomorphic-fetch
  • cleave.js
  • history
  • object-assign

虽然其他一些公共包可用于 Azure Artifacts 可用的 npm 包

上游源设置已配置如下 上游来源

小智 5

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

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

Az DevOps Feed 权限