Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

squibby's avatar

Composer install not working with new forge site?

Previously I had no problem creating a site in forge, then ticking the box to ensure composer dependencies are installed. Now I have found that a new site fails if I check that box. However if i uncheck the box it installs fine. I then have to manually SSH into the server and run sudo composer install myself.

How can I allow composer to install via forge like it previously did? Has anyone else seen this?

Thanks.

0 likes
1 reply
squibby's avatar
squibby
OP
Best Answer
Level 8

This was down to an out of date lock file being committed to source control which blew up any new deployments I was making.

Installing dependencies (including require-dev) from lock file Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

Please or to participate in this conversation.