Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting an error Peer fingerprint did not match after running composer update

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.

like image 389
Noel Avatar asked Nov 28 '17 08:11

Noel


People also ask

Why does composer fail to detect the root package version?

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.

Why does composer fail on some commands?

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.

Will composer run under PHP7?

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

Why can't I install vendors in composer?

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.


1 Answers

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!

like image 86
Nicholas Mberev Avatar answered Oct 16 '22 02:10

Nicholas Mberev