LoginSignup
3
3

Linuxにnvmを使用してNode.jsをインストールする

Posted at
  1. nvmのダウンロード
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

v0.39.3の箇所は最新のリリースに合わせて修正する

  1. nvmの実行
. ~/.nvm/nvm.sh
  1. Node.jsの最新の推奨版をインストール
nvm install --lts

※ バージョンを指定する際は、nvm ls-remoteコマンドでインストール可能なNode.jsのバージョンを確認し、以下コマンドで指定

nvm install v20.3.0
  1. インストールされたNode.jsの確認
nvm ls
node -v
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3