首页
文档
问答
捐赠
源代码
商业产品
Swoole Tracker
Swoole Plus
Swoole Compiler
Swoole 微课程
商业合作
登录
注册
EN
全部
提问
分享
讨论
建议
公告
开发框架
发表新帖
安装hyperf/view时候出错
冰点阳光
去年
今天用 composer require hyperf/view报错,错误信息如下 : ```html Using version ^2.1 for hyperf/view ./composer.json has been updated Running composer update hyperf/view --with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - hyperf/testing is locked to version v2.0.14 and an update of this package was not requested. - Conclusion: don't install hyperf/contract v2.0.1 (conflict analysis result) - Conclusion: don't install hyperf/contract v2.0.3 (conflict analysis result) - Conclusion: don't install hyperf/contract v2.0.9 (conflict analysis result) - Conclusion: don't install hyperf/contract v2.0.13 (conflict analysis result) - Conclusion: don't install hyperf/view v2.1.0 (conflict analysis result) - hyperf/view 2.1.x-dev is an alias of hyperf/view dev-master and thus requires it to be installed too. - hyperf/view[dev-master, v2.1.0-beta1, ..., 2.1.x-dev] require hyperf/contract ~2.1.0 -> satisfiable by hyperf/contract[v2.1.0-beta1, v2.1.0, 2.1.x-dev (alias of dev-master)]. - hyperf/contract 2.1.x-dev is an alias of hyperf/contract dev-master and thus requires it to be installed too. - You can only install one version of a package, so only one of these can be installed: hyperf/contract[dev-master, v2.0.0, ..., 2.1.x-dev]. - hyperf/testing v2.0.14 requires hyperf/contract ~2.0.0 -> satisfiable by hyperf/contract[v2.0.0, ..., 2.0.x-dev]. - Conclusion: don't install hyperf/contract v2.0.0 (conflict analysis result) - Root composer.json requires hyperf/view ^2.1 -> satisfiable by hyperf/view[v2.1.0-beta1, v2.1.0, 2.1.x-dev (alias of dev-master)]. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. Installation failed, reverting ./composer.json and ./composer.lock to their original content. ``` 请问这个有知道要怎么解决的没 我需要安装他的模板引擎
评论
2020-12-31
鲁飞
你升级2.1了吗? 没升级require的时候就指定2.0的版本
点赞
1
回复
2020-12-31
冰点阳光
回复
鲁飞
可以了 谢谢
点赞
0
回复