Php 通过终端错误更新Digital Ocean Ubuntu中的Composer
我正在使用mac,在命令行中,我登录到服务器,并希望安装composer,但我遇到了一些问题(请参见下文)。我不需要PHP单元,所以我也尝试了Php 通过终端错误更新Digital Ocean Ubuntu中的Composer,php,ubuntu,terminal,composer-php,digital-ocean,Php,Ubuntu,Terminal,Composer Php,Digital Ocean,我正在使用mac,在命令行中,我登录到服务器,并希望安装composer,但我遇到了一些问题(请参见下文)。我不需要PHP单元,所以我也尝试了composer安装——没有开发人员,但是出现了相同的错误。有什么想法或解决办法吗 Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recomm
composer安装——没有开发人员
,但是出现了相同的错误。有什么想法或解决办法吗
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].
错误消息说您缺少PHP扩展名
extDOM
您需要通过运行sudo apt install php xml
来安装它
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].