I have a laravel project on an ubuntu virtualbox.
I used to run composer update
and all worked fine. I don't know of any changes that could have affected this but now when I run composer update
I get
file_get_contents(/home/user/.composer/config.json): failed to open stream:
Permission denied
Does anyone know why? When I run sudo composer update
, it works.