PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, January 1, 2022

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

 January 01, 2022     composer-php, laravel, php, ubuntu     No comments   

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
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing