Home > Software design >  how can i slove "Your requirements could not be resolved to an installable set of packages.&quo
how can i slove "Your requirements could not be resolved to an installable set of packages.&quo

Time:10-28

I use Laravel recently and when i run composer create-project I'using ubuntu

This is what happens screen of error

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - phpunit/phpunit[9.5.10, ..., 9.5.x-dev] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
    - Root composer.json requires phpunit/phpunit ^9.5.10 -> satisfiable by phpunit/phpunit[9.5.10, 9.5.x-dev].

How do I fix that ?

CodePudding user response:

Try to ignore platform requirements

composer install --ignore-platform-reqs

CodePudding user response:

You need to install the DOM extension for PHP. As you said you are using Ubuntu you can use the following command:

sudo apt-get install php7.4-dom
  • Related