Running composer without using sudo

后端 未结 1 1233
梦如初夏
梦如初夏 2020-12-17 00:00

I\'ve followed the guide on installing composer globally from the composer site: https://getcomposer.org/doc/00-intro.md#globally

The problem is I have to use sudo e

相关标签:
1条回答
  • 2020-12-17 00:49

    Figured out the problem.

    1) I either had to clear out the cache in /home/lamp/.composer or change the owner of this

    2) And change the owner of /usr/local/bin/composer

    After doing these 2 changes I can now run composer commands without using sudo.

    0 讨论(0)
提交回复
热议问题