Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.