Skip to content

Instantly share code, notes, and snippets.

@moeiscool
Last active September 2, 2021 05:12
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 moeiscool/4a7776bb90f12496bd797ceb85ca0ba8 to your computer and use it in GitHub Desktop.
Save moeiscool/4a7776bb90f12496bd797ceb85ca0ba8 to your computer and use it in GitHub Desktop.
Install Node.js 12 on Ubuntu 20.04
wget https://deb.nodesource.com/setup_12.x
chmod +x setup_12.x
./setup_12.x
sudo apt install nodejs make gcc-8 g++-8 -y
sudo apt install node-pre-gyp -y
rm setup_12.x
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment