-
Notifications
You must be signed in to change notification settings - Fork 59
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
package-lock.json
missing resolved
& integrity
fields
#526
Comments
package-lock.json
missing resolved
& integrity
fields
Fixes #526. This follows the advice specified in npm/cli#6301 for regenerating a package-lock.json file by removing node_modules and package-lock.json. It appears there is an open issue where resolved and integrity fields are removed at times when the above steps are not followed. This also pins `@types/node` to all patch versions as upgrading the major/minor version causes issues in our TypeScript compatibility test since `@types/node` dropped support for v4.1 and Protobuf-ES still supports it. Note that while this fixes the file with this PR, we cannot guarantee that this won't occur again due to the open issue with npm.
So, this happened again. Maybe you could add that to a pre-commit hook or something to make sure the lockfile is valid. |
Just noticed some cases that |
Another issue I noticed is, that some |
@smaye81 can we reopen this issue or should I create a new one? |
Let's just reopen this one. I have a feeling this will happen again and don't want a proliferation of issues. I'll update the description. |
Actually let's also open a second issue for investigation into whether this can be fixed permanently. We'll regenerate the lock files in the meantime and associate that to this PR. |
npm issues that track the problem of missing |
Hi, while trying to package
protoc-gen-es
for nixpkgs, I've ran into the issue that thepackage-lock.json
doesn't contain anyresolved
&integrity
fields: NixOS/nixpkgs#243432 (comment)These fields should exist according to the docs: https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json
This can likely be fixed by regenerating the lock file from scratch and/or updating to newer versions of npm.
The text was updated successfully, but these errors were encountered: