Commit ffb37fb
fix(installer): parse node --version in PowerShell (Windows PowerShell 5.1)
Windows PowerShell 5.1 strips embedded double quotes from native-command
arguments, so `node -p 'process.versions.node.split(".")[0]'` reached
node as split(.)[0], threw a SyntaxError, cast to 0, and aborted with
'Node.js >= 24 required' for any Node version.
Fixes #8214
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139nGyeFNACmifj6pRLSVRs1 parent 9f5bf67 commit ffb37fb
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | | - | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| |||
0 commit comments