0
votes

F:\angular library\sampleangular>npm install [email protected] npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/examplepackage- Not found npm ERR! 404 npm ERR! 404 '[email protected]' 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\jack\AppData\Roaming\npm-cache_logs\2020-03-03T06_07_13_338Z-debug.log

1
Do you run the npm install command in directory where exists your packages.json file? And please sign in the azure devops web portal to make sure the package is successfully published there. (Check azure devops artifacts UI) - LoLance
Yes...i executed npm install command by using npm install -- registry=pkgs.dev.azure.com/organization*******/npm/registry After that i ran npm install [email protected] - Vignesh Arvind
Instead of specifying the registry in command.What's the result if you setup the .npmrc file following this document, still same issue? - LoLance
Hi, is there any update for this issue? If it persists to block you, please feel free to let me know :) - LoLance

1 Answers

0
votes

After some tests, we think your issue may be related to the UpStream source in Azure devops feed settings.

enter image description here

Here's some info when I do the test:

enter image description here

nest is package from default npm packages. When i deleted the npm upstream source, I got the same error when running command npm install nest. After that I added the NPM public source(npmjs) as one upstream sources in feed settings, then it worked when I ran the command the second time.

So you need to add npmjs as Upstream source of your current feed. Hope it helps :)