LoginSignup
8

More than 3 years have passed since last update.

【nodenv】必要なバージョンが存在しなかったときの備忘録

Last updated at Posted at 2019-06-10

こんなときに

  • 確かにリリースされているバージョンなのに、nodenvにはないと言われる
  • nodenv install --listを実行するも、 リストに欲しいバージョンがない

対策

nodenvで無効なバージョンを指定してインストールしようとすると、

See all available versions with `nodenv install --list'
If the version you need is missing, try upgrading node-build:

上のように返ってくる。言う通りにアップグレードしたら解決した。

1. node-bulidディレクトリに移動

cd ~/.anyenv/envs/nodenv/plugins/node-build

上記はanyenvを前提にnodenvを入れていた場合。
nodenvを単体で入れている場合は、そのフォルダを探して、その中の node-build フォルダまで移動する

2. gitからアップグレード

git pull 

3. 作業フォルダに戻ってnodenv install

cd ~/[your workspace]
nodenv install [versions]

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
8