无法通过composer bower-asset / jquery更新yii2无法找到 [英] Cannot update yii2 via composer bower-asset/jquery could not be found
问题描述
我通过作曲家更新我的yii2,然后恢复到旧的测试版。
这是我的作曲家的错误:
加载包信息的composer存储库
更新依赖包(包括require-dev)
您的需求无法解析为可安装的包。
问题1
- 在任何版本中找不到请求的软件包bower-asset / jquery,软件包名称中可能有typ
o。
潜在原因:
- 包名称中的拼写错误
- 根据您的最小稳定性,该包在稳定足够的版本中不可用setti
ng
请参阅< https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion>更多细节。
阅读< http://getcomposer.org/doc/articles/troubleshooting.md>进一步的常见问题。
尝试在packagist搜索bower-asset / jquery,但找不到。
$感谢您的帮助:)最后修正它, UPGRADE.md doc
如果您使用Composer升级Yii,您应该首先运行以下命令(一次运行)来安装composer-asset-plugin:
composer全局需求fxp / composer-asset-plugin:^ 1.2.0
您还可能需要将以下代码添加到项目的 composer.json
文件:
extra:{
pre>
asset-installer-paths:{
npm-asset -library:vendor / npm,
bower-asset-library:vendor / bower
}
}
希望这有助于:)
I was updating my yii2 via composer then reverted back to the old beta version.
Here is the error on my composer:
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 - The requested package bower-asset/jquery could not be found in any version, there may be a typ o in the package name. Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setti ng see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details. Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Tried searching for bower-asset/jquery at packagist but it is not found.
Thanks for the help :)
解决方案Finally fixed it, just followed the steps on the UPGRADE.md doc
If you are using Composer to upgrade Yii, you should run the following command first (once for all) to install the composer-asset-plugin:
composer global require "fxp/composer-asset-plugin:^1.2.0"
You may also need to add the following code to your project's
composer.json
file :"extra": { "asset-installer-paths": { "npm-asset-library": "vendor/npm", "bower-asset-library": "vendor/bower" } }
Hopes this helps :)
这篇关于无法通过composer bower-asset / jquery更新yii2无法找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!