PHP deploy selected for a Node monorepo; Composer is missing
Error recorded 2 times in PanelAlpha Engine deploys on Php. The deploy log below is the recorded failure output.
TypeErrorAn error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.
Seen2 times
WherePhp
StatusObservedOur team will look into this soon, verify the cause and try to fix it in an upcoming release.
Why it happens
The repository was deployed with the PHP (no Composer) strategy, but it is identified as a Node monorepo using package.json and pnpm-lock.yaml. Dependency installation then ran PHP package post-install scripts that require Composer, which is not available in the selected runtime.
What the log looks like
Deploy log
.../node_modules/fs-ext-extra-prebuilt install: Prebuilt binary works, skipping compilation..../node_modules/fs-ext-extra-prebuilt install: Done.../php/<account>-subscriptions-engine postinstall$ composer installpackages/php/blueprint postinstall$ XDEBUG_MODE=off composer install --quiet.../php/<account>-subscriptions-engine postinstall: sh: 1: composer: not foundpackages/php/blueprint postinstall: sh: 1: composer: not found