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

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

通過終端錯誤更新 Digital Ocean Ubuntu 中的 Composer

通過終端錯誤更新 Digital Ocean Ubuntu 中的 Composer

PHP
一只名叫tom的貓 2022-12-23 15:10:39
我使用的是 mac,在命令行中,我登錄到服務器,想安裝作曲家,但是我遇到了一些問題(見下文)。我不需要 PHP 單元,所以我也嘗試過composer install --no-dev,但出現了同樣的錯誤。任何想法或解決方案?Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.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    - tijsverkoyen/css-to-inline-styles 2.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.    - laravel/framework v7.3.0 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.3.0 -> satisfiable by laravel/framework[v7.3.0].我還嘗試通過 Sudo 安裝 tijsverkoyen 并收到另一個問題列表Problem 1    - phpunit/phpunit 8.5.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.    - phpunit/phpunit 8.5.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.    - phpunit/phpunit 8.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.    - phpunit/phpunit 8.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.    - phpunit/phpunit 8.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.    - Installation request for phpunit/phpunit ^8.5 -> satisfiable by phpunit/phpunit[8.5.0, 8.5.1, 8.5.2, 8.5.3, 8.5.x-dev].
查看完整描述

1 回答

?
慕桂英3389331

TA貢獻2036條經驗 獲得超8個贊

錯誤消息說您缺少 PHP 擴展ext-dom。

您需要通過運行來安裝它sudo apt install php-xml。


查看完整回答
反對 回復 2022-12-23
  • 1 回答
  • 0 關注
  • 125 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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