Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install LERN 5.x package on Laravel 6.x #73

Closed
nabeeljavaid opened this issue Jan 23, 2020 · 7 comments
Closed

Unable to install LERN 5.x package on Laravel 6.x #73

nabeeljavaid opened this issue Jan 23, 2020 · 7 comments

Comments

@nabeeljavaid
Copy link

I am trying to install this package on Laravel 6.8 but getting following composer errors, it seems like something wrong with dependency requirements

Using version ^5.0 for tylercd100/lern
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- tylercd100/laravel-notify 3.0.0 requires tylercd100/monolog-mailgun ^2.0 -> satisfiable by tylercd100/monolog-mailgun[2.0.0].
- tylercd100/lern 5.0.0 requires tylercd100/laravel-notify ^3.0 -> satisfiable by tylercd100/laravel-notify[3.0.0].
- Installation request for tylercd100/lern ^5.0 -> satisfiable by tylercd100/lern[5.0.0].
- Conclusion: remove monolog/monolog 2.0.1
- Conclusion: don't install monolog/monolog 2.0.1
- tylercd100/monolog-mailgun 2.0.0 requires monolog/monolog ^1.11 -> satisfiable by monolog/monolog[1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.17.2, 1.18.0, 1.18.1, 1.18.2, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.25.0, 1.25.1, 1.25.2, 1.25.3, 1.x-dev].
- Can only install one of: monolog/monolog[1.12.0, 2.0.1].
- Can only install one of: monolog/monolog[1.13.0, 2.0.1].
- Can only install one of: monolog/monolog[1.13.1, 2.0.1].
- Can only install one of: monolog/monolog[1.14.0, 2.0.1].
- Can only install one of: monolog/monolog[1.15.0, 2.0.1].
- Can only install one of: monolog/monolog[1.16.0, 2.0.1].
- Can only install one of: monolog/monolog[1.17.0, 2.0.1].
- Can only install one of: monolog/monolog[1.17.1, 2.0.1].
- Can only install one of: monolog/monolog[1.17.2, 2.0.1].
- Can only install one of: monolog/monolog[1.18.0, 2.0.1].
- Can only install one of: monolog/monolog[1.18.1, 2.0.1].
- Can only install one of: monolog/monolog[1.18.2, 2.0.1].
- Can only install one of: monolog/monolog[1.19.0, 2.0.1].
- Can only install one of: monolog/monolog[1.20.0, 2.0.1].
- Can only install one of: monolog/monolog[1.21.0, 2.0.1].
- Can only install one of: monolog/monolog[1.22.0, 2.0.1].
- Can only install one of: monolog/monolog[1.22.1, 2.0.1].
- Can only install one of: monolog/monolog[1.23.0, 2.0.1].
- Can only install one of: monolog/monolog[1.24.0, 2.0.1].
- Can only install one of: monolog/monolog[1.25.0, 2.0.1].
- Can only install one of: monolog/monolog[1.25.1, 2.0.1].
- Can only install one of: monolog/monolog[1.25.2, 2.0.1].
- Can only install one of: monolog/monolog[1.25.3, 2.0.1].
- Can only install one of: monolog/monolog[1.x-dev, 2.0.1].
- Can only install one of: monolog/monolog[1.11.0, 2.0.1].
- Installation request for monolog/monolog (locked at 2.0.1) -> satisfiable by monolog/monolog[2.0.1].

@Eluia
Copy link

Eluia commented Feb 6, 2020

This is due to a conflict in requires.

This package (and some of it's dependencies) require monolog/monolog in version ^1.22 while laravel 6 (and ignition) requires monolog/monolog ^1.12 || ^2.0

I managed to fix it for now and install tylercd100/lern in my laravel 6 by forcing a monolog version 1 in my composer.json :

"monolog/monolog": "^1.22"

@nabeeljavaid
Copy link
Author

should I install "monolog/monolog": "^1.22" in my laravel-6.8 project before installing lern package?

@Eluia
Copy link

Eluia commented Feb 6, 2020

I edited my project's composer.json and added "monolog/monolog": "^1.22" in the require array.
Then I ran a composer update, before installing lern package.
Worked for me on laravel 6.14.0

@nabeeljavaid
Copy link
Author

@Eluia I don't want to downgrade monolog/monolog, I think tylercd100/lern package should support latest version of monolog/monolog ^2.0 so developers can easily install it on latest version of Laravel without any cumbersome.
THANKS

@Eluia
Copy link

Eluia commented Feb 6, 2020

Same as you, I'd rather run monolog/monolog ^2.0.
Bu until devs fix the packages for laravel 6 and monolog 2 I'll have to run it with monolog 1

@tylercd100
Copy link
Owner

tylercd100 commented Feb 6, 2020 via email

@tylercd100
Copy link
Owner

I believe the new version adds support for monolog v2
#78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants