因此,我刚刚安装了Scotchbox(无业游民的安装程序)。https://github.com/scotch-io/scotch-box
当出现以下错误时,我正在尝试安装composer依赖项。
Problem 1
- phpunit/php-code-coverage 4.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/php-code-coverage 4.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/php-code-coverage 4.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/php-code-coverage (locked at 4.0.8) -> satisfiable by phpunit/php-code-coverage[4.0.8].
其他一些线程建议将其包含在php-xml包中。我尝试安装这样做
sudo apt-get install php7.0-xml
sudo service apache2 restart
但这没有用。知道其他什么解决方案可能有效吗?我开始拔头发。
对我而言,所选答案无效。
这确实有效:
sudo apt-get install php-xml
这是在带有PHP 7的Ubuntu 16.04上。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句