利用laravel安装新模块报错,

laravel new blog

出错信息如下:

Crafting application…
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
– Installation request for tijsverkoyen/css-to-inline-styles 2.2.2 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.2].
– tijsverkoyen/css-to-inline-styles 2.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 2
– Installation request for phar-io/manifest 1.0.3 -> satisfiable by phar-io/manifest[1.0.3].
– phar-io/manifest 1.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 3
– Installation request for phpunit/php-code-coverage 7.0.10 -> satisfiable by phpunit/php-code-coverage[7.0.10].
– phpunit/php-code-coverage 7.0.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 4
– Installation request for phpunit/phpunit 8.4.3 -> satisfiable by phpunit/phpunit[8.4.3].
– phpunit/phpunit 8.4.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 5
– Installation request for theseer/tokenizer 1.1.3 -> satisfiable by theseer/tokenizer[1.1.3].
– theseer/tokenizer 1.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 6
– tijsverkoyen/css-to-inline-styles 2.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
– laravel/framework v6.6.1 requires tijsverkoyen/css-to-inline-styles ^2.2.1 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.2].
– Installation request for laravel/framework v6.6.1 -> satisfiable by laravel/framework[v6.6.1].

错误信息中没有明确信息是缺少哪个扩展,解决方法:

安装 xml 插件:

sudo apt install php7.3-xml