0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows11にnode.jsをnvm-windowsで入れてみた

Posted at

はじめに

2025年2月くらいにNext.jsでチャットアプリの叩きを作って、一旦放置してしまったので、運用を開始しようと思いたつ。

が、あれ?新しいPCにNode.jsを入れていないことに気づく。
(旧PCで開発していたっけ?と混乱)

Windows11にNode.jsを入れる。けど、バージョン管理もしたいな。で検索してみると。

の記事に辿り着く。

「nvm-windows」という存在を初めて知り、インストール完了。
MicroSoftがおすすめしている?とは知らなかった。

よく使うであろう、オプション?コマンド?周りを自分の忘備録のために残します。
※ 他のオプションを知りたい場合は、「nvm」と打てば一覧が出て教えてくれます。

よく使うであろうオプション

インストール可能な一覧

nvm list available

これでインストールしたいNodeのバージョンを確認する。
検証とかじゃないなら、LTSの最新バージョンが安定していると思うので良いかな。

インストール

nvm install バージョン

アンインストール

nvm uninstall バージョン

利用可能なバージョン

nvm ls

利用するバージョンを指定

nvm use バージョン(nvm ls で出てきたばーじょんをしてい)
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?