Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] old lockfile causes 404 Not Found for "file:"-referenced dependency #3628

Closed
1 task done
Krinkle opened this issue Aug 8, 2021 · 0 comments · Fixed by #4614
Closed
1 task done

[BUG] old lockfile causes 404 Not Found for "file:"-referenced dependency #3628

Krinkle opened this issue Aug 8, 2021 · 0 comments · Fixed by #4614
Assignees
Labels
Bug thing that needs fixing Priority 1 high priority issue Release 7.x work is associated with a specific npm 7 release

Comments

@Krinkle
Copy link

Krinkle commented Aug 8, 2021

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

On Node 10, Node 12 and Node 14 with npm 6.x or npm 7.5.2, the installation step (npm ci) works fine.

On Node 16.6.1 with npm 7.20.3, installation fails as follows:

https://github.com/qunitjs/qunit/runs/3271660304

pm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
... 2.16.0: building release
npm WARN old lockfile This is a one-time fix-up, please be patient...
... 2.15.0: installing development dependencies from npm
npm WARN old lockfile 
npm WARN old lockfile HttpErrorGeneral: 404 Not Found - GET https://registry.npmjs.org/npm-reporter - Not found
npm WARN old lockfile     at /opt/hostedtoolcache/node/16.6.1/x64/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:95:15
npm WARN old lockfile     at runMicrotasks (<anonymous>)
npm WARN old lockfile     at processTicksAndRejections (node:internal/process/task_queues:96:5)
npm WARN old lockfile     at async Array.<anonymous> (/opt/hostedtoolcache/node/16.6.1/x64/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:681:9)
npm WARN old lockfile  Could not fetch metadata for npm-reporter@1.0.0 HttpErrorGeneral: 404 Not Found - GET https://registry.npmjs.org/npm-reporter - Not found
npm WARN old lockfile     at /opt/hostedtoolcache/node/16.6.1/x64/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:95:15
npm WARN old lockfile     at runMicrotasks (<anonymous>)
npm WARN old lockfile     at processTicksAndRejections (node:internal/process/task_queues:96:5)
npm WARN old lockfile     at async Array.<anonymous> (/opt/hostedtoolcache/node/16.6.1/x64/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:681:9) {
npm WARN old lockfile   headers: [Object: null prototype] {
npm WARN old lockfile     date: [ 'Sun, 08 Aug 2021 01:40:59 GMT' ],
npm WARN old lockfile     'content-type': [ 'application/json' ],
npm WARN old lockfile     'content-length': [ '21' ],
npm WARN old lockfile     connection: [ 'keep-alive' ],
npm WARN old lockfile     'cf-ray': [ '67b50a2f78865ec6-IAD' ],
npm WARN old lockfile     vary: [ 'Accept-Encoding' ],
npm WARN old lockfile     'cf-cache-status': [ 'MISS' ],
npm WARN old lockfile     'expect-ct': [
npm WARN old lockfile       'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"'
npm WARN old lockfile     ],
npm WARN old lockfile     server: [ 'cloudflare' ],
npm WARN old lockfile     'x-fetch-attempts': [ '1' ],
npm WARN old lockfile     'x-local-cache-status': [ 'skip' ]
npm WARN old lockfile   },
npm WARN old lockfile   statusCode: 404,
npm WARN old lockfile   code: 'E404',
npm WARN old lockfile   method: 'GET',
npm WARN old lockfile   uri: 'https://registry.npmjs.org/npm-reporter',
npm WARN old lockfile   body: { error: 'Not found' },
npm WARN old lockfile   pkgid: 'npm-reporter@1.0.0'
npm WARN old lockfile }

Expected Behavior

No failure, as it was on Node 14 with npm 7.5.2.

Steps To Reproduce

https://github.com/qunitjs/qunit/blob/d7c983b8375769fd21b359d8cc13346a76fd6045/package.json#L73

Environment

  • OS: Ubuntu 20.04
  • Node: 16.6.1
  • npm: 7.20.3
@Krinkle Krinkle added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Aug 8, 2021
@lukekarrys lukekarrys added Priority 1 high priority issue and removed Needs Triage needs review for next steps labels Oct 20, 2021
@nlf nlf self-assigned this Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Priority 1 high priority issue Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants