Skip to content

Keep Renovate's npm constraint on 11 until npm/cli#9800 is fixed - #20

Merged
Rxphee merged 1 commit into
mainfrom
fix/renovate-npm-constraint
Oct 30, 2026
Merged

Rxphee merged 1 commit into
mainfrom
fix/renovate-npm-constraint

Conversation

@Rxphee

@Rxphee Rxphee commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Renovate's #9 raised constraints.npm from ^11 to ^12.0.0. That undoes the workaround from #8: lock file maintenance for web/package-lock.json fails again with EALLOWREMOTE, because npm 12 refuses the registry tarball of @tailwindcss/oxide-wasm32-wasi (a package with bundleDependencies) when it runs with --package-lock-only. The upstream bug, npm/cli#9800, is still open; both fix PRs (npm/cli#9818, npm/cli#9819) are unmerged.

Change

  • Set constraints.npm back to ^11.
  • Add a package rule with allowedVersions: "<12" for the dependency that raised it. The renovate-config manager extracts every entry of constraints in renovate.json as a dependency with depType: tool-constraint (datasource npm, package npm), so the rule matches exactly that and leaves the npm packages in package.json alone.

Verification

  • renovate-config-validator --strict passes.
  • A local renovate --platform=local --dry-run=lookup lists no update for the npm tool constraint. With the rule's limit removed, the same run proposes ^12.0.0 as a major update again.

Once npm/cli#9800 is fixed and released, remove the rule and the constraint together. The next lock file maintenance runs on its monthly schedule; to check the fix earlier, tick "Lock file maintenance" under "Awaiting Schedule" in the Dependency Dashboard (#1) after merging.

Renovate raised the npm tool constraint to ^12.0.0 (#9), which brings back
the EALLOWREMOTE failure in lock file maintenance for web/: npm 12 refuses
the registry tarball of @tailwindcss/oxide-wasm32-wasi (bundleDependencies)
with --package-lock-only.

Restore ^11 and limit the tool constraint that the renovate-config manager
extracts to versions below 12, so Renovate stops proposing npm 12 until the
upstream bug is fixed.
@Rxphee Rxphee self-assigned this Oct 30, 2026
@Rxphee
Rxphee merged commit a3be47d into main Oct 30, 2026
3 checks passed
@Rxphee
Rxphee deleted the fix/renovate-npm-constraint branch October 30, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant