[ yarn ] Error: Git must be installed and in your PATH!

Problem

brew install yarn

Error: Permission denied @ rb_sysopen - /usr/local/var/homebrew/locks/git.formula.lock

Error: Git must be installed and in your PATH!

Error: Permission denied @ rb_sysopen - /usr/local/var/homebrew/locks/yarn.formula.lock

Solution

THWSM-MBA-001:api thwsmfolks$ xcode-select --install

xcode-select: note: install requested for command line developer tools

THWSM-MBA-001:api thwsmfolks$ xcode-select --install

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

THWSM-MBA-001:api thwsmfolks$ brew install yarn

Error: Can't create update lock in /usr/local/var/homebrew/locks!

Fix permissions by running:

<span class="Apple-converted-space">&nbsp; </span>sudo chown -R $(whoami) /usr/local/var/homebrew

Error: Permission denied @ rb_sysopen - /usr/local/var/homebrew/locks/yarn.formula.lock

THWSM-MBA-001:api thwsmfolks$ sudo chown -R $(whoami) /usr/local/var/homebrew

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s