Skip to content

Instantly share code, notes, and snippets.

@philihp
Created June 25, 2020 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philihp/7453e9051663a52f442ed6a7afdddd61 to your computer and use it in GitHub Desktop.
Save philihp/7453e9051663a52f442ed6a7afdddd61 to your computer and use it in GitHub Desktop.
Installing ASDF with NodeJS

Install packages from Brew

brew install asdf
brew install gnupg

Create/update an asdf repo

if [ ! -d ~/.asdf ]; then
  git clone https://github.com/asdf-vm/asdf.git ~/.asdf
fi
cd ~/.asdf
git checkout "$(git describe --abbrev=0 --tags)"

Tell asdf that you like nodejs

asdf plugin-add nodejs
bash -c '${ASDF_DATA_DIR:=$HOME/.asdf}/plugins/nodejs/bin/import-release-team-keyring'

Now you can install NodeJS versions, like this

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