Answer the question
In order to leave comments, you need to log in
Composer gives "Your requirements could not be resolved to an installable set of packages" error. How to resolve?
When composer update > ~/toster
it turns out
[32mLoading composer repositories with package information[0m
[32mUpdating dependencies (including require-dev)[0m
[37;41mYour requirements could not be resolved to an installable set of packages.[0m
Problem 1
- phpdocumentor/template-abstract 1.2.1 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- phpdocumentor/template-abstract 1.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
- phpdocumentor/phpdocumentor dev-master requires phpdocumentor/template-abstract ~1.2 -> satisfiable by phpdocumentor/template-abstract[1.2, 1.2.1].
- Installation request for phpdocumentor/phpdocumentor dev-master -> satisfiable by phpdocumentor/phpdocumentor[dev-master].
composer.json{
"name": "krll_/krll.tk",
"require": {
"slim/slim": "dev-master",
"j4mie/paris": "dev-master",
"phpdocumentor/phpdocumentor": "dev-master"
},
"config": {
"bin-dir": "bin"
}
}
How to resolve? Tried everything I could.
Answer the question
In order to leave comments, you need to log in
I found a raised topic here and here , there is also a hint for permission:
1. Check for the presence of the ext-xsl extension
$ composer show --platform | grep ext-x
$ composer show --platform | grep ext-xsl
composer require --dev ext-xsl "*"
Helped me personally:
sudo apt-get install php7.4-mbstring
sudo apt-get install php7.4-xml
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question