首页 > 解决方案 > Vagrant - 安装作曲家库失败

问题描述

我正在使用 vagrant (VCCW.CC) 设置,每次我将我的 PHP 版本升级到 7.4 下一次运行“vagrant up”时它都会中断

TASK [Install Composer libraries] **********************************************
failed: [site.test] (item=phpunit/phpunit:5.6) => {"ansible_loop_var": "item", "changed": false, "item": "phpunit/phpunit:5.6", "msg": "Deprecation Notice: Array and string offset access syntax with curly braces is deprecated in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php:112 Deprecation Notice: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in 

我第一次这样做(当我在 ssh 到 VM 中升级 PHP 时)它工作正常,但下一次它在安装作曲家的东西时中断。我想这是由于我的 VM(现在是 php7.4)和 vagrant 文件之间的一些差异(我没有改变这个,所以我想仍然是旧版本的 PHP)。有谁知道我该如何解决这个问题?

标签: phpwordpressubuntuvagrantvirtual-machine

解决方案


推荐阅读