前提・実現したいこと
題の通りなのですが,AWSのS3パッケージインストールの際に,誤ったバージョンをダウンロードしてしまいました。
バージョンを上げる方法がわからず悶えてしまっています。
発生している問題・エラーメッセージ
現在ダウンロードしているのがleague/flysystem-aws-s3-v2なのですが,Laravel6ではleague/flysystem-aws-s3-v3を使用するようで,この状態で進めていたところ
Class 'League\Flysystem\AwsS3v3\AwsS3Adapter' not found ```というエラーが発生してしまいます。 追加でダウンロードできるか試みたのですが ```ここに言語を入力 $ composer require league/flysystem-aws-s3-v3:^1.0 ./composer.json has been updated Running composer update league/flysystem-aws-s3-v3 Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - league/flysystem-aws-s3-v3[dev-master, 1.0.26, ..., 1.0.29] require aws/aws-sdk-php ^3.20.0 -> found aws/aws-sdk-php[3.20.0, ..., 3.191.1] but the package is fixed to 2.8.31 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - league/flysystem-aws-s3-v3 1.0.0 requires aws/aws-sdk-php 3.*@dev -> found aws/aws-sdk-php[dev-master, 3.0.0-beta.1, ..., 3.191.1] but the package is fixed to 2.8.31 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - league/flysystem-aws-s3-v3[1.0.1, ..., 1.0.25] require aws/aws-sdk-php ^3.0.0 -> found aws/aws-sdk-php[dev-master, 3.0.0-beta.1, ..., 3.191.1] but the package is fixed to 2.8.31 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - league/flysystem-aws-s3-v3 1.0.x-dev is an alias of league/flysystem-aws-s3-v3 dev-master and thus requires it to be installed too. - Root composer.json requires league/flysystem-aws-s3-v3 ^1.0 -> satisfiable by league/flysystem-aws-s3-v3[1.0.0, ..., 1.0.x-dev (alias of dev-master)]. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. Installation failed, reverting ./composer.json and ./composer.lock to their original content. ```と出力されました。 ### 該当のソースコード ```ここに言語名を入力php composer.json "require": { "php": "^7.2.5|^8.0", "fideloper/proxy": "^4.4", "laravel/framework": "^6.20.26", "laravel/socialite": "^5.2", "laravel/tinker": "^2.5", "laravel/ui": "1.*", "league/flysystem-aws-s3-v2": "^1.0" }
試したこと
エラー文に書いてあった
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
から
$ composer require --with-all-dependencies aws/aws-sdk-php ```を行いましたが ```ここに言語を入力 Using version ^3.191 for aws/aws-sdk-php ./composer.json has been updated Running composer update aws/aws-sdk-php --with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - league/flysystem-aws-s3-v2 is locked to version 1.0.3 and an update of this package was not requested. - league/flysystem-aws-s3-v2 1.0.3 requires aws/aws-sdk-php ~2.7 -> found aws/aws-sdk-php[2.7.0, ..., 2.8.x-dev] but it conflicts with your root composer.json require (^3.191). ```とでました。要は私がv2をを使っているからでたエラーだと思います。 ### 補足情報(FW/ツールのバージョンなど) 拙い説明で申し訳ありませんが,回答していただけると助かります。追加の情報が必要であればなんなりとお申し付けください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。