我奔跑
rm -rf vendor && composer update codeception/codeception -v
我得到一个错误:
无法将您的需求解析为可安装的软件包集。
Problem 1
- The requested package phpunit/phpunit (locked at 4.1.6, required as 4.8.x-dev) is satisfiable by phpunit/phpunit[4.1.6] but these conflict with your requirements or minimum-stability.
Problem 2
- The requested package behat/gherkin (locked at v2.3.5, required as ~4.4.0) is satisfiable by behat/gherkin[v2.3.5] but these conflict with your requirements or minimum-stability.
Problem 3
- behat/behat v2.5.5 requires behat/gherkin ~2.3.0 -> satisfiable by behat/gherkin[2.3.x-dev, v2.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4, v2.3.5] but these conflict with your requirements or minimum-stability.
- behat/behat v2.5.5 requires behat/gherkin ~2.3.0 -> satisfiable by behat/gherkin[2.3.x-dev, v2.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4, v2.3.5] but these conflict with your requirements or minimum-stability.
- behat/behat v2.5.4 requires behat/gherkin ~2.3.0 -> satisfiable by behat/gherkin[2.3.x-dev, v2.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4, v2.3.5] but these conflict with your requirements or minimum-stability.
- behat/behat v2.5.3 requires behat/gherkin ~2.3.0 -> satisfiable by behat/gherkin[2.3.x-dev, v2.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4, v2.3.5] but these conflict with your requirements or minimum-stability.
- behat/behat v2.5.2 requires behat/gherkin ~2.3.0 -> satisfiable by behat/gherkin[2.3.x-dev, v2.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4, v2.3.5] but these conflict with your requirements or minimum-stability.
- behat/behat v2.5.1 requires behat/gherkin ~2.3.0 -> satisfiable by behat/gherkin[2.3.x-dev, v2.3.0, v2.3.1, v2.3.2, v2.3.3, v2.3.4, v2.3.5] but these conflict with your requirements or minimum-stability.
- behat/behat v2.5.0 requires behat/gherkin ~2.2.9 -> satisfiable by behat/gherkin[v2.2.9] but these conflict with your requirements or minimum-stability.
- Installation request for behat/behat 2.5.* -> satisfiable by behat/behat[v2.5.0, v2.5.1, v2.5.2, v2.5.3, v2.5.4, v2.5.5].
当前在require dev中有以下设置:
"phpunit/phpunit": "4.8.x-dev",
"phpunit/dbunit": "1.3.*",
"codeception/codeception": "2.2.7",
"fzaninotto/faker": "1.4.*",
"flow/jsonpath": "0.2.*",
"behat/behat": "2.5.*",
"behat/gherkin": "~4.4.0",
以及我们公司创建的一个不相关的翻译包。
我正在尝试将codeception更新到最新版本。
我已经尝试过在不同的版本中设置phpunit,但我无法消除错误。
我做错了什么?
最新消息
我更新composer.json使用相同版本的包
composer show
输出,除
"zendframework/zend-crypt": "2.3.*",
跑了
composer update
仍然得到错误:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- mabuzagu/pdo-dblib-module dev-master requires doctrine/doctrine-orm-module ^1.0.0 -> satisfiable by doctrine/doctrine-orm-module[1.0.0, 1.1.0].
- mabuzagu/pdo-dblib-module dev-master requires doctrine/doctrine-orm-module ^1.0.0 -> satisfiable by doctrine/doctrine-orm-module[1.0.0, 1.1.0].
- doctrine/doctrine-orm-module 1.0.0 requires doctrine/orm >=2.5,<2.7 -> satisfiable by doctrine/orm[v2.5.0, v2.5.1, v2.5.2, v2.5.3, v2.5.4, v2.5.5].
- doctrine/orm v2.5.5 requires doctrine/common >=2.5-dev,<2.7-dev -> satisfiable by doctrine/common[2.5.x-dev, 2.6.x-dev, v2.5.0, v2.5.0-beta1, v2.5.1, v2.5.2, v2.5.3, v2.6.0, v2.6.1, v2.6.2] but these conflict with your requirements or minimum-stability.
- doctrine/orm v2.5.4 requires doctrine/common >=2.5-dev,<2.7-dev -> satisfiable by doctrine/common[2.5.x-dev, 2.6.x-dev, v2.5.0, v2.5.0-beta1, v2.5.1, v2.5.2, v2.5.3, v2.6.0, v2.6.1, v2.6.2] but these conflict with your requirements or minimum-stability.
- doctrine/orm v2.5.3 requires doctrine/common >=2.5-dev,<2.7-dev -> satisfiable by doctrine/common[2.5.x-dev, 2.6.x-dev, v2.5.0, v2.5.0-beta1, v2.5.1, v2.5.2, v2.5.3, v2.6.0, v2.6.1, v2.6.2] but these conflict with your requirements or minimum-stability.
- doctrine/orm v2.5.2 requires doctrine/common >=2.5-dev,<2.6-dev -> satisfiable by doctrine/common[2.5.x-dev, v2.5.0, v2.5.0-beta1, v2.5.1, v2.5.2, v2.5.3] but these conflict with your requirements or minimum-stability.
- doctrine/orm v2.5.1 requires doctrine/common >=2.5-dev,<2.6-dev -> satisfiable by doctrine/common[2.5.x-dev, v2.5.0, v2.5.0-beta1, v2.5.1, v2.5.2, v2.5.3] but these conflict with your requirements or minimum-stability.
- doctrine/orm v2.5.0 requires doctrine/common >=2.5-dev,<2.6-dev -> satisfiable by doctrine/common[2.5.x-dev, v2.5.0, v2.5.0-beta1, v2.5.1, v2.5.2, v2.5.3] but these conflict with your requirements or minimum-stability.
- doctrine/doctrine-orm-module 1.1.0 requires php ^5.6 || ^7.0 -> your PHP version (5.5.9) does not satisfy that requirement.
- Installation request for mabuzagu/pdo-dblib-module dev-master -> satisfiable by mabuzagu/pdo-dblib-module[dev-master].
那是为什么呢?在我设置新版本之前,它现在可能不会更新任何东西。
我做错了什么?
问题是您正在尝试更新单个包,而不是更新整个包列表,这是较新版本的codec0019
所要求的。
正如您在错误消息中所看到的,所有其他依赖项都渴望更新,但被锁定,因为它们已经在composer.lock
文件中指定了版本。
删除. lock文件可能会有所帮助,但不是正确的方法。只要明确告诉作曲家根据composer.json
更新所有内容。
P.S.您也可以考虑在将来提到的命令中使用<代码>作曲符清除Cache < /C>,当您绝对希望从零开始下载并安装所有依赖项时。
我在Laravel-5.1中有一个项目,我已经将我的平台从win10改为Ubuntu。 显示错误: 使用包信息加载composer存储库 更新依赖项(包括需要开发人员) 无法将您的需求解析为可安装的软件包集。 作曲家/json. }
我需要在我的主机上运行composer update,因此我使用ssh登录,并尝试在/www文件夹中运行以下命令,我在该文件夹中安装了Laravel和composer: 我得到这个错误: 我正在与我的主机提供商联系,他们告诉我运行命令: 我运行了这个命令,但得到:“无法打开文件:composer” 怎么办?这里的解决方案是什么?
在我的composer.json我更新了以下行: 当我调用
我在安装我创建的包时遇到问题。。。。 https://packagist.org/packages/mardy-git/redirect 据我所知,一切正常,我应该能够安装它。但是,当我运行composer安装或更新时,会收到以下错误消息。。。 在我的composer.json文件中,我有: 这是我今天下午创建的一个全新的包,我以前没有遇到过这样的问题,所以我不知道从哪里开始寻找解决方案。如果我删
仅供参考,我正在使用ubuntu 14.04 当我需要一些新的软件包/扩展时,我使用作曲家要求命令来做作曲家添加。但是我注意到,有时它会从我的供应商和项目中删除一些现有的包。 我试着遵循命令。 还尝试了一些谷歌搜索。 http://www.yiiframework.com/wiki/672/install-specific-yii2-vendor-extension-dependency-with
我的项目结构如下: composer.json如下: 如果我在不使用lib类的情况下运行测试,那么一切都会正常工作。但是(例如)如果我有 File1Test.php 我明白了: 有人知道问题出在哪里吗?