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
Respuesta1
De acuerdo con la ruta que sigue /home/smmm/.composer/cache/repo/https---packagist.org
, debe probar estos comandos para resolver su problema.
- Cambiar el permiso de grupo para la carpeta
sudo chown -R smmm /home/smmm/.composer/cache/repo/https---packagist.org - Cambiar la carpeta de archivos
sudo chown -R smmm /home/smmm/.composer/cache/files/ - Y luego, para todo el directorio del compositor, cambie el permiso.
sudo chown -R smmm /home/smmm/.composer
Atentamente