Repository navigation
Conversation
Dependabot regenerates package-lock.json with the npm pinned in packageManager (npm 11), while CI ran npm ci with the npm 10 bundled with Node 22. npm 10 rejects some npm 11 lockfiles (a dropped optional peer entry made it fail with "Missing: ... from lock file"). Install that npm before npm ci in the Compatibility locked row and the Release build job. The lowest and latest rows install with --no-package-lock and keep npm 10: npm 11 hoists ajv-draft-04 away from its ajv@8 peer there and the tests fail to load.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
izikaj
approved these changes
Nov 26, 2026
This branch has not been deployed
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.
Motivation
Dependabot regenerates
package-lock.jsonwith the npm pinned inpackageManager(npm@11.19.1), but CI rannpm ciwith the npm 10 that ships with Node 22. npm 10 rejects some npm 11 lockfiles: #10 failed withMissing: @medusajs/ui@4.2.8 from lock filebecause npm 11 dropped an optional peer entry. Every Dependabot lockfile PR can break the same way.Changes
lockedrow: install the npm frompackageManagerbeforenpm ci.npm ci/npm pack.lowestandlatestrows keep Node 22's npm. They install with--no-package-lock, so they never read the lockfile, and with npm 11 thelowesttree breaks:ajv-draft-04is hoisted away from itsajv@8peer and the tests fail withCannot find module 'ajv/dist/core'.package.json, so apackageManagerbump carries over to CI.How to test
npm ciaccepts main's lockfile without changing it;npm test,tsc --noEmit,medusa plugin:build,npm packand the packed-plugin install in a new project passnpm ci,npm test,npm run prepublishOnly,npm pack) pass with npm 11.19.1