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
Responder1
De acordo com o seu caminho, ou seja, a seguir /home/smmm/.composer/cache/repo/https---packagist.org
, você deve tentar estes comandos para resolver o seu problema.
- Alterar a permissão do grupo para a pasta
sudo chown -R smmm /home/smmm/.composer/cache/repo/https---packagist.org - Alterar a pasta de arquivos
sudo chown -R smmm /home/smmm/.composer/cache/files/ - E então, para todo o diretório do compositor, altere a permissão
sudo chown -R smmm /home/smmm/.composer
Atenciosamente