question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`package-lock.json` is missing some `resolved` and `integrity` values

See original GitHub issue

Your Question

There are two cases in the package-lock.json where the resolved and integrity values are missing: https://github.com/corona-warn-app/cwa-website/blob/4142215c9b3b742480ba5f3446cbedd7843d7833/package-lock.json#L4372 https://github.com/corona-warn-app/cwa-website/blob/4142215c9b3b742480ba5f3446cbedd7843d7833/package-lock.json#L13274

It appears #1499 made this change, but I could not find any explanation for this. Is there a reason why this was done? When I run npm install it fills these missing values, but the build succeeds without any (noticable) issues.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Marcono1234commented, Aug 29, 2021

Thanks for the clarification, I will close this issue then.

1reaction
chrisenitancommented, Aug 26, 2021

My changes were indeed unintended; I was rather concerned about updating Cypress and we had no issues from the MR.

I did however update the lockfileVersion from 1 to 2 then back to 1 in this commit https://github.com/corona-warn-app/cwa-website/pull/1499/commits/61e9fcba9572e68fa04f55032290acc2d5a695a8

Read more comments on GitHub >

github_iconTop Results From Across the Web

package-lock.json (missing resolved/integrity) not noticed and ...
Go back to a commit with a valid package-lock.json, which includes integrity and resolved fields. · Run npm install . · Copy the...
Read more >
Solving the annoying package-lock.json integrity discrepancy
Solving the annoying package-lock.json integrity discrepancy · Ensure all team members use the same Node and NPM versions. · Revert any changes ...
Read more >
Why did package-lock.json change the integrity hash from ...
The fix i found was to do the following: npm i -g npm cd {working directory} rm -rf node_modules/ rm package-lock.json npm cache...
Read more >
package-lock.json - npm Docs
packageIntegrity. This is a subresource integrity value created from the package.json . No preprocessing of the package.json should be done.
Read more >
Package-lock.json - npm - w3resource
The package-lock.json file is a manifestation of the manifest. ... The packageIntegrity is a subresource integrity value created from the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found