Last active
June 15, 2020 11:52
-
-
Save Himura2la/69abe737ff6f44e0bd92b81a3d3c360b to your computer and use it in GitHub Desktop.
Simplified NodeJS install script for Debian-based OS
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
NODEREPO="node_12.x" | |
wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - | |
echo "deb https://deb.nodesource.com/${NODEREPO} $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/nodesource.list | |
echo "deb-src https://deb.nodesource.com/${NODEREPO} $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list | |
sudo apt-get update | |
sudo apt-get install -y nodejs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment