Error “could not delete” with Composer on Vagrant

前端 未结 16 1103
闹比i
闹比i 2020-12-14 05:45

I have a Vagrant running Linux and I\'m trying to install Symfony.

After the command composer create-project symfony/framework-standard-edition ./ \"2.5.*\"

16条回答
  •  悲&欢浪女
    2020-12-14 06:38

    In my case I was trying composer update but I got

    [RuntimeException] Could not delete .../vendor/bin/php-parse:

    Despite I'm using Laravel framework, this question was the first link in Google, so I decided to post an answer.

    My solution was to grant ownership for vendor: sudo chown -R $USER:www-data vendor/ and
    sudo chown -R $USER:www-data composer.json


    Update: my host OS was Ubuntu 16.04.

提交回复
热议问题