Answers for "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]."

PHP
4

phpunit/phpunit 7.5.20 requires ext-dom * -> the requested PHP extension dom is missing from your system.

//First of all, read the warning! It says do not run composer as root! Secondly, you're probably using Xammp on your local which has the required php libraries as default.
// But in your server you're missing ext-dom. php-xml has all the related packages you need. So, you can simply install it by running:

sudo apt-get update
sudo apt install php-xml


//Most likely you are missing mbstring too. If you get the error, install this package as well with:

sudo apt-get install php-mbstring

//Then run:
composer update
composer require cviebrock/eloquent-sluggable
Posted by: Guest on August-10-2020

Code answers related to "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]."

Browse Popular Code Answers by Language