I am getting this error while installing Laravel latest version on ubuntu 18.04
[ErrorException]
file_put_contents(./composer.lock): failed to open stream: Permission denied
I have even run the following command as suggested by someone in response to the same question
sudo chown -R myuser ~/.composer
Still same error any ideas?
composer global ...
. What will help if you're just running composer for the current directory issudo chown myuser composer.*
(and possibly deleting vendor in case it also has incompatible permissions) – apokryfos