I'm on ubuntu 20.04 LTS and I have installed Composer directly using the terminal, but I'm getting this error:
[Composer\Downloader\FilesystemException]
Filesystem exception:
Composer update failed: "/usr/local/bin/composer" could not be written.
rename(/home/smiley/.cache/composer/composer-temp5193870.phar,/usr/local/bin/composer): Permission denied
I was searching on Google and Stack, but some suggestions I tried are not working.
Can you please help? Thanks in advance.