4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

laravel/frameworkとilluminate/supportの依存関係が解決できなかった【小説印刷支援サイト】

Posted at

承前

投稿した小説をそのまま印刷できるWebサイトを立ち上げようとしている。

開発言語・環境

  • PHP7.2
  • Laravel 6

困ったこと

ライブラリを追加しようとしたところ、いつの間にか composer updateが通らなくなっていた。

現象

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install laravel/framework v6.18.3
    - Conclusion: don't install laravel/framework v6.18.2
    - Conclusion: don't install laravel/framework v6.18.1
    - Conclusion: don't install laravel/framework v6.18.0
    - Conclusion: don't install laravel/framework v6.17.1
    - Conclusion: don't install laravel/framework v6.17.0
    - don't install illuminate/support 7.x-dev|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v7.2.0|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v7.2.1|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v7.2.2|don't install laravel/framework 6.x-dev
    - don't install illuminate/support v7.3.0|don't install laravel/framework 6.x-dev
    - Installation request for laravel/framework ~6.17||6.x-dev -> satisfiable by laravel/framework[6.x-dev, v6.17.0, v6.17.1, v6.18.0, v6.18.1, v6.18.2, v6.18.3].
    - Installation request for illuminate/support ~7.2 -> satisfiable by illuminate/support[7.x-dev, v7.2.0, v7.2.1, v7.2.2, v7.3.0].

原因

  • laravel/frameworkのアップデート前に"illuminate/support":"~7.2"を記載してしまった。
  • そもそもilluminate/support 7.*laravel/framework ver6.*をサポートしていなかった。

対処

requireを下記のように修正したところ、composer updateが通るようになった。

composer.json
    "require": {
        "php": "^7.2",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "^6.18",
        "laravel/tinker": "^2.0",
        "webpatser/laravel-uuid": "^3.0",
        "illuminate/support":"^6.0",
        "tecnickcom/tcpdf": "6.2.*"
    }

反省

  • composerは依存関係を解決してくれるが競合はどうしようもない。
  • ので、依存関係は自分で把握する。

Webサイトの公開予定

8~9月頃を予定しています。
段階的に機能開放していくかもです。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?