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?
I am running only
composer install
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