当前位置:网站首页>requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement
requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement
2022-07-07 11:48:00 【全栈程序员站长】
一个大兄弟本地用了 PHP 7.1 进行开发,而我本地是 PHP 7.0, 于是悲剧发生了。
composer install 之后报错
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for doctrine/annotations v1.5.0 -> satisfiable by doctrine/annotations[v1.5.0].
- doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (7.0.18) does not satisfy that requirement.
Problem 2
- Installation request for doctrine/cache v1.7.1 -> satisfiable by doctrine/cache[v1.7.1].
- doctrine/cache v1.7.1 requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement.
Problem 3
- Installation request for doctrine/collections v1.5.0 -> satisfiable by doctrine/collections[v1.5.0].
- doctrine/collections v1.5.0 requires php ^7.1 -> your PHP version (7.0.18) does not satisfy that requirement.
Problem 4
- Installation request for doctrine/common v2.8.1 -> satisfiable by doctrine/common[v2.8.1].
- doctrine/common v2.8.1 requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement.
Problem 5
- Installation request for doctrine/dbal v2.6.2 -> satisfiable by doctrine/dbal[v2.6.2].
- doctrine/dbal v2.6.2 requires php ^7.1 -> your PHP version (7.0.18) does not satisfy that requirement.
Problem 6
- Installation request for doctrine/instantiator 1.1.0 -> satisfiable by doctrine/instantiator[1.1.0].
- doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.18) does not satisfy that requirement.
Problem 7
- doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (7.0.18) does not satisfy that requirement.
- doctrine/dbal v2.6.2 requires php ^7.1 -> your PHP version (7.0.18) does not satisfy that requirement.
- doctrine/dbal 2.5.x-dev requires doctrine/common >=2.4,<2.8-dev -> satisfiable by doctrine/common[2.7.x-dev].
- backpack/crud 3.2.21 requires doctrine/dbal ^2.5 -> satisfiable by doctrine/dbal[2.5.x-dev, v2.6.2].
- doctrine/common 2.7.x-dev requires doctrine/annotations 1.* -> satisfiable by doctrine/annotations[v1.5.0].
- Installation request for backpack/crud 3.2.21 -> satisfiable by backpack/crud[3.2.21].
解决方法是
删除 composer.lock 文件,重新执行 composer install,这样就能重新生成 composer.lock 文件了。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/113306.html原文链接:https://javaforall.cn
边栏推荐
- JS function returns multiple values
- Evolution of customer service hotline of dewu
- Flink | 多流转换
- THINKPHP框架的优秀开源系统推荐
- Leetcode simple question sharing (20)
- .net core 关于redis的pipeline以及事务
- What parameters need to be reconfigured to replace the new radar of ROS robot
- 2022-7-6 Leetcode27.移除元素——太久没有做题了,为双指针如此狼狈的一天
- Milkdown control icon
- 【面试高频题】难度 2.5/5,简单结合 DFS 的 Trie 模板级运用题
猜你喜欢
提升树莓派性能的方法
Leetcode simple question sharing (20)
Custom thread pool rejection policy
记一次 .NET 某新能源系统 线程疯涨 分析
Esp32 construction engineering add components
Cinnamon taskbar speed
带你掌握三层架构(建议收藏)
LIS longest ascending subsequence problem (dynamic programming, greed + dichotomy)
[dark horse morning post] Huawei refutes rumors about "military master" Chen Chunhua; Hengchi 5 has a pre-sale price of 179000 yuan; Jay Chou's new album MV has played more than 100 million in 3 hours
The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)
随机推荐
我那“不好惹”的00后下属:不差钱,怼领导,抵制加班
Read PG in data warehouse in one article_ stat
DID登陆-MetaMask
Drawerlayout suppress sideslip display
LIS longest ascending subsequence problem (dynamic programming, greed + dichotomy)
Introduction to database system - Chapter 1 introduction [conceptual model, hierarchical model and three-level mode (external mode, mode, internal mode)]
【日常训练--腾讯精选50】231. 2 的幂
2022-7-6 sigurg is used to receive external data. I don't know why it can't be printed out
566. 重塑矩阵
【堡垒机】云堡垒机和普通堡垒机的区别是什么?
Navicat运行sql文件导入数据不全或导入失败
Deep understanding of array related problems in C language
云计算安全扩展要求关注的安全目标和实现方式区分原则有哪些?
2022-7-7 Leetcode 844.比较含退格的字符串
Xshell connection server changes key login to password login
User management summary of mongodb
PC端页面如何调用QQ进行在线聊天?
[QNX Hypervisor 2.2用户手册]6.3.4 虚拟寄存器(guest_shm.h)
Toraw and markraw
Clion mingw64 Chinese garbled code