0
我正在嘗試在我正在使用的遺留代碼上安裝doctrine/dbal。在試圖運行composer require doctrine/dbal
我得到的錯誤:Laravel - 安裝doctrine/dbal失敗
[RuntimeException]
Could not scan for classes inside "app/Libs" which does not appear to be a file nor a folder
這是composer.json文件:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"jgrossi/corcel": "^1.4",
"ellipsesynergie/api-response": "^0.12.3",
"corcel/acf": "^0.1.12"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"symfony/css-selector": "2.8.*|3.0.*",
"symfony/dom-crawler": "2.8.*|3.0.*"
},
"autoload": {
"classmap": [
"database",
"app/Libs"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
}
}
我該如何解決呢?
你說'app \ Libraries',但錯誤顯示'app/Libs',你確定它不是一個錯字嗎?你能用完整的'composer.json'來更新你的問題嗎? –
你可以發佈你的'composer.json'文件嗎? –
對不起,是的,它是應用程序/庫存 – Leff