1
1

More than 1 year has passed since last update.

nodenv で指定したバージョンのnodeがインストールできない

Last updated at Posted at 2022-02-27

現象

nodenvを使用してnodeのバージョン管理をしている環境で、nodenv install xx.x.x コマンドで、指定したバージョンをインストールしようとすると、下記のエラーが出る。

node-build: definition not found: xx.x.x

nodenv install --list でインストールできるバージョンの一覧を表示させても、欲しいバージョンが表示されない。

対処法

下記コマンドを実行し、node-build を最新化する。

git -C ~/.anyenv/envs/nodenv/plugins/node-build pull

再度、nodenv install --listを実行して、バージョンの一覧が最新化されているのを確認し、nodenv install xx.x.x を実行する。

1
1
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
1