nodejsを入れる
個人的最適解。
nodejsはasdfで入れる。
code:shell
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
code:.bashrc
. $HOME/.asdf/asdf.sh
code:shell
asdf plugin add nodejs
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
asdf list all nodejs
asdf install nodejs 20.11.0
asdf global nodejs 20.11.0
node --version
Yarnを入れていたころもあった(廃止)
code:shell
curl -o- -L https://yarnpkg.com/install.sh | bash
yarnのglobal packagesは~/.config/yarnに入るので、.yarnは更新のたびに消し飛ばして上のワンライナー実行すれば良さそう?
使い捨て
使い捨てるvps等では決め打ちで。
https://github.com/nodesource/distributions?tab=readme-ov-file