我尝试将私有NPM程序包发布到Azure Artifacts,并且能够成功发布到我的Azure Artifacts。
但是,我只能从Artifacts安装已发布的库,而不能从NPM安装公共库。即使我在({.npmrc
)文件中添加了两个注册表。它仍在安装已发布的私有软件包或NPM公共软件包。
npm install --registry=https://pkgs.dev.azure.com/myorganization******/registry
F:\angular\sampleangular>npm install sampleprivate@0.0.1
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/sampleprivate - Not found
npm ERR! 404
npm ERR! 404 'sampleprivate@0.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\rocky\AppData\Roaming\npm-cache\_logs\2020-03-02T06_03_39_967Z-debug.log