user24814738
user24814738

Reputation: 31

Is upgrading composer is only option here?

I am new to development and I am working on a laravel project on Hostinger hosting. I was trying to run

composer install

But it shows error that I need to upgrade it to composer 2. I don't know if that's safe or will update other packages or show some version errors for other packages.

Should I go for upgrading composer or is there some other work around?

This image contains error

I am running only

composer install

Upvotes: 1

Views: 140

Answers (1)

Tayyab
Tayyab

Reputation: 601

In Hostinger, you don't need to upgrade composer to use the composer version 2 as it is already installed there. You just need to use it as composer2 instead of composer. So, solution will be only to use:

composer2 install

It will work fine.

For reference look into this link provided by Hostinger:

https://support.hostinger.com/en/articles/5792082-how-to-solve-common-composer-issues

Upvotes: 3

Related Questions