When attempting to Install Laravel Valet Linux in my Local setup. I am currently using 18.04 LTS.
- PHP Version is 7.4.33
- The composer version is 2.5.1
- MySQL version is 5.7.40
But when attempting to install Laravel Valet Linux development environment I get the below error.
What do I require to do to fix his issue?
$ composer global require genesisweb/valet-linux-plus Changed current directory to /home/randunu/.config/composer
In RequireCommand.php line 142:
file_put_contents(./composer.json): failed to open stream: Permission denied
Resources [https://qirolab.com/posts/install-laravel-valet-linux-development-environment-on-ubuntu]
CodePudding user response:
I fixed the issues I was facing by using administrator privileges. In Ubuntu, that means adding sudo. This was not mentioned in the documentation I followed. With this, I was able to successfully complete the Valet implementation.
sudo composer global require genesisweb/valet-linux-plus
I hope this would be useful for some other person facing the same issue.
Resource https://www.reddit.com/r/PHPhelp/comments/10d6nfg/comment/j4k6ux2/?context=3