It's my first time using composer, and I'm planning to use in one of my current projects. I'm getting an error Peer fingerprint did not match
after running composer update on my terminal/cmd. Does this have something with the composer.json file?
I tried looking for answers on the internet but I cannot seem to find an answer relevant to my problem.
In CI (Continuous Integration) runs, the problem might be that Composer is not able to detect the version of the root package properly. If it is a git clone it is generally alright and Composer will detect the version of the current branch, but some CIs do shallow clones so that process can fail when testing pull requests and feature branches.
Composer may sometimes fail on some commands with this message: PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...> In this case, the PHP memory_limit should be increased. Note: Composer internally increases the memory_limit to 1.5G.
Composer will not run under php7.2, but runs fine under 7.1 and 7.0 -bash-4.2$ /opt/plesk/php/7.2/bin/php /usr/lib64/plesk-9.0/composer.phar update PHP Fatal error: Uncaught Error: Class 'Phar' not found in /usr/lib64/plesk-9.0/composer.phar:23
Try clearing Composer's cache by running composer clear-cache. Ensure you're installing vendors straight from your composer.json via rm -rf vendor && composer update -v when troubleshooting, excluding any possible interferences with existing vendor installations or composer.lock entries.
In your command line, run composer self-update
and try installing the package again. See here. when I did that and reinstalled the package, it worked!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With