LoginSignup
5
2

More than 5 years have passed since last update.

nodistでnodejsのバージョン管理をやっていたらnpxが使えないのを解消

Last updated at Posted at 2018-06-05

結論(事象の確認と対応)

where npm #これで複数表示される
npm -i npm -g #これでいずれのバージョンもアップデートされる。

以下やってだめだったこと(´・ω・`)

nodist npm x.y.z

結局npxは入らない。nodeの下位バージョンでnpmのバージョン指定アップデートを実施すると、以降はnpm --versionのバージョン表示ですら、npmlogが足りないなど、エラーを生じるようになってしまってNG。
※nodistのuninstall→installを繰り返すと解消することもあるが本質的でない。

修正の参考qiitaはcf

cf
nodistでnode.jsを入れた後npmがバージョンアップできない問題
nodistでnpmをUpdate
nodistのnpmにはnpxがバンドルされないので、別途入れてみた。

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