How to fix the «Cannot create cache directory ~/.composer/cache/» Composer failure?

composer
command-line
filesystem-permissions
(Dmitry Fedyuk) #1

The cause of this issue is wrong filesystem permissions in your home directory.
You can fix it with the command:

sudo chown ${USER:=$(/usr/bin/id -run)}:$USER ~
0 Likes