Skip to content

Instantly share code, notes, and snippets.

@hebertcisco
Last active November 14, 2020 03:19
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 hebertcisco/74795e578f94cc20d70795f362d489cf to your computer and use it in GitHub Desktop.
Save hebertcisco/74795e578f94cc20d70795f362d489cf to your computer and use it in GitHub Desktop.
Install Node.js Unix
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
@hebertcisco
Copy link
Author

Welcome to Nodejs Installer For Unix 👋

Version License: MIT Twitter: hebertcisco

Swift Installation Automation on Ubuntu

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.

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