我正在尝试安装一个库,在说明中说要这样做
composer require mailgun/mailgun-php php-http/curl-client guzzlehttp/psr7
但是我得到“您的要求无法解决为一组可安装的软件包”
所以我尝试将它们设置正确,最后归结为
composer require mailgun/mailgun-php php-http/curl-client guzzlehttp/psr7 php-http/client-common:^1.1 php-http/httplug:^1.0 php-http/curl-client:^2.0
然后我被这个消息困住了
php-http/curl-client 2.0.0 requires php-http/httplug ^2.0 -> satisfiable by php-http/httplug[2.0.x-dev, v2.0.0] but these conflict with your requirements or minimum-stability
这似乎与之前的要求相反。所以我不确定我在做什么错,我应该如何解决呢?
答案 0 :(得分:0)
似乎Marker marker = Marker(
consumeTapEvents: false,
markerId: MarkerId(markerId.toString()),
position:
LatLng(truck.situation.position.lat, truck.situation.position.long),
infoWindow: InfoWindow(
title: truck.name,
onTap: ({BuildContext context}) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => TruckScreen(truck: truck)
),
);
},
),
);
试图安装软件包的最新版本。而且,您的最新版本不能满足所有要求。您可以将版本指定为case 'infoWindow#onTap':
_googleMapState.onInfoWindowTap(call.arguments['markerId']);
break;
,并且Composer在尝试查找符合所有要求的依赖项集时也会考虑较早的版本。您可以使用composer require
或在>0
文件中设置composer require mailgun/mailgun-php:">0" php-http/curl-client:">0" guzzlehttp/psr7:">0"
的值,以使用从最早的版本开始的任何版本:
requires
然后运行composer.json
。