Closed cryptomilk closed 1 year ago
How did you generate this lock file and from which package.json? If I query the package on npm I can not reproduce:
$ npm view inflight@1.0.6 dist.integrity
sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==
The details how I generated the package-lock.json are described here:
https://build.opensuse.org/package/view_file/home:gladiac:ig-klettern/routenbuch/README.md?expand=1
I manually edited the package-lock.json afterwards and removed the sha1 checksum entries to get it working.
Do we use a different npm version? I can't reproduce:
> wget https://gitlab.com/routenbuch/routenbuch/-/raw/master/package.json
> npm install --package-lock-only --legacy-peer-deps --ignore-scripts
> npm --version
8.5.2
> grep -A 3 'inflight": {' package-lock.json
"node_modules/inflight": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
--
"inflight": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
Also https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json says one string, not a list nor a subresource integrity attribute value.
I will close this as invalid (bug in npm?) since it seems to be different from the spec. If it appears again, please re-open then I'll fix it here.
There are entries with two checksums:
package-lock.json.txt