Last active
November 14, 2020 03:19
-
-
Save hebertcisco/74795e578f94cc20d70795f362d489cf to your computer and use it in GitHub Desktop.
Install Node.js Unix
This file contains hidden or 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
echo 'installing nvm' | |
curl -fsSL https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | sh | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update && sudo apt install yarn node npm | |
sudo apt update && sudo apt install --no-install-recommends yarn | |
export PATH="$PATH:/opt/yarn-[version]/bin" | |
export NVM_DIR="$HOME/.nvm" && ( | |
git clone https://github.com/creationix/nvm.git "$NVM_DIR" | |
cd "$NVM_DIR" | |
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` | |
) && \. "$NVM_DIR/nvm.sh" | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
source ~/.zshrc | |
nvm --version | |
nvm install 12 | |
nvm alias default 12 | |
node --version | |
npm --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Welcome to Nodejs Installer For Unix 👋
Install
curl -fsSL http://bit.ly/get-node-sh | sh
Author
👤 Hebert F Barros
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2020 Hebert F Barros.
This project is MIT licensed.