解决docker容器中使用composer,无法解析安装包
生活随笔
收集整理的這篇文章主要介紹了
解决docker容器中使用composer,无法解析安装包
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
解決docker容器中使用composer,無法解析安裝包
在laradock中進入容器,composer install -vvv出現(xiàn)了無法解析包的問題 // A code block Dependency resolution completed in 0.000 seconds Your requirements could not be resolved to an installable set of packages.Problem 1- Root composer.json requires fideloper/proxy, it could not be found in any version, there may be a typo in the package name.Problem 2- Root composer.json requires fruitcake/laravel-cors, it could not be found in any version, there may be a typo in the package name.Problem 3- Root composer.json requires guzzlehttp/guzzle, it could not be found in any version, there may be a typo in the package name.Problem 4- Root composer.json requires laravel/framework, it could not be found in any version, there may be a typo in the package name.Problem 5- Root composer.json requires laravel/tinker, it could not be found in any version, there may be a typo in the package name.Problem 6- Root composer.json requires facade/ignition, it could not be found in any version, there may be a typo in the package name.Problem 7- Root composer.json requires fakerphp/faker, it could not be found in any version, there may be a typo in the package name.Problem 8- Root composer.json requires laravel/sail, it could not be found in any version, there may be a typo in the package name.Problem 9- Root composer.json requires mockery/mockery, it could not be found in any version, there may be a typo in the package name.Problem 10- Root composer.json requires nunomaduro/collision, it could not be found in any version, there may be a typo in the package name.Problem 11- Root composer.json requires phpunit/phpunit, it could not be found in any version, there may be a typo in the package name.Potential causes:- A typo in the package name- The package is not available in a stable-enough version according to your minimum-stability settingsee <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.- It's a private package and you forgot to add a custom repository to find it
查看composer反饋信息,一開始也以為是版本問題,但切換了版本后還是一樣的錯誤
既然這樣就是comppser源的問題了,在composer.json中更換了一個源,
下面展示一些 內(nèi)聯(lián)代碼片。
服務(wù)器使用的是香港的,所以以上地址請求是正常的,如果只能國內(nèi)訪問,去開源社區(qū)上去換下地址
再次使用composer install -vvv
成功
總結(jié)
以上是生活随笔為你收集整理的解决docker容器中使用composer,无法解析安装包的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: offer来了java面试百度云版,精心
- 下一篇: R语言可视化散点图、ggrepel包的g