5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

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
5
4
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
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?