我從 GitHub 克隆了一個(gè)項(xiàng)目,并嘗試使用我安裝的 Composer 安裝包,沒(méi)有出現(xiàn)任何問(wèn)題。我運(yùn)行作曲家安裝。不幸的是,我遇到了這些我無(wú)法弄清楚的錯(cuò)誤,我該怎么辦? Loading composer repositories with package informationInstalling dependencies (including require-dev) from lock fileYour 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.5.4 -> satisfiable by phpunit/phpunit[8.5.4]. - phpunit/phpunit 8.5.4 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 v7.10.2 requires tijsverkoyen/css-to-inline-styles ^2.2.2 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.2]. - Installation request for laravel/framework v7.10.2 -> satisfiable by laravel/framework[v7.10.2]. To enable extensions, verify that they are enabled in your .ini files: You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
1 回答

紅糖糍粑
TA貢獻(xiàn)1815條經(jīng)驗(yàn) 獲得超6個(gè)贊
在 Ubuntu 上安裝過(guò)程中出現(xiàn)問(wèn)題。我添加了這個(gè) php 擴(kuò)展并且它起作用了。
sudo apt-get install php-xml
- 1 回答
- 0 關(guān)注
- 184 瀏覽
添加回答
舉報(bào)
0/150
提交
取消