Fix npm install that fails due to wrong checksum in package-lock. #400
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
We were getting CI test failures on #375 after merging
main
back into that branch on thenpm i
step regarding an invalid checksum on a downloaded npm package. I investigated to make sure nobody was tampering with npm packages (that would be very bad) somehow. Go tomain
and runnpm i
and you'll get:Turns out we've had an issue in the
main
branch since #369 where the semver dependency wasn't properly updated somehow to include the right checksum for integrity checks.I verified that the checksum in there is for v6.3.0, even though we are now on v7.5.3.
I do not know why this wasn't picked up earlier by GitHub's build step on PRs. Though @360dgries had noticed it in July, but at the time others couldn't replicate it and I think we may have chalked it up to his unique Windows setup?
Testing Guidance
Prior to this,
npm i
will cause an ERR. After this,npm i
will not.