我无法在我的laravel 5.5中安装“Passport”软件包。
当我尝试通过作曲家安装护照包时,我面临很多包装稳定性问题。
我使用以下内容,
"require": {
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"laravel/framework": "5.5.*",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.2.0",
"laravel/passport": "^1.0"
}
当我尝试安装时,
composer update
我收到了以下错误,
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install lucadegasperi/oauth2-server-laravel 4.0.2
- Conclusion: remove lucadegasperi/oauth2-server-laravel 4.0.1
- Conclusion: don't install laravel/passport v1.0.18|don't install league/oauth2-server 4.1.5|install league/oauth2-server 5.1.5
- Conclusion: don't install laravel/passport v1.0.18|don't install league/oauth2-server 4.1.4|install league/oauth2-server 5.1.4|install league/oauth2-server 5.1.5
- Conclusion: don't install laravel/passport v1.0.18|don't install league/oauth2-server 4.1.3|install league/oauth2-server 5.1.3|install league/oauth2-server 5.1.4|install league/oauth2-server 5.1.5
- Conclusion: don't install laravel/passport v1.0.18|don't install league/oauth2-server 4.1.2|install league/oauth2-server 5.1.2|install league/oauth2-server 5.1.3|install league/oauth2-server 5.1.4|install league/oauth2-server 5.1.5
- Conclusion: don't install laravel/passport v1.0.18|don't install league/oauth2-server 4.1.1|install league/oauth2-server 5.1.1|install league/oauth2-server 5.1.2|install league/oauth2-server 5.1.3|install league/oauth2-server 5.1.4|install league/oauth2-server 5.1.5
- Conclusion: don't install lucadegasperi/oauth2-server-laravel 4.0.0
- Conclusion: don't install laravel/passport v1.0.18|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: remove league/oauth2-server 4.1.6|install laravel/passport v1.0.18
- Conclusion: don't install league/oauth2-server 5.1.5|keep league/oauth2-server 4.1.6|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.17|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.16|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.15|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.14|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.13|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.12|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.11|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.10|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.9|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.8|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.7|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.6|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.5|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.4|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.3|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.2|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install laravel/passport v1.0.1|keep league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install league/oauth2-server 4.1.5|install league/oauth2-server 5.1.5|install laravel/passport v1.0.18
- Conclusion: don't install league/oauth2-server 4.1.6|install league/oauth2-server 5.1.5|install laravel/passport v1.0.18
- Conclusion: don't install league/oauth2-server 5.0.1|keep league/oauth2-server 4.1.6|install league/oauth2-server 4.1.5|install league/oauth2-server 4.1.6|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install league/oauth2-server 5.0.2|keep league/oauth2-server 4.1.6|install league/oauth2-server 4.1.5|install league/oauth2-server 4.1.6|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install league/oauth2-server 5.0.3|keep league/oauth2-server 4.1.6|install league/oauth2-server 4.1.5|install league/oauth2-server 4.1.6|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install league/oauth2-server 5.1.0|keep league/oauth2-server 4.1.6|install league/oauth2-server 4.1.5|install league/oauth2-server 4.1.6|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install league/oauth2-server 5.1.1|keep league/oauth2-server 4.1.6|install league/oauth2-server 4.1.5|install league/oauth2-server 4.1.6|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install league/oauth2-server 5.1.2|keep league/oauth2-server 4.1.6|install league/oauth2-server 4.1.5|install league/oauth2-server 4.1.6|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Installation request for lucadegasperi/oauth2-server-laravel 4.0.x@dev -> satisfiable by lucadegasperi/oauth2-server-laravel[4.0.0, 4.0.1, 4.0.2, 4.0.x-dev].
- Conclusion: don't install league/oauth2-server 5.1.3|keep league/oauth2-server 4.1.6|install league/oauth2-server 4.1.5|install league/oauth2-server 4.1.6|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- laravel/passport v1.0.0 requires league/oauth2-server ~5.0 -> satisfiable by league/oauth2-server[5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.1.1, 5.1.2, 5.1.3, 5.1.4, 5.1.5].
- Conclusion: don't install league/oauth2-server 5.1.4|keep league/oauth2-server 4.1.6|install league/oauth2-server 4.1.5|install league/oauth2-server 4.1.6|install lucadegasperi/oauth2-server-laravel 4.0.0|install lucadegasperi/oauth2-server-laravel 4.0.2|install lucadegasperi/oauth2-server-laravel 4.0.x-dev
- Conclusion: don't install league/oauth2-server 4.1.1|install league/oauth2-server 5.1.1|install league/oauth2-server 5.1.2|install league/oauth2-server 5.1.3|install league/oauth2-server 5.1.4|install league/oauth2-server 5.1.5|install laravel/passport v1.0.17|install laravel/passport v1.0.18
- Conclusion: don't install league/oauth2-server 4.1.2|install league/oauth2-server 5.1.2|install league/oauth2-server 5.1.3|install league/oauth2-server 5.1.4|install league/oauth2-server 5.1.5|install laravel/passport v1.0.17|install laravel/passport v1.0.18
- Installation request for laravel/passport ^1.0 -> satisfiable by laravel/passport[v1.0.0, v1.0.1, v1.0.10, v1.0.11, v1.0.12, v1.0.13, v1.0.14, v1.0.15, v1.0.16, v1.0.17, v1.0.18, v1.0.2, v1.0.3, v1.0.4, v1.0.5, v1.0.6, v1.0.7, v1.0.8, v1.0.9].
- Conclusion: don't install league/oauth2-server 4.1.3|install league/oauth2-server 5.1.3|install league/oauth2-server 5.1.4|install league/oauth2-server 5.1.5|install laravel/passport v1.0.17|install laravel/passport v1.0.18
- lucadegasperi/oauth2-server-laravel 4.0.1 requires league/oauth2-server 4.1.* -> satisfiable by league/oauth2-server[4.1.6, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5].
- don't install league/oauth2-server 5.0.0|don't install league/oauth2-server 4.1.0
- Conclusion: don't install league/oauth2-server 4.1.4|install league/oauth2-server 5.1.4|install league/oauth2-server 5.1.5|install laravel/passport v1.0.17|install laravel/passport v1.0.18
如何在我的laravel(5.5)上安装护照包?
提前致谢!
答案 0 :(得分:1)
请使用
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"laravel/framework": "5.5.*",
"laravel/passport": "^4.0",
"laravel/tinker": "~1.0"
答案 1 :(得分:1)
您收到此错误是因为您尝试将旧版护照安装到最新版本的Laravel中。为了使用作曲家安装护照
首先,从composer require laravel/passport
中删除require
你的作曲家json应该是这样的。
composer.json
然后按照docs
中给出的步骤操作尝试使用Nothing
安装mySafeInit :: [a] -> Maybe [a]
mySafeInit [] = Nothing
mySafeInit l = Just (init l)
,因为它会自动为您的Laravel 5.5安装最新版本的护照,但请确保您的init
部分中未包含护照{1}}。