Error installing dependency or running update on Composer

Asked

Viewed 344 times

0

I’m having a certain problem installing any dependency using Composer. I’ve used Composer update and the Composer update -v. I need to do tests on a backup tool using Laravel at the moment. But in any other dependency I try to install this error appears below.

  • This package requires php 7.2.18 but your HHVM version does not satisfy that requirement.

This error persists even trying to use the Composer update. I tried to update the HHVM and also failed.

  • Apparently the version of PHP contained in HHVM is earlier than this.

  • Still generates the same error. I tried to install the last version. And still persists in the error.

  • @Skullfire I just reviewed that the php version was later than the HHVM version. Thanks for the help.

1 answer

0


This problem is due to the versioning of PHP with Composer. For this you must enter the folder of your Laravel project and type nano composer.json. In "require":{} change the version contained in Composer.json for the current version of your PHP. It is recommended to upgrade to the latest version of PHP.

   "require": {
            "php": "7.3.6",  //mudar a versão  
            "doctrine/dbal": "^2.9",
            "igorescobar/jquery-mask-plugin": "^1.14",
            "laravel/framework": "5.7.*",
            "laravel/tinker": "^1.0"
    }

Browser other questions tagged

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