Creating PHP app using CLI: problem with Composer

Hi all,

I’m trying to create a PHP app using Shopify CLI. I have PHP 8.1.1 installed, as well as Composer 2.2.3 and NPM 6.14.14. When I use the “shopify app create php” command, I successfully clone the git repo and save the .env file but then get the following when it gets to Composer:

┏━━ Installing Composer dependencies… ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━> ┃ X Unable to install all 15 dependencies> ┃ Your lock file does not contain a compatible set of packages. Please run composer update.> ┗━━ An error occurred while installing dependencies ━━━━━━━━━━━━━━━━━ (0.67s) ━━> ┏━━ Error ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━> ┃ X Failed to install Composer packages> ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

I have the most recent version of Composer installed so I don’t think that’s the issue, and other solutions I’ve found online have nothing to do with Shopify CLI.

Any help would be greatly appreciated.

Cheers

Dan

1 Like

Same problem here. Have you find any solution?