Skip to content

Instantly share code, notes, and snippets.

@noellabo
Created October 12, 2024 12:11
Show Gist options
  • Save noellabo/60261c0e72de0e7427627cf09ea132af to your computer and use it in GitHub Desktop.
Save noellabo/60261c0e72de0e7427627cf09ea132af to your computer and use it in GitHub Desktop.
git clone https://github.com/nodenv/nodenv.git ~/.nodenv
cd ~/.nodenv && src/configure && make -C src
echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(nodenv init -)"' >> ~/.bashrc
cd ~
source .bashrc
mkdir -p "$(nodenv root)"/plugins
git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build
git clone https://github.com/nodenv/nodenv-update.git "$(nodenv root)"/plugins/nodenv-update
nodenv install 20.15.1
nodenv global 20.15.1
cd live
corepack enable
corepack prepare --activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment