Runtime Environments
NodeJS
NVM
Install NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
# or you could specify the version:
# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Then use nvm to install a specific version:
# Install the LTS version of NodeJS
nvm install --lts
# see which versions you have:
nvm ls
# use a specific version:
nvm use 16
Direct Installation
VERSION=16.x
curl -sL https://deb.nodesource.com/setup_$VERSION | sudo -E bash -
sudo apt-get install -y nodejs
Using Package n
# Update NodeJS using n
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Golang
# Golang (Go)
VERSION=1.13.5
OS=linux
ARCH=amd64
curl https://dl.google.com/go/go$VERSION.$OS-$ARCH.tar.gz -O
sudo tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> .bashrc
sudo chown -R root:root /usr/local/go
source .bashrc
Python
Miniconda
# download miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
# install miniconda using non-interactive mode
bash ~/miniconda.sh -b -p $HOME/miniconda && rm ~/miniconda.sh
# add bash hook for conda
echo 'eval "$(~/miniconda/bin/conda shell.bash hook)"' >> ~/.bashrc && source ~/.bashrc