composer.json 需要 illuminate/support ^5.2
composer.json requires illuminate/support ^5.2
我尝试安装:
composer require laravel-notification-channels/pusher-push-notifications
打包到我的 laravel 项目中。但是我一直收到这个错误
Your requirements could not be resolved to an installable set of packages.
问题 1
- 根 composer.json 需要 illuminate/support ^5.2,发现 illuminate/support[v5.2.0, ..., 5.8.x-dev] 但这些未加载,可能是因为它与另一个要求冲突。
这是我的 composer.json:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2.5",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"hekmatinasser/verta": "^1.10",
"intervention/image": "^2.5",
"laravel/framework": "^7.0",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.0",
"morilog/jalali": "3.*",
"shetabit/payment": "^4.0",
"tzsk/sms": "^4.0",
"illuminate/support" : "^5.2",
"econea/nusoap": "v0.9.5.*",
"rackspace/php-opencloud": "dev-master"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
"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"
]
}
}
我是 laravel 的初学者。希望有人提供解决方案。提前致谢。
从您的 composer.json
文件中删除 illuminate/support
。您正在尝试使用 laravel/framework ^7.0
,它将为 ^7.0
提供 illuminate/support
作为框架的一部分。
我尝试安装:
composer require laravel-notification-channels/pusher-push-notifications
打包到我的 laravel 项目中。但是我一直收到这个错误
Your requirements could not be resolved to an installable set of packages.
问题 1 - 根 composer.json 需要 illuminate/support ^5.2,发现 illuminate/support[v5.2.0, ..., 5.8.x-dev] 但这些未加载,可能是因为它与另一个要求冲突。
这是我的 composer.json:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2.5",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"hekmatinasser/verta": "^1.10",
"intervention/image": "^2.5",
"laravel/framework": "^7.0",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.0",
"morilog/jalali": "3.*",
"shetabit/payment": "^4.0",
"tzsk/sms": "^4.0",
"illuminate/support" : "^5.2",
"econea/nusoap": "v0.9.5.*",
"rackspace/php-opencloud": "dev-master"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
"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"
]
}
}
我是 laravel 的初学者。希望有人提供解决方案。提前致谢。
从您的 composer.json
文件中删除 illuminate/support
。您正在尝试使用 laravel/framework ^7.0
,它将为 ^7.0
提供 illuminate/support
作为框架的一部分。