Commit 6e82772
authored
fix: pin npm to 11.10.0 to avoid promise-retry failure on Node 22.22.2 (#1584)
## Summary
- Pins `npm install -g npm@11` to `npm@11.10.0` in the publish action
- Node 22.22.2 bundles npm 10.9.7, which lazily requires
`promise-retry`; npm 11.12.0+ removes that module from its bundle,
causing a `MODULE_NOT_FOUND` crash during the self-upgrade
- npm 11.10.0 still bundles `promise-retry`, avoiding the race condition
The upstream fix landed in npm/cli#9152 (merged into npm 10.9.8 /
11.12.1). This pin can be dropped once a Node 22 patch release ships
with npm ≥ 10.9.8.
## References
- npm/cli#9152
- nodejs/node#624251 parent 3a83ef8 commit 6e82772
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments