====== nodist ======
Windowsでnodeのバージョン切り替えるのに使用する。
===== 使い方 =====
// インストール済みのnode.jsのバージョンを調べる
// >が現在利用中のバージョン
> nodist
(x64)
7.2.1
> 11.3.0 (global: 11.3.0)
// インストールできるnode.jsのバージョンを調べる
> nodist dist
0.1.14
0.1.15
0.1.16
0.1.17
・・・
13.3.0
13.4.0
13.5.0
// インストールする。
> nodist + 13.5.0
13.5.0 [===============] 53075/53075 KiB 100% 0.0s
13.5.0
>nodist
(x64)
7.2.1
> 11.3.0 (global: 11.3.0)
13.5.0 ←追加されている
// バージョンを切り替える
> nodist global 13.5.0
13.5.0
Default global pacakge update dsuccessful.
// 特定のディレクトリでのみでバージョンを切り替えたい場合
> nodist local 13.5.0
// ターミナル内のみでバージョンを切り替える
> nodist env 13.5.0
// アンインストールする
> nodist - 10.14.1
===== nodeのバージョンがアップしない =====
[[https://ksby.hatenablog.com/entry/2019/04/13/143042|かんがるーさんの日記]]
// 現状
>nodist
(x64)
7.2.1
11.3.0
> 13.5.0 (global: 13.5.0)
>node --version
v10.13.0
>npm --version
6.4.1
>nodist --version
0.8.8
↓
[[https://github.com/nullivex/nodist/releases|nodsit v0.9.1インストール]]
↓
>nodist --version
0.9.1
↓
[[https://nodejs.org/ja/|推奨を確認する]]
↓
{{:node.js:pasted:20191231-165834.png}}
↓
// 推奨版のnodeをインストール
>nodist 12.14.0
12.14.0
Installing 12.14.0
12.14.0 [===============] 28113/28113 KiB 100% 0.0s
Installation successful.
>nodist
(x64)
7.2.1
11.3.0
11.13.0
> 12.14.0 (global: 12.14.0)
13.5.0
↓
[[https://github.com/npm/cli/releases|npmのバージョン確認]]
{{:node.js:pasted:20191231-170307.png}}
↓
// nmpのバージョンアップ
>nodist npm global 6.13.4
npm 6.13.4
https://codeload.github.com/npm/cli/tar.gz/v6.13.4 [===============] 5393/5527 KiB 98% 0.1s