asantibanez / livewire-calendar

Laravel Livewire component to show Events in a good looking monthly calendar
MIT License
907 stars 233 forks source link

Installation error #41

Closed roomdada closed 2 years ago

roomdada commented 2 years ago

I get this error when I try to install the package

Problem 1

You can also try re-running composer require with an explicit version constraint, e.g. "composer require asantibanez/livewire-calendar:*" to figure out if any version is installable, or "composer require asantibanez/livewire-calendar:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

I have laravel version 9.19 and illuminate/support 9.28. thank you in advance for your return.

rapgithub commented 2 years ago

I got the same error when I installed but I solved but do not know how! I let you know once I find it out! OK I think the code is not being active maintained and I open a ticket weeks ago and nobody replying yet... sadly

roomdada commented 2 years ago

I have noticed this even though my ticket has been open for quite some time. I hope to get an answer to solve the problem as I really need to get it into a project.

@rapgithub thank you for your reply

rapgithub commented 2 years ago

hi sorry for the delay! the package does not support L9 that is why! so just try this!

open composer.json and add this line:

"repositories": [{ "type": "package", "canonical": false, "package": { "version": "master", "name": "asantibanez/livewire-calendar", "source": { "url": "https://github.com/Butochnikov/livewire-calendar.git", "type": "git", "reference": "master" } } }]

Let us mention that the line above has already been forked and updated to work with Laravel 9.

then after you added the line above then run:

composer require asantibanez/livewire-calendar:*

and viola! the installation will be done without errors!

let me know if now works! :)

roomdada commented 2 years ago

It works perfectly, thank you for your feedback. But since I use zsh I had to run it like this: compose req 'asantibanez/livewire-calendar:' otherwise I get this error zsh: no matches found: asantibanez/livewire-calendar:

rapgithub commented 2 years ago

I am happy that you solved it like this! :) any other thing just let me know because this package is not being updated yet to support L9 and the only solution is that one at the moment!

👍