composer install
only a specific package
#11870
-
I'm trying to install a single package based on it's version in the Very unhelpfully
Using
Am I missing something, or is this actually not possible, and I will have to live with the drawbacks of either installing everything unnecessarily, using potentially mismatched version, or requiring manual updating? The only other solution that comes to mind is parsing the I'm grateful for any ideas. :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yeah, we only support dependencies as a set of things. Installing a single dependency is typically meaningless so this is not supported. You can use |
Beta Was this translation helpful? Give feedback.
Yeah, we only support dependencies as a set of things. Installing a single dependency is typically meaningless so this is not supported. You can use
composer show --lock --format=json
to extract data and maybe run a require to create a new composer.json with a new vendor dir containing just the one dependency..