Repository navigation
Commit e4e2e21
committed
Skip plain-forge install when Node.js is unavailable
The npx presence check passes when a version-manager shim (nvm, volta,
asdf) is on PATH without a working Node.js behind it. The npx call then
fails and aborts the whole installer: set -euo pipefail in bash,
ErrorActionPreference=Stop in PowerShell. The PowerShell installer also
marked plain-forge as installed even when the npx command failed.
Verify node actually runs before invoking npx, skip the step with a
clear message when it doesn't, and let a failed plain-forge install
print a retry hint instead of aborting the remaining setup steps. The
final next-steps screen already reminds the user to install plain-forge
manually whenever the step was skipped or failed.1 parent 9c2c659 commit e4e2e21
2 files changed
Lines changed: 39 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
318 | 326 | | |
319 | 327 | | |
320 | | - | |
| 328 | + | |
321 | 329 | | |
322 | 330 | | |
323 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
353 | 376 | | |
354 | 377 | | |
355 | | - | |
| 378 | + | |
356 | 379 | | |
357 | 380 | | |
358 | 381 | | |
| |||
0 commit comments