Skip to content

Instantly share code, notes, and snippets.

@dotspencer
Created June 25, 2018 19:05
Show Gist options
  • Save dotspencer/a162ca3e3ddd87e3df2820d949f39f65 to your computer and use it in GitHub Desktop.
Save dotspencer/a162ca3e3ddd87e3df2820d949f39f65 to your computer and use it in GitHub Desktop.
Install Yarn without messing up nvm

Yarn documentation now says that Yarn can be installed on a Mac, via Homebrew, without node, like this:

brew install yarn --without-node
@dotspencer
Copy link
Author

https://discourse.brew.sh/t/brew-install-yarn-without-node-busted/4087/6

yarn depends on node : it does not function without it. #31510 provides context. Instead of trying to install without Homebrew’s node try adjusting your PATH so nvm's node s are before Homebrew’s node.

The last few times, simply running brew upgrade yarn worked without breaking nvm's node.

@dotspencer
Copy link
Author

brew install yarn seems to work by itself now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment