亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無法安裝 php 包

無法安裝 php 包

PHP
森林海 2023-03-04 10:42:22
我從 GitHub 克隆了一個項目,并嘗試使用我安裝的 Composer 安裝包,沒有出現任何問題。我運行作曲家安裝。不幸的是,我遇到了這些我無法弄清楚的錯誤,我該怎么辦?    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貢獻1815條經驗 獲得超6個贊

在 Ubuntu 上安裝過程中出現問題。我添加了這個 php 擴展并且它起作用了。

sudo apt-get install php-xml


查看完整回答
反對 回復 2023-03-04
  • 1 回答
  • 0 關注
  • 188 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號