Skip to content

Instantly share code, notes, and snippets.

@plasx
Last active August 16, 2020 20:22
Show Gist options
  • Save plasx/988ed9bdeb8511cfb249a6b284a4a07c to your computer and use it in GitHub Desktop.
Save plasx/988ed9bdeb8511cfb249a6b284a4a07c to your computer and use it in GitHub Desktop.
Getting Started

Install NVM

Remove existing brew installed node

brew uninstall --ignore-dependencies node
brew uninstall --force node
rm -f ~/.npm

Update homebrew

brew update
brew install nvm

Create zshrc (Mac OS Catalina)

touch ~/.zshrc

Download/install NVM direct from their git

Close and reopen your terminal window after this command

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

solve ZSH complaints

if you're getting a There are insecure directories: message right after, remove the group write access for them:

sudo chmod g-w /usr/local/share/zsh/site-functions
sudo chmod g-w /usr/local/share/zsh

Verify nvm is installed

nvm --version

install latest version of node via NVM

nvm install node

install yarn

npm i -g yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment