はじめに
node.js、python、goのバージョン管理を行う方法です。
メモ用です。
Azureの仮想マシンで行っています。
node.js
-
GitHub - tj/n: Node version management
Node version management. Contribute to tj/n development by creating an account on GitHub.
github.com
apt install nodejs npm npm install n -g apt purge nodejs npm n stable
Python
-
GitHub - pyenv/pyenv: Simple Python version management
Simple Python version management. Contribute to pyenv/pyenv development by creating an account on Gi ...
github.com
apt install build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev curl \ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
curl https://pyenv.run | bash echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc echo 'eval "$(pyenv init -)"' >> ~/.bashrc exec "$SHELL" source .bashrc pyenv install 3.10.4 pyenv global 3.10.4
Go
-
GitHub - go-nv/goenv: :blue_car: Like pyenv and rbenv, but for Go.
:blue_car: Like pyenv and rbenv, but for Go. Contribute to go-nv/goenv development by creating an ac ...
github.com
git clone https://github.com/syndbg/goenv.git ~/.goenv echo 'export GOENV_ROOT="$HOME/.goenv"' >> ~/.bash_profile echo 'export PATH="$GOENV_ROOT/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(goenv init -)"' >> ~/.bash_profile exec $SHELL source .bash_profile goenv install 1.12.0