laravel + nuxtでアプリを作成しております。
現状
composer installをしようとしておりますが、エラーが出てしまいます。
エラー文
oot@f5fc0080adb6:/var/www# composer install Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Generating optimized autoload files Class App\Http\Controllers\Api\ParentController located in ./app/Http/Controllers/ParentController.php does not comply with psr-4 autoloading standard. Skipping. > Illuminate\Foundation\ComposerScripts::postAutoloadDump PHP Fatal error: Uncaught Error: Class 'PhpOption\Option' not found in /var/www/vendor/laravel/framework/src/Illuminate/Support/Env.php:81 Stack trace: #0 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1018): Illuminate\Support\Env::get('APP_SERVICES_CA...') #1 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(936): Illuminate\Foundation\Application->normalizeCachePath('APP_SERVICES_CA...', 'cache/services....') #2 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/ComposerScripts.php(57): Illuminate\Foundation\Application->getCachedServicesPath() #3 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/ComposerScripts.php(45): Illuminate\Foundation\ComposerScripts::clearCompiled() #4 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(322): Illuminate\Foundation\ComposerScripts::postAutoloadDump(Object(Composer\Script\Event)) #5 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(218): Composer\EventD in /var/www/vendor/laravel/framework/src/Illuminate/Support/Env.php on line 81 Fatal error: Uncaught Error: Class 'PhpOption\Option' not found in /var/www/vendor/laravel/framework/src/Illuminate/Support/Env.php:81 Stack trace: #0 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1018): Illuminate\Support\Env::get('APP_SERVICES_CA...') #1 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(936): Illuminate\Foundation\Application->normalizeCachePath('APP_SERVICES_CA...', 'cache/services....') #2 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/ComposerScripts.php(57): Illuminate\Foundation\Application->getCachedServicesPath() #3 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/ComposerScripts.php(45): Illuminate\Foundation\ComposerScripts::clearCompiled() #4 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(322): Illuminate\Foundation\ComposerScripts::postAutoloadDump(Object(Composer\Script\Event)) #5 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(218): Composer\EventD in /var/www/vendor/laravel/framework/src/Illuminate/Support/Env.php on line 81
$ docker-compose exec workspace bash
このコマンドでdockerコンテナ内に入り、npm install
を実行。
そのあとにcomposer install
を実行しました。
正常に動作させるにはなにが必要かがわかりません。詳しい方、教えてください。宜しくお願いします.
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。