LoginSignup
1
0

More than 5 years have passed since last update.

fishシェルで使えるNode.jsのバージョンマネージャの使い方

Posted at

はじめに

fishシェルを使っているときにもっとも使いやすいNode.jsバージョンマネージャがfnmです。複数のバージョンのNode.jsをインストールできて、バージョンの切り替えも一瞬でできてしまいます。

fisherman(fishのプラグインマネージャ)をインストール

curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher

Node.jsバージョンマネージャ「fnm」をインストール

fisher add jorgebucaran/fnm

fnmのバージョンチェック

fnm -v

長期サポート(Long Term Support)バージョンをインストール

fnm lts

バージョンを指定してインストール

fnm 10.13.0

Node.jsのバージョンチェック

node -v

バージョン切り替え

fnm

• 8.11.1
  9.11.1
  10.13.0
1
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
1
0