When you are trying to install Laravel and suddenly during the process you encounter a problem:
– phpunit/phpunit[9.3.3, …, 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.3.3 -> satisfiable by phpunit/phpunit[9.3.3, …, 9.5.x-dev].
You can do the steps below to resolve the problem so that you can continue installing Laravel.
![](https://www.nucleiotechnologies.com/wp-content/uploads/2021/09/image-99.png)
sudo apt install php-mbstring
![](https://www.nucleiotechnologies.com/wp-content/uploads/2021/09/image-100.png)
composer require laravel/passport
![](https://www.nucleiotechnologies.com/wp-content/uploads/2021/09/image-101.png)
![](https://www.nucleiotechnologies.com/wp-content/uploads/2021/09/image-104.png)
sudo apt-get update sudo apt install php-xml
![](https://www.nucleiotechnologies.com/wp-content/uploads/2021/09/image-111.png)
sudo apt-get install php-mbstring
![](https://www.nucleiotechnologies.com/wp-content/uploads/2021/09/image-112.png)
composer update
composer require cviebrock/eloquent-sluggable
![](https://www.nucleiotechnologies.com/wp-content/uploads/2021/09/image-113.png)
Then proceed again to the installation of Laravel. After finishing the process of installation you can now verify if you already installed it using http://127.0.0.1:8000.
![](https://www.nucleiotechnologies.com/wp-content/uploads/2021/09/image-114-1024x511.png)
Great help. Thank you.
solved my problem perfectly! Thanks!