Composer安装:无法将您的要求解析为可安装的软件包集

时间:2015-07-22 14:12:17

标签: bolt-cms

尝试使用以下命令安装Bolt v2.2.4:

git clone git://github.com/bolt/bolt.git bolt
cd bolt
git checkout v2.2.4
composer install

然后我收到以下错误:

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for m6web/symfony2-coding-standard dev-master@dev -> satisfiable by m6web/symfony2-coding-standard[dev-master].
    - m6web/symfony2-coding-standard dev-master requires squizlabs/php_codesniffer ~1.0 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

2 个答案:

答案 0 :(得分:1)

我刚刚在bolt 2.1.9

下遇到了同样的问题

我现在通过在composer.json中将1.5.*更改为~2 squizlabs/php_codesniffer来为我“修复”它。

答案 1 :(得分:0)

您是否有机会使用IPv6?如果是,请执行composer self-update