Created
October 12, 2024 12:11
-
-
Save noellabo/60261c0e72de0e7427627cf09ea132af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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