Saturday, January 1, 2022

[FIXED] fatal: reference is not a tree on composer install

Issue

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


Solution

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



Answered By - Victor Anuebunwa

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.