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 ?
尝试忽略平台要求
composer install --ignore-platform-reqs
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.