在我的Laravel 5应用程序中(Laravel Framework 5.6.37 )已安装laravel / socialite,我尝试安装socialiteproviders / instagram 但出现错误:
$ composer require socialiteproviders/instagram
Cannot create cache directory /home/serge/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/serge/.composer/cache/files/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/serge/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Using version ^3.0 for socialiteproviders/instagram
./composer.json has been updated
Cannot create cache directory /home/serge/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/serge/.composer/cache/files/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/serge/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package laravel/socialite (locked at v3.1.1, required as ^3.2) is satisfiable by laravel/socialite[v3.1.1] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
在我的composer.json中:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"barryvdh/laravel-dompdf": "^0.8.2",
"cviebrock/eloquent-sluggable": "^4.5",
"dompdf/dompdf": "^0.8.2",
"fideloper/proxy": "^4.0",
"gloudemans/shoppingcart": "^2.5",
"graham-campbell/markdown": "^10.0",
"intervention/image": "^2.4",
"itsgoingd/clockwork": "^3.0",
"laracasts/utilities": "^3.0",
"laravel/framework": "5.6.*",
"laravel/socialite": "^3.2",
"laravel/tinker": "^1.0",
"league/html-to-markdown": "^4.6",
"martinlindhe/laravel-vue-i18n-generator": "^0.1.28",
"rap2hpoutre/laravel-log-viewer": "^0.21.0",
"spatie/laravel-permission": "^2.16",
"torann/geoip": "^1.0",
"wboyz/laravel-enum": "^0.2.1"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.1",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"laravel/dusk": "^3.0",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
我需要采取哪些步骤来安装socialiteproviders / instagram。有更好的解决方案,使laravel 5.6与instagram合作吗?
谢谢!