Refresh composer

0

You see, I try to make fixes in DomPDF. To do this, I have to do an update in the Composer, for which I must use the composer update command, but this appears:

It seems that there is an error due to incompatibilities with DomPDF. How do I solve it?

I update. Making a step back to an earlier version I partially fix my problem. But after using composer update again, this error message appeared:

Package is not installed: intervention/image-9999999-dev

I understand that what happens is that composer update is that it is outdated.

    
asked by Miguel Alparez 08.09.2018 в 13:39
source

1 answer

1

If you have dompdf/dompdf in your composer.json just update, specifying 0.8.* as version and run

composer update dompdf/dompdf

later

composer require barryvdh/laravel-dompdf

-

Running a generic composer update will affect all other dependencies that you want to keep as they are currently.

All changes affected by your composer update are then written to your composer.lock file.

When you move your project to another location or deploy it to a server, for example, the composer install will read the file composer.lock and install the exact version of its dependencies that are recorded in it.

Therefore, you will be sure about the version of your dependencies.

Reference link

    
answered by 08.09.2018 в 13:48