You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
If you use artifactory for your npm registry then npm prints a rather confusing error message when it fails to load a module:
> npm install i-do-not-exist --registry https://somedomain/artifactory/api/npm/all-npm
npm ERR! 404 Not Found: artifactory
npm ERR! 404
npm ERR! 404 'artifactory' 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.
This has been consistently confusing devs on our team, and makes to tricky to hunt down the offending node module.
Would you accept a PR that adds a line to the error message with the full URL? For example the above error message would now become:
> npm install i-do-not-exist --registry https://somedomain/artifactory/api/npm/all-npm
npm ERR! 404 Not Found: artifactory
npm ERR! 404 GET request for 'https://somedomain/artifactory/api/npm/all-npm/i-do-not-exist' returned a 404
npm ERR! 404
npm ERR! 404 'artifactory' 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.