create-fz-app reports success after dependency installation fails when Bash is unavailable
Describe the bug.
@flipperdevices/[email protected] prints Done! Created ... and exits with status 0 when its dependency-install subprocess cannot start. On native Windows with working Node/npm but no Bash on PATH, this leaves a generated project with no node_modules; its first build fails because tsc is missing.
Expected: either install dependencies using the selected native package manager, or report the failed install and return a nonzero status with a manual recovery instruction. The wizard should not report a ready-to-run project after a failed install.
Reproduction
- Use native Windows with Node and npm available, but Bash unavailable on PATH. In this test, PATH was limited for the child process only to the Node directory and the local package-manager shim directory.
node --versionandnpm --versionboth succeeded; a separatespawnSync("bash", ["-c", "exit 0"])check returnedENOENT. - Install the published
@flipperdevices/[email protected]package locally and run its unmodified entry point:node node_modules/@flipperdevices/create-fz-app/index.js - Enter
no-bash-demo, choosenpm, and confirm creation. - After the wizard finishes, inspect
$LASTEXITCODE(0) andTest-Path no-bash-demo/node_modules(False). - In the generated directory, run
npm run build: it fails with missingtscand exit code 1. - In the same directory and with the same PATH, run
npm install --no-audit --no-fund, thennpm run build. Both succeed with exit code 0. No generated source changes are needed.
Target
Windows x64 (OS build 10.0.26200); Node v24.19.0; npm 11.6.0; create-fz-app 0.1.2. Host tooling only; no Flipper hardware.
Logs
node --version: v24.19.0
npm --version: 11.6.0
Bash availability check: {"status":null,"error":"ENOENT"}
Wizard:
Copying files...
Installing packages...
Done! Created no-bash-demo. Run `cd no-bash-demo && npm start` to run it on your Flipper.
WIZARD_EXIT_CODE=0
Test-Path no-bash-demo/node_modules
False
npm run build:
> tsc && node node_modules/@flipperdevices/fz-sdk/sdk.js build
'tsc' is not recognized as an internal or external command,
operable program or batch file.
BUILD_BEFORE_EXIT_CODE=1
Manual recovery using native npm, unchanged generated project:
added 114 packages in 16s
NATIVE_INSTALL_EXIT_CODE=0
BUILD_AFTER_EXIT_CODE=0Anything else?
The published wizard's index.js is byte-identical to the file at current dev revision 7f0b6e1c14431708cfde75ae1ba13df59e868041 (SHA-256 db5bb55dbac6b8692b8a2e654d40e14b60473c5f3dc3c40a584e55b1416ef0a3).
Relevant source, lines 60–67: installation is routed through Bash, the spawnSync result is discarded, and the success message is unconditional.
A useful regression test would run the published wizard on Windows without Bash, verify dependencies actually exist before success, and compile the generated app. A separate failed-install case should check for a nonzero exit and no success message.
This report is limited to host-side project creation and compilation. Device upload/runtime behavior was not tested.
Source: flipperdevices/flipperzero-firmware