Commit 8038a24
authored
fix: pin npm to 11.10.0 to avoid promise-retry failure on Node 22.22.2 (#1096)
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 failure.
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.1 parent 98b6c8f commit 8038a24
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