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

Viewed 8462

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

Problem 1

  • phpunit/phpunit[dev-master, 9.3.3, ..., 9.4.x-dev] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  • phpunit/phpunit 9.5.x-dev is an alias of phpunit/phpunit dev-master and thus requires it to be installed too.
  • Root composer.json requires phpunit/phpunit ^9.3.3 -> satisfiable by phpunit/phpunit[9.3.3, ..., 9.5.x-dev (alias of dev-master)].
1 Answers

If you run on ubuntu or another debian based OS sudo apt install phpunit should install this extension.

For development you can use Docker, see more details on the Laravel 8 documentation.

Related