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

CVlaracasts's avatar

Forge Deployment error

When using Forge and attempting to deploy an update to my Server, I get an error saying: Installing composer dependencies...... "Your lock file does not contain a compatible set of packages. Please run composer update." I tried running a composer install but still gives same message. I've read it's not good to do a composer update on Prod server?

0 likes
2 replies
CVlaracasts's avatar

Quickdraw AI replied to this advising to run the composer update locally, therefore updating the composer.lock file and then doing a git push, etc.
I tried that but am still getting exactly the same error preventing the deployment.

aleahy's avatar

Are you sure that the php version and php extensions your packages require are available on the server?

The problem with running composer update on the server, is that next time you do a deploy, it will wipe the changes in the server and you will be back to the same issue.

Please or to participate in this conversation.