cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] npm i failing for random packages on retry saying package not found

Open manojbavikati opened this issue 3 years ago • 9 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

This issue exists in the latest npm version

  • [X] I am using the latest npm

Current Behavior

npm ERR! 404 Not Found - GET https://registry.npmjs.org/@antv%2fl7-component - Not found

Expected Behavior

install should complete without errors.

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • npm:9.6.7
  • Node.js:v18.16.1
  • OS Name: Windows 11
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here

manojbavikati avatar Jul 14 '23 20:07 manojbavikati

Also seeing this. Looks like consistency issues with the CDN or something like that.

jfirebaugh avatar Jul 14 '23 20:07 jfirebaugh

Repeat of https://github.com/npm/cli/issues/1626?

jfirebaugh avatar Jul 14 '23 20:07 jfirebaugh

Also seeing this, inconsistency with pulling various packages over the last 45+ minutes or so.

The full error from the first package we saw it on:

#10 79.31 npm ERR! code E404
#10 79.31 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@vercel%2fncc - Not found
#10 79.31 npm ERR! 404 
#10 79.31 npm ERR! 404  '@vercel/[email protected]' is not in this registry.
#10 79.31 npm ERR! 404 
#10 79.31 npm ERR! 404 Note that you can also install from a
#10 79.31 npm ERR! 404 tarball, folder, http url, or git url.
#10 79.32 
#10 79.32 npm ERR! A complete log of this run can be found in:
#10 79.32 npm ERR!     /root/.npm/_logs/2023-07-14T19_49_53_940Z-debug-0.log
#10 ERROR: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1

For clarity, @vercel/[email protected] does exist.

codybswaney avatar Jul 14 '23 20:07 codybswaney

Also seeing this, inconsistency with pulling various packages over the last 45+ minutes or so.

The full error from the first package we saw it on:

#10 79.31 npm ERR! code E404
#10 79.31 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@vercel%2fncc - Not found
#10 79.31 npm ERR! 404 
#10 79.31 npm ERR! 404  '@vercel/[email protected]' is not in this registry.
#10 79.31 npm ERR! 404 
#10 79.31 npm ERR! 404 Note that you can also install from a
#10 79.31 npm ERR! 404 tarball, folder, http url, or git url.
#10 79.32 
#10 79.32 npm ERR! A complete log of this run can be found in:
#10 79.32 npm ERR!     /root/.npm/_logs/2023-07-14T19_49_53_940Z-debug-0.log
#10 ERROR: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1

For clarity, @vercel/[email protected] does exist.

Is not only this package, various others is happening the same.

iagormoraes avatar Jul 14 '23 20:07 iagormoraes

Most likely the NPM registry is busted. Still no incident declared in https://status.npmjs.org/ sadly

JavaScriptBach avatar Jul 14 '23 20:07 JavaScriptBach

Yes, thanks @iagormoraes I should have clarified better: we are seeing it happening on various packages and it's very inconsistent. E.g. my last build failed on another package:

npm ERR! 404 Not Found - GET https://registry.npmjs.org/@graphql-tools%2fdelegate - Not found
npm ERR! 404 
npm ERR! 404  '@graphql-tools/[email protected]' is not in this registry.

codybswaney avatar Jul 14 '23 20:07 codybswaney

Same here, it worked on the node-setup github action by explicitely telling it the registry url, but our docker build now trigger the same

image

melMass avatar Jul 14 '23 21:07 melMass

Looks like the npm registry issue is resolved for me after multiple retry. Looks like it was failing for random packages

manojbavikati avatar Jul 14 '23 22:07 manojbavikati

We had a problem for https://registry.npmjs.org/@tand_ferret%2fuseful_hooks too for a short period of time after publish. So this issue continue to reproduce.

https://github.com/deep-foundation/npm-packager/issues/97 - our issue on that problem.

konard avatar Mar 24 '24 20:03 konard