Downgrade of package in Laravel

Asked

Viewed 985 times

3

I’m facing a problem to run the composer install due to a package that is incompatible with the version of the Laravel that I currently use;

The version I have is 4.1 with php 5.6, but when I run install get the message;

Illuminate/support v5.5.2 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.

Unfortunately someone has updated the package and now I can’t install it in the right environment. How can I do the downgrade for packages to be compatible with the current version of Standard? (4.1)

  • You don’t have a project backup before you upgrade?

  • unfortunately not @Darleifernandozillmer, the person who did this did it right on the production server and nobody knows what was done, so much so that nothing registered in git.

  • Good but if you have in git da to compare the latest version there with the current updated. Anyway, you cited 4.1 at the end of the question and 5.1 at the beginning, just to clarify, which version of php and current and previous upgrade?

  • 1

    @Darleifernandozillmer my fault, already corrected!

1 answer

0

I would do so:

  • Remove the package with the command composer remove illuminate/support
  • Clear the cache with the command composer clear or composer clear-cache. This is important because, when installing again, usually Composer tries to get the version that is cached.

  • Turn the command composer require illuminate/support 4.1.*

  • illuminate/support is not required in your composer.json and has not been removed, the support is a dependency of Aravel and is not in package.json

  • in this case, I think you can do by specifying the version of the Laravel and removing the cache.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.