Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

snapper's avatar

Composer self-update error on a live server

I am using Laravel 5.2 and I am attempting to deploy app on a live server. I copied the git repo to the new location and ran composer self-update and received the following error:

   [Composer\Downloader\FilesystemException]
    Filesystem exception:
    Composer update failed: the "/usr/local/bin/composer.phar" file could not be written

How can I update composer?

0 likes
1 reply
beerbuddha's avatar

file permission issue. make sure the file is not lock under sudo.

2 likes

Please or to participate in this conversation.