PHP install fails because Composer is unavailable
Error recorded 39 times in PanelAlpha Engine deploys on Express, Nextjs, Node.js and more. 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.
Seen39 times · 14 variants
WhereExpress, Nextjs, Node.js +3 moreExpress, Nextjs, Node.js, Php, Sveltekit, Vite
StatusFixed (2.1.0)Fixed in PanelAlpha Engine 2.1.0. The error is resolved on our side, so you will not run into it anymore.
Why it happens
The repository was detected as a PHP app without Composer, but its pnpm install runs PHP package postinstall scripts. Those scripts invoke composer install, and Composer is not installed or not available on PATH in the build environment. The deployment then stops during dependency installation.
What the log looks like
Deploy log
packages/php/blueprint postinstall$ XDEBUG_MODE=off composer install --quietpackages/php/email-editor postinstall$ sh vendor-prefixed/setup.sh && XDEBUG_MODE=off composer install --quietpackages/php/blueprint postinstall: sh: 1: composer: not found…