yii2: Composer dependency problem
I can’t execute composer update or composer install because Yii2 depends on “bower-asset/jquery”, which not longer exists (https://github.com/bower-asset/jquery)
Any solution? Thanks
Wokraround: https://github.com/yiisoft/yii2/issues/13247#issuecomment-267952064
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 27 (15 by maintainers)
For those who faced this problem - try https://asset-packagist.org as an alternative.
After adding asset-packagist to your composer.json, as it is described on the site do the following:
composer install(orcomposer update)web.php)See https://asset-packagist.org/site/about to know more
Asset-packagist is not a temporary solution. It’s a full alternative to
fxp/composer-asset-plugin, you are free to choose. We are going to add a guide article about it soon: https://github.com/yiisoft/yii2/issues/13064asset-packagist does not respect
"bower-asset-library": "vendor/bower"setting probably. Now@boweralias points tovendor/bowerand asset-packagist puts bower packages inbower-assetfolder.I still have problem updating via composer
I cannot find a working solution to this problem though the issue is closed
@mrSerg161 paste the following content to
config/web.phpIf your facing this problem:
to fix this situation you can add this to your composer.json
Relates https://github.com/fxpio/composer-asset-plugin/issues/268