Friday, December 31, 2021

[FIXED] ErrorException failed to open stream: Permission denied on composer install

Issue

I had a laravel app on github and I want to clone on other computer . After I cloned the repository and run composer install command it shows me this error:

[ErrorException]                                                              
  copy(/Users/cosminciolacu/.composer/cache/files/symfony/debug/824e1c185cf2cd  
  10402999589458f4be7ef980e1.zip): failed to open stream: Permission denied 

what I missed?


Solution

You may need to change the ownership and permissions of the directory you have installed the project in.

cd /path/to/project
sudo chmod -R 775 .
sudo chmod 660 .env


Answered By - Spholt

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.