3

Trying to install packages on composer.json using composer install on production and I get this error.

I've tried different solutions which I found from search which includes

  • Clearing cache
  • running composer update
  • Delete vendor, clear cache and run composer install
  • Delete vendor, clear cache and run composer update

And none worked.

However, I was able to run composer install successfully on local.

How do I fix this? Attached is my screen with the error.

Thank you.

composer error

Victor Anuebunwa
  • 2,553
  • 2
  • 24
  • 34

2 Answers2

1

composer cannot find some commit from git cache, so order it to get package directly from its repository. this works for me:

composer install --prefer-dist
Volpacchiotto
  • 75
  • 1
  • 1
  • 8
0

Depending on your flavour of Linux and PHP version these may vary.

(sudo) yum install zip unzip php-zip

or

(sudo) apt install zip unzip php-zip

Original answer here

Victor Anuebunwa
  • 2,553
  • 2
  • 24
  • 34