Skip to content

fix: work around pnpm v11 ERR_PNPM_MISSING_TIME with sfw-free proxy#257

Closed
John-David Dalton (jdalton) wants to merge 2 commits intomainfrom
fix/pnpm-v11-resolution-mode
Closed

fix: work around pnpm v11 ERR_PNPM_MISSING_TIME with sfw-free proxy#257
John-David Dalton (jdalton) wants to merge 2 commits intomainfrom
fix/pnpm-v11-resolution-mode

Conversation

@jdalton
Copy link
Copy Markdown
Collaborator

Summary

  • Add --config.resolution-mode=highest to pnpm install flags used by the npm package test script, working around sfw-free proxy not forwarding the "time" field in registry metadata
  • Migrate test/npm/.npmrc settings to test/npm/pnpm-workspace.yaml (pnpm v11 only reads auth/registry from .npmrc)
  • Delete now-empty test/npm/.npmrc

Context

pnpm v11 changed the default resolution-mode to "time-based", which requires the "time" field in npm registry metadata. The sfw-free proxy strips or omits this field, causing ERR_PNPM_MISSING_TIME for 104/109 test package installs in CI.

Test plan

  • CI "Test NPM Packages" job passes with these changes
  • Verify pnpm install in test/npm/ still works locally

@jdalton John-David Dalton (jdalton) force-pushed the fix/pnpm-v11-resolution-mode branch 4 times, most recently from c62bdf5 to 8fb8e13 Compare April 12, 2026 19:08
- Add overrides as direct dependencies (not pnpm.overrides) to work around
  pnpm v11 RC regression where npm: alias overrides are ignored for subdeps
- Add resolution-mode=highest (SFW proxy strips time field from registry metadata)
- Add confirmModulesPurge=false (prevent interactive prompts)
- Add block-exotic-subdeps=false for test installs (third-party git deps)
- Add strict-dep-builds=false for test installs (third-party build scripts)
- Reduce install concurrency to 3 (pnpm v11 store corruption at high parallelism)
- Add is-unicode-supported to allowed failures (pnpm/pnpm#11238)
- Add is-unicode-supported unit tests (ported 1:1 from upstream v2.1.0)
@jdalton
Copy link
Copy Markdown
Collaborator Author

Changes pushed directly to main.

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