B
B
bagos2018-04-28 16:52:18
Composer
bagos, 2018-04-28 16:52:18

How to painlessly fix Composer dependencies?

The project that I got has Lock and json files, but json does not contain even half of the packages that are registered in Lock
. How can I painlessly restore or put json in order, register all packages manually from Lock? Then delete Locky and the vendors folder and reinstall everything?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2018-04-28
@Maksclub

but in json there is not even half of the packages that are registered in Lock

The packages missing for you are in the dependencies of those packages that are in composer.json
:)
I have in composer.json "symfony/var-dumper": "4.0.*", it has in dependencies "symfony/polyfill-mbstring": "~1.0",, this package is listed in my .lock, but it makes no sense to follow these manual dependencies - this is harmful, dangerous and unnecessary, everything that the package needs - the composer will pull it up :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question