Composer install does not work
bgaillard opened this issue · 3 comments
Hi, I tried to install the Mime library in one or our project today be it seems some dependencies are missing.
I tried with ^3.16.01
, ~3.16
or ~3.0
and end with the following resolution errors.
Problem 1
- hoa/mime 3.16.01.11 requires hoa/zformat ~0.0 -> no matching package found.
- hoa/mime 3.16.01.14 requires hoa/stream ~1.0 -> satisfiable by hoa/stream[1.16.01.14].
- hoa/mime 3.16.01.15 requires hoa/stream ~1.0 -> satisfiable by hoa/stream[1.16.01.14].
- Conclusion: don't install hoa/stream 1.16.01.14
- Installation request for hoa/mime ^3.16.01 -> satisfiable by hoa/mime[3.16.01.11, 3.16.01.14, 3.16.01.15]
Thanks
Hello :-),
Unfortunately, I was able to install hoa/mime
as its latest version, i.e. 3.16.01.15
.
Do you have other Hoa dependencies?
Hi @Hywan and thanks for your reactivity on this case, you're right it seems to be cause by the phpmetrics/phpmetrics
library.
Here is the result with / without phpmetrics/phpmetrics
.
bouba@bouba-PC MINGW64 /c/workspace/fatcap-php-services (develop)
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phpmetrics/phpmetrics ^1.10.0 -> satisfiable by phpmetrics/phpmetrics[v1.10.0].
- hoa/mime 3.16.01.11 requires hoa/zformat ~0.0 -> no matching package found.
- hoa/mime 3.16.01.14 requires hoa/stream ~1.0 -> satisfiable by hoa/stream[1.16.01.14].
- hoa/mime 3.16.01.15 requires hoa/stream ~1.0 -> satisfiable by hoa/stream[1.16.01.14].
- Conclusion: don't install hoa/stream 1.16.01.14
- Installation request for hoa/mime ^3.16.01 -> satisfiable by hoa/mime[3.16.01.11, 3.16.01.14, 3.16.01.15].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
bouba@bouba-PC MINGW64 /c/workspace/fatcap-php-services (develop)
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing hoa/ustring (3.15.11.09)
- Removing hoa/iterator (1.15.10.29)
- Removing hoa/visitor (1.15.08.17)
- Removing hoa/core (2.15.11.09)
- Removing hoa/regex (0.15.08.13)
- Removing hoa/math (0.15.10.26)
- Removing phpmetrics/phpmetrics (v1.10.0)
- Removing hoa/compiler (2.15.10.29)
- Removing hoa/ruler (1.15.11.09)
- Removing hoa/file (0.15.11.09)
- Installing hoa/exception (1.16.01.11)
Downloading: 100%
- Installing hoa/consistency (1.16.03.03)
Downloading: 100%
- Installing hoa/event (1.16.03.15)
Downloading: 100%
- Installing hoa/zformat (1.16.03.15)
Downloading: 100%
- Installing hoa/protocol (1.16.07.07)
Downloading: 100%
- Removing hoa/stream (0.15.10.26)
- Installing hoa/stream (1.16.01.14)
Downloading: 100%
- Installing hoa/mime (3.16.01.15)
Downloading: 100%
Package fusesource/stomp-php is abandoned, you should avoid using it. Use stomp-php/stomp-php instead.
Package guzzle/common is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/stream is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/parser is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/http is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Writing lock file
Generating autoload files
bouba@bouba-PC MINGW64 /c/workspace/fatcap-php-services (develop)
Looking at the dependencies used by phpmetrics
https://packagist.org/packages/phpmetrics/phpmetrics#v1.10.0 the cause it certainly a conflict with hoa/ruler
.
So at the end my problem is not caused by hoa/mime
.
Thanks again for your help 👍
Sorry for your issue. If we can help, tell us!