Composer: file_put_contents(./composer.json): failed to open stream: Permission denied

前端 未结 8 929
一生所求
一生所求 2020-12-12 14:49

I\'m trying to install Prestissimo to an Ubuntu 16.04 server, but that leads to an error:

$ composer global require \"hirak/prestissimo:^0.3\"
Changed curren         


        
8条回答
  •  悲&欢浪女
    2020-12-12 15:21

    I had this problem to install laravel/lumen.

    It can be resolved with the following command:

    $ sudo chown -R $USER ~/.composer/
    

提交回复
热议问题