Homebrew cask installation fails with a permission denied error

0
10
Asked By MellowCedar47 On

I'm trying to install the Sikarugir cask with Homebrew on macOS, but the installation fails when Homebrew attempts to create ~/Applications/Sikarugir. The error says that creating /Users/(user)/Applications is not permitted. I also tried creating a test directory there, but received a "No such file or directory" message. What should I check or change to fix the permissions and complete the installation?

1 Answer

Answered By OrbitingPanda8 On

First verify that the path matches your actual home directory rather than a placeholder or an incorrect username. Run `whoami`, `echo "$HOME"`, and `ls -ld "$HOME"`. Then try `mkdir -p "$HOME/Applications/test"`. If that works, install the cask again. If it fails, check the ownership and permissions of your home folder with `ls -ld "$HOME"`; your account should own it. Avoid using `sudo brew install`, since that can create more ownership problems.

MellowCedar47 -

The test command returned “No such file or directory,” so I’m going to compare `$HOME` with the path Homebrew is using and check the directory ownership.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.