composer require findbrok/php-watson-api-bridge 给出这些错误如何解决我的 laravel 是 8
composer require findbrok/php-watson-api-bridge giving these error how to solve this my laravel is 8
我正在尝试使用 laravel 8 和 watson api 创建一座桥,但我收到以下错误,有人可以在这里帮助我吗
composer require findbrok/php-watson-api-bridge
Using version ^1.1 for findbrok/php-watson-api-bridge
./composer.json has been updated
Running composer update findbrok/php-watson-api-bridge
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- findbrok/php-watson-api-bridge 1.1.x-dev requires illuminate/support ~5.0 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- findbrok/php-watson-api-bridge[dev-master, v1.1.0, ..., v1.1.2] require guzzlehttp/guzzle 6.2.* -> found guzzlehttp/guzzle[6.2.0, 6.2.1, 6.2.2, 6.2.3] but it conflicts with your root composer.json require (^7.0.1).
- findbrok/php-watson-api-bridge 1.2.x-dev is an alias of findbrok/php-watson-api-bridge dev-master and thus requires it to be installed too.
- Root composer.json requires findbrok/php-watson-api-bridge ^1.1 -> satisfiable by findbrok/php-watson-api-bridge[v1.1.0, ..., 1.2.x-dev (alias of dev-master)].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to
specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.```
看来这个包是旧的,不再维护了。
问题是 Laravel 8 安装版本 7 的 Guzzle Http。
但是您尝试安装的包在版本 6 之前与 Guzzle 兼容。
您可以在根 composer.json 中降级 Guzzle,但我不推荐这样做。它可能会破坏框架。
另一个解决方案是尝试对包进行 PR 以使其与 Laravel 8 兼容,或者使用 Laravel 版本 7
我正在尝试使用 laravel 8 和 watson api 创建一座桥,但我收到以下错误,有人可以在这里帮助我吗
composer require findbrok/php-watson-api-bridge
Using version ^1.1 for findbrok/php-watson-api-bridge
./composer.json has been updated
Running composer update findbrok/php-watson-api-bridge
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- findbrok/php-watson-api-bridge 1.1.x-dev requires illuminate/support ~5.0 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- findbrok/php-watson-api-bridge[dev-master, v1.1.0, ..., v1.1.2] require guzzlehttp/guzzle 6.2.* -> found guzzlehttp/guzzle[6.2.0, 6.2.1, 6.2.2, 6.2.3] but it conflicts with your root composer.json require (^7.0.1).
- findbrok/php-watson-api-bridge 1.2.x-dev is an alias of findbrok/php-watson-api-bridge dev-master and thus requires it to be installed too.
- Root composer.json requires findbrok/php-watson-api-bridge ^1.1 -> satisfiable by findbrok/php-watson-api-bridge[v1.1.0, ..., 1.2.x-dev (alias of dev-master)].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to
specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.```
看来这个包是旧的,不再维护了。
问题是 Laravel 8 安装版本 7 的 Guzzle Http。
但是您尝试安装的包在版本 6 之前与 Guzzle 兼容。
您可以在根 composer.json 中降级 Guzzle,但我不推荐这样做。它可能会破坏框架。
另一个解决方案是尝试对包进行 PR 以使其与 Laravel 8 兼容,或者使用 Laravel 版本 7