php - 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)。有谁知道我该如何解决这个问题?
解决方案
推荐阅读
- javascript - 较低节点上的 firebase 事务 - 超出最大调用堆栈大小
- node.js - Hapi js - 如何向服务器发送请求以进行基本身份验证?
- java - 将文件上传到 Android 的 Firebase 存储中的用户特定目录?
- ios-simulator - 如何防止 iOS 模拟器出现“你想再次尝试重新打开它的窗口吗?” 在启动时,这会破坏自动化吗?
- node.js - node_modules/ng2-toastr/src/toast-container.component.d.ts(1,48) 中的错误:TS2305- /node_modules/@angular/core/core"' 没有导出成员
- android - 如何构建 Android Kiwi 浏览器
- python - 属性错误:“Window”没有对象“nameE”
- php - 如何更改过滤 WooCommerce 产品
- rust - 为什么我可以为方法的“&self”参数强制引用移动语义,而不是函数参数?
- sql - SQL克隆/复制同一表中的记录与条件