我在Yii2项目中使用了作曲家更新,但它正在退出并有例外.
我已将作曲家更新为最新版本c6cc6dd6070871f4b198ed39f76dd8047c116b02,但它仍然无效:
原文链接:https://www.f2er.com/php/138813.html我已将作曲家更新为最新版本c6cc6dd6070871f4b198ed39f76dd8047c116b02,但它仍然无效:
Importing tag v2.0.2 (2.0.2.0) Reading bower.json of bower-asset/yii2-pjax (v2.0.1) Reading /home/xiaoai/.composer/cache/repo/github.com/yiisoft/jquery-pjax/bower-f07ce95f6098c0bd5421789a20789f39a19be73b from cache Importing tag v2.0.1 (2.0.1.0) Reading /home/xiaoai/.composer/cache/repo/https---packagist.org/provider-yiisoft$yii2-bootstrap.json from cache Reading /home/xiaoai/.composer/cache/repo/https---packagist.org/provider-bower-asset$bootstrap.json from cache Downloading https://bower.herokuapp.com/packages/bootstrap Writing /home/xiaoai/.composer/cache/repo/https---bower.herokuapp.com-packages/bootstrap-3c71cc99d2fc1c12a3d3e1b27e448ca612a89a1d-package.json into cache Adding VCS repository bower-asset/bootstrap Downloading https://api.github.com/repos/twbs/bootstrap Downloading https://api.github.com/repos/twbs/bootstrap/contents/bower.json?ref=master Downloading https://api.github.com/repos/twbs/bootstrap/commits/master Downloading https://api.github.com/repos/twbs/bootstrap/tags?per_page=100 Downloading https://api.github.com/repos/twbs/bootstrap/git/refs/heads?per_page=100 [UnexpectedValueException] Could not parse version constraint <=2.*: Invalid version string "2.*" Exception trace: () at phar:///usr/bin/composer.phar/src/Composer/Package/Version/VersionParser.PHP:461 Composer\Package\Version\VersionParser->parseConstraint() at phar:///usr/bin/composer.phar/src/Composer/Package/Version/VersionParser.PHP:257 Composer\Package\Version\VersionParser->parseConstraints() at phar:///usr/bin/composer.phar/src/Composer/Package/Loader/ArrayLoader.PHP:234 Composer\Package\Loader\ArrayLoader->parseLinks() at phar:///usr/bin/composer.phar/src/Composer/Package/Loader/ArrayLoader.PHP:123 Composer\Package\Loader\ArrayLoader->load() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.PHP:174 Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->preInitBranchPackage() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.PHP:138 Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->initBranches() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.PHP:45 Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->initialize() at phar:///usr/bin/composer.phar/src/Composer/Repository/ArrayRepository.PHP:178 Composer\Repository\ArrayRepository->getPackages() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/Pool.PHP:104 Composer\DependencyResolver\Pool->addRepository() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/Util.PHP:60 Fxp\Composer\AssetPlugin\Repository\Util::addRepositoryInstance() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/Util.PHP:39 Fxp\Composer\AssetPlugin\Repository\Util::addRepository() at /home/xiaoai/.composer/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetsRepository.PHP:139 Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository->whatProvides() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/Pool.PHP:199 Composer\DependencyResolver\Pool->computeWhatProvides() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/Pool.PHP:188 Composer\DependencyResolver\Pool->whatProvides() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.PHP:161 Composer\DependencyResolver\RuleSetGenerator->whitelistFromPackage() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.PHP:273 Composer\DependencyResolver\RuleSetGenerator->whitelistFromJobs() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.PHP:324 Composer\DependencyResolver\RuleSetGenerator->getRulesFor() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/Solver.PHP:177 Composer\DependencyResolver\Solver->solve() at phar:///usr/bin/composer.phar/src/Composer/Installer.PHP:505 Composer\Installer->doInstall() at phar:///usr/bin/composer.phar/src/Composer/Installer.PHP:230 Composer\Installer->run() at phar:///usr/bin/composer.phar/src/Composer/Command/UpdateCommand.PHP:140