【发布时间】:2020-03-22 23:52:18
【问题描述】:
我正在尝试将 Azure Artifacts 配置为使用 npmjs.org 作为上游源的所有私有和公共包的单一来源。一些公共 npm 包从 Azure Artifacts 返回 404 Not Found,但直接从 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
其他一些经常无法安装的公共 npm 包是
reactisomorphic-fetchcleave.jshistoryobject-assign
【问题讨论】:
标签: azure npm azure-devops npm-install azure-artifacts