Laravelでcomposer installがエラーになります
composer installすると
error
Verifying lock file contents can be installed on current platform. Your lock file does not contain a compatible set of packages. Please run composer update. Problem 1 - yajra/laravel-oci8 is locked to version v6.1.2 and an update of this package was not requested. - yajra/laravel-oci8 v6.1.2 requires ext-oci8 >=2.0.0 -> it is missing from your system. Install or enable PHP's oci8 extension. To enable extensions, verify that they are enabled in your .ini files: - /Applications/MAMP/bin/php/php7.4.16/conf/php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
となるので、composer updateをすると
error
Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires yajra/laravel-oci8 6.1.2 -> satisfiable by yajra/laravel-oci8[v6.1.2]. - yajra/laravel-oci8 v6.1.2 requires ext-oci8 >=2.0.0 -> it is missing from your system. Install or enable PHP's oci8 extension. To enable extensions, verify that they are enabled in your .ini files: - /Applications/MAMP/bin/php/php7.4.16/conf/php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
composer.json
{ "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "php": "^7.2.5|^8.0", "barryvdh/laravel-snappy": "0.4.8", "fideloper/proxy": "^4.4", "laravel/framework": "^6.20", "laravel/tinker": "^2.5", "simplesoftwareio/simple-qrcode": "4.2.0", "yajra/laravel-oci8": "6.1.2" }, "require-dev": { "facade/ignition": "^1.16.4", "fakerphp/faker": "^1.9.1", "laravel/ui": "1.*", "mockery/mockery": "^1.0", "nunomaduro/collision": "^3.0", "phpunit/phpunit": "^8.5.8|^9.3.3" }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true }, "extra": { "laravel": { "dont-discover": [] } }, "autoload": { "psr-4": { "App\\": "app/" }, "classmap": [ "database/seeds", "database/factories" ] }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "minimum-stability": "dev", "prefer-stable": true, "scripts": { "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] } }
となります。ここで詰まってしまって進めていないです。
もしわかる方いましたらご教授いただけると幸いです。
まだ回答がついていません
会員登録して回答してみよう