Monday, March 7, 2022

[FIXED] Cannot create composer .cache directory in Laravel

Issue

Cannot create cache directory /home/hasib/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache

Cannot create cache directory /home/hasib/.composer/cache/files/, or directory is not writable. Proceeding without cache

This message is giving me when I run the command composer dump-autoload.


Solution

Try to set right permissions for cache directory and all files and directories inside it. Run this command:

chmod -R 775 /home/hasib/.composer/cache


Answered By - Alexey Mezenin

No comments:

Post a Comment

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