Skip to content

Instantly share code, notes, and snippets.

@huffmanks
Last active February 24, 2024 18:57
Show Gist options
  • Save huffmanks/6a8da20c8a2d763975416f2b5a452576 to your computer and use it in GitHub Desktop.
Save huffmanks/6a8da20c8a2d763975416f2b5a452576 to your computer and use it in GitHub Desktop.

Upgrading Node env for MacOS

Setup npm permissions

sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}

Check global packages

  • npm list -g --depth 0

Update Node

  1. node -v

  2. n stable

Update NPM

  1. npm -v

  2. npm i -g npm@latest

Update Yarn

  1. yarn -v

  2. npm i -g yarn

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