度々すみません...
composer updateをEC2上にて行った際に、下記のエラーになりました。
原因がなかなかわからず詰まっております。。。。
ご教授いただければ幸いです。
宜しくお願い致します。
> Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover Exception : The /var/www/html/live/bootstrap/cache directory must be present and writable. at /var/www/html/live/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php:165 161| */ 162| protected function write(array $manifest) 163| { 164| if (! is_writable(dirname($this->manifestPath))) { > 165| throw new Exception('The '.dirname($this->manifestPath).' directory must be present and writable.'); 166| } 167| 168| $this->files->put( 169| $this->manifestPath, '<?php return '.var_export($manifest, true).';' Exception trace: 1 Illuminate\Foundation\PackageManifest::write() /var/www/html/live/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php:125 2 Illuminate\Foundation\PackageManifest::build() /var/www/html/live/vendor/laravel/framework/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php:32 Please use the argument -v to see more details. Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
localでは成功しています。
追加機能でLine認証などを入れたので(socialite)、updateを行いたいのですが。
追記
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": "^7.1.3", "doctrine/dbal": "^2.7", "fideloper/proxy": "^4.0", "laravel/framework": "5.6.*", "laravel/socialite": "^3.0", "laravel/tinker": "^1.0", "laravelcollective/html": "^5.6", "league/flysystem-aws-s3-v3": "~1.0", "socialiteproviders/line": "^2.0" }, "require-dev": { "filp/whoops": "^2.0", "fzaninotto/faker": "^1.4", "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 }
試したこと
sudo chmod -R 775 bootstrap/cache/
php artisan cache:clear
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。