permission denied for composer in /usr/local/bin/

后端 未结 9 838
隐瞒了意图╮
隐瞒了意图╮ 2020-12-30 20:16

I followed the documentation on https://getcomposer.org/doc/00-intro.md#globally to install composer globally on arch linux. When I do composer self-update, I g

9条回答
  •  旧时难觅i
    2020-12-30 20:56

    this might be the case if you have downloaded composer.phar directly ,

    but not by running php composer-setup.php

    make composer.phar executable with following command before moving it to /usr/local/bin/composer or after moving

    sudo chmod 755 composer.phar

    composer-setup.php will make this change for us by default

提交回复
热议问题