LoginSignup
27
19

More than 5 years have passed since last update.

nodistで管理しているnpmのバージョンが上がらない

Posted at

事象

nodistでNode.jsのバージョン管理を行っている時に、npmのバージョンをアップデートしようと思って下記コマンドを実行した。

npm update -g npm

その後npm -vでnpmのバージョン確認をしたが、バージョンがアップデートされていなかった。

解決策

nodistのGitHubのREADME.mdに記載されている下記コマンドを実行すればnpmのバージョンがアップデートされた。

nodist npm global match 

matchリリース一覧 Node.js のnpmの欄に記載されているバージョンがインストールされる。
※Node.jsが8.11.1の場合は5.6.0のnpmがインストールされる。

参考サイト

27
19
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
27
19