提示のコンソール画面ですがlaravelのプロジェクトを作成するとエラーになりますがこれはどう対処すればいいのでしょうか?
参考サイト:https://qiita.com/misodonkatsu/items/19f47ad3af451662f5e5
参考サイト:https://qiita.com/yamauchi_k/items/63e38ded0eb8571fabfd
参考サイト:https://www.nucleiotechnologies.com/how-to-resolve-problem-phpunit-phpunit9-3-3-9-5-x-dev-require-ext-dom-when-installing-laravel/
json
1{ 2 "config": 3 { 4 "platform-check": false, 5 "platform": { 6 "php": "7.3" 7 }, 8 "allow-plugins": { 9 "kylekatarnls/update-helper": true 10 } 11 }, 12 13 "require": 14 { 15 "phpunit/phpunit": "9.5.10", 16 "nesbot/carbon": "2.27.0 as 1.39.0", 17 "kylekatarnls/laravel-carbon-2": "1.0.0", 18 "michelf/php-markdown": "1.9.1", 19 "ramsey/uuid": "3.9.6", 20 "laravel/laravel": "5.5.28" 21 }, 22 "require-dev": { 23 "composer/composer": "^2.2" 24 } 25}
composer update
shigurechan@shigurechan-System-Product-Name:~/prg/html$ composer update Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled. Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires phpunit/phpunit 9.5.10 -> satisfiable by phpunit/phpunit[9.5.10]. - phpunit/phpunit 9.5.10 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension. To enable extensions, verify that they are enabled in your .ini files: - /etc/php/8.1/cli/php.ini - /etc/php/8.1/cli/conf.d/10-opcache.ini - /etc/php/8.1/cli/conf.d/10-pdo.ini - /etc/php/8.1/cli/conf.d/20-calendar.ini - /etc/php/8.1/cli/conf.d/20-ctype.ini - /etc/php/8.1/cli/conf.d/20-exif.ini - /etc/php/8.1/cli/conf.d/20-ffi.ini - /etc/php/8.1/cli/conf.d/20-fileinfo.ini - /etc/php/8.1/cli/conf.d/20-ftp.ini - /etc/php/8.1/cli/conf.d/20-gettext.ini - /etc/php/8.1/cli/conf.d/20-iconv.ini - /etc/php/8.1/cli/conf.d/20-phar.ini - /etc/php/8.1/cli/conf.d/20-posix.ini - /etc/php/8.1/cli/conf.d/20-readline.ini - /etc/php/8.1/cli/conf.d/20-shmop.ini - /etc/php/8.1/cli/conf.d/20-sockets.ini - /etc/php/8.1/cli/conf.d/20-sysvmsg.ini - /etc/php/8.1/cli/conf.d/20-sysvsem.ini - /etc/php/8.1/cli/conf.d/20-sysvshm.ini - /etc/php/8.1/cli/conf.d/20-tokenizer.ini You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode. Alternatively, you can run Composer with `--ignore-platform-req=ext-dom` to temporarily ignore these required extensions.
composer create-project --prefer-dist laravel/laravel web
shigurechan@shigurechan-System-Product-Name:~/prg$ composer create-project --prefer-dist laravel/laravel web Creating a "laravel/laravel" project at "./web" Info from https://repo.packagist.org: #StandWithUkraine Installing laravel/laravel (v9.1.1) - Installing laravel/laravel (v9.1.1): Extracting archive Created project in /home/shigurechan/prg/web > @php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information Updating dependencies 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]. To enable extensions, verify that they are enabled in your .ini files: - /etc/php/8.1/cli/php.ini - /etc/php/8.1/cli/conf.d/10-opcache.ini - /etc/php/8.1/cli/conf.d/10-pdo.ini - /etc/php/8.1/cli/conf.d/20-calendar.ini - /etc/php/8.1/cli/conf.d/20-ctype.ini - /etc/php/8.1/cli/conf.d/20-exif.ini - /etc/php/8.1/cli/conf.d/20-ffi.ini - /etc/php/8.1/cli/conf.d/20-fileinfo.ini - /etc/php/8.1/cli/conf.d/20-ftp.ini - /etc/php/8.1/cli/conf.d/20-gettext.ini - /etc/php/8.1/cli/conf.d/20-iconv.ini - /etc/php/8.1/cli/conf.d/20-phar.ini - /etc/php/8.1/cli/conf.d/20-posix.ini - /etc/php/8.1/cli/conf.d/20-readline.ini - /etc/php/8.1/cli/conf.d/20-shmop.ini - /etc/php/8.1/cli/conf.d/20-sockets.ini - /etc/php/8.1/cli/conf.d/20-sysvmsg.ini - /etc/php/8.1/cli/conf.d/20-sysvsem.ini - /etc/php/8.1/cli/conf.d/20-sysvshm.ini - /etc/php/8.1/cli/conf.d/20-tokenizer.ini You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode. Alternatively, you can run Composer with `--ignore-platform-req=ext-dom` to temporarily ignore these required extensions.