I try to install sentry/laravel but I got this error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sentry/sentry-laravel 1.6.1 requires sentry/sdk ^2.1 -> satisfiable by sentry/sdk[2.1.0].
- Installation request for sentry/sentry-laravel 1.6.1 -> satisfiable by sentry/sentry-laravel[1.6.1].
- Conclusion: remove guzzlehttp/psr7 1.5.2
- Conclusion: don't install guzzlehttp/psr7 1.5.2
- sentry/sdk 2.1.0 requires sentry/sentry ^2.3 -> satisfiable by sentry/sentry[2.3.0, 2.3.1, 2.4.x-dev, 2.3.x-dev].
- sentry/sentry 2.3.0 requires guzzlehttp/psr7 ^1.6 -> satisfiable by guzzlehttp/psr7[1.6.0, 1.6.1, 1.x-dev].
- sentry/sentry 2.3.1 requires guzzlehttp/psr7 ^1.6 -> satisfiable by guzzlehttp/psr7[1.6.0, 1.6.1, 1.x-dev].
- sentry/sentry 2.4.x-dev requires guzzlehttp/psr7 ^1.6 -> satisfiable by guzzlehttp/psr7[1.6.0, 1.6.1, 1.x-dev].
- sentry/sentry 2.3.x-dev requires guzzlehttp/psr7 ^1.6 -> satisfiable by guzzlehttp/psr7[1.6.0, 1.6.1, 1.x-dev].
- Can only install one of: guzzlehttp/psr7[1.6.0, 1.5.2].
- Can only install one of: guzzlehttp/psr7[1.6.1, 1.5.2].
- Can only install one of: guzzlehttp/psr7[1.x-dev, 1.5.2].
- Installation request for guzzlehttp/psr7 (locked at 1.5.2) -> satisfiable by guzzlehttp/psr7[1.5.2].
Installation failed, reverting ./composer.json to its original content.
can anyone help me
@IMM9O can you show me you current composer.json I find these messages hard to decode what exactly might be going on :)
From the first glance it looks like you might have guzzlehttp/psr7 locked at version 1.5 in your composer.json and we require at least version 1.6. Although this might be some other dependency locking that version, so if your not locking guzzlehttp/psr7 at 1.5 the composer.json would help figuring it out.
Thanks, @stayallive for the quick response, hers is my composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.1.3",
"alaouy/youtube": "^2.2",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "~6.0",
"laravel/framework": "5.8.*",
"laravel/tinker": "^1.0",
"stripe/stripe-php": "^6.31"
},
"require-dev": {
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
}
}
It installs just fine on my PC 鈩笍 .
Could you try to run composer update and then composer require sentry/sentry-laravel?
I think your dependencies might just be a touch out-of-date causing the conflict.
Thanks, @stayallive it is working fine now
composer remove sentry/sentry-laravel
composer require guzzlehttp/psr7
composer require sentry/sentry-laravel
This has worked for me ;)
Most helpful comment
This has worked for me ;)