Repository navigation
Commit 1f23742
fix(ci): bootstrap npm 11 via official install script (npm 10 self-upgrade broken)
Run 24651461907 failed the npm upgrade step because npm 10.x's own
install command is broken when self-upgrading:
npm error MODULE_NOT_FOUND Cannot find module 'promise-retry'
This is a known Node/npm issue where mid-upgrade the module tree is
in an inconsistent state and the currently-running npm trips over its
own dependencies. `npm install -g npm@latest` cannot rescue itself.
Workaround: wipe the corrupted npm install, then fetch npm via its
official install.sh script which downloads a clean tarball and wires
bin shims directly (no dependency on the currently-installed npm CLI).
Same upgrade intent as before — get to npm 11.5.1+ for Trusted
Publisher OIDC. Just a different mechanism to reach it.
Reference: nodejs/node#56341
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2c1f6ee commit 1f23742
1 file changed
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
91 | 105 | | |
92 | 106 | | |
93 | 107 | | |
| |||
0 commit comments