composer error : Failed to install composer packages

Hi,

There’s an error while creating an app from shopify_cli via

  • shopify app create php

Shows Error:

┏━━ Installing Composer dependencies… ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┃ ✗ 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.3s) ━━

┏━━ Error ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┃ ✗ Failed to install Composer packages
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Hi @ayush123 ,

Have you tried to “run composer update”? This is the message showing you before the error. If yes, what does it give in return?