Commit 552a885
committed
fix(js): handle npm 11 warnings in stderr during registry version resolution
npm 11+ (bundled with Node 24.3) writes deprecation warnings about unknown
environment configurations to stderr even when commands succeed. The registry
version resolver was incorrectly rejecting any npm view command with stderr
content, causing e2e tests to fail with Node 24.3.
This change updates the error handling to only reject on actual errors,
ignoring npm warning messages that start with 'npm warn'.1 parent b88664f commit 552a885
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
115 | 123 | | |
116 | 124 | | |
117 | 125 | | |
| |||
0 commit comments