composer install 时遇到错误: Your requirements could not be resolved to an installable set of packages. 原因是我的PHP版本是7.0的,低了,默认的是7.1版本的. 项目里composer.json的PHP要求是 "php": ">=7.0.0",所以7.0版本的也是支持的. composer可以设置忽略版本匹配,命令如下: composer install --i
在执行 composer update 时,报错 You made a reference to a non-existent script @php artisan package:discover 网上说是 composer 的版本太低,查看了一下当前安装的版本 composer -V Composer version 1.2.1 2016-09-12 11:27:19 解决方法,升级 composer 版本 composer selfupdate Updating to version 1
问题1: Your requirements could not be resolved to an installable set of packages 则表明 未安装fxp/composer-asset-plugin : 解决方法:控制台执行 composer global require "fxp/composer-asset-plugin:~1.0.0" 或尝试运行 composer global require "fxp/composer-asset-plugin
Your requirements could not be resolved to an installable set of packages. 以上原因:不匹配composer.json要求的版本. 解决方案: composer可以设置忽略版本匹配, composer install --ignore-platform-reqs composer update --ignore-platform-reqs 再次执行composer命令可以正常安装包了. 原文链接:https://blog.