캐시 디렉토리를 생성할 수 없습니다! Composer로 laravel 프로젝트를 만들 때 이 문제를 해결하도록 도와주세요

캐시 디렉토리를 생성할 수 없습니다! Composer로 laravel 프로젝트를 만들 때 이 문제를 해결하도록 도와주세요
smmm@smmm-linux:/var/www/html$ composer create-project laravel/laravel test
Cannot create cache directory /home/smmm/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/smmm/.composer/cache/files/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/smmm/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache

답변1

다음 경로에 따라 /home/smmm/.composer/cache/repo/https---packagist.org문제를 해결하려면 다음 명령을 시도해야 합니다.

  • 폴더에 대한 그룹 권한 변경
    sudo chown -R smmm /home/smmm/.composer/cache/repo/https---packagist.org
  • 파일 폴더 변경
    sudo chown -R smmm /home/smmm/.composer/cache/files/
  • 그런 다음 전체 작곡가의 디렉토리에 대해 권한을 변경하십시오.
    sudo chown -R smmm /home/smmm/.composer

친애하는

관련 정보