Add packageManager field to package.json#1305
Merged
SjurSutterudSagen merged 1 commit intoJun 5, 2026
Merged
Conversation
This adds a packageManager field with a set npm version to the package.json file, in an attempt to make the dependabot updates use that version. The reason for this is that we are seeing some unrelated changes in the dependabot updates, that we suspect are because it resolves to an older npm version (11.8.0). Setting the npm version to the one that comes packaged with the newest node lts version (11.13.0).
Branch Deployment to Cloudflare Pages🚛 Preview URL: https://a9dc0f43.pxweb2.pages.dev |
|
Contributor
Author
|
Looked at what npm resolves to in this run: https://github.com/PxTools/PxWeb2/actions/runs/26944087721/job/79492569321 Dependabot PR with the current problem: https://github.com/PxTools/PxWeb2/pull/1298/changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



This adds a packageManager field with a set npm version to the package.json file, in an attempt to make the dependabot updates use that version.
The reason for this is that we are seeing some unrelated changes in the dependabot updates, that we suspect are because it resolves to an older npm version (11.8.0). Setting the npm version to the one that comes packaged with the newest node lts version (11.13.0).
Running "npm audit fix" with node v24.16.0 and npm v11.13.0 gives no changes.
Running "npx npm@11.8.0 audit fix" removes alot of libc fields, like we are seeing.