iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🐬

The one 'cool' solution for missing Node versions in Homebrew-installed nodenv

に公開

TL;DR

  • Just run $ brew upgrade nodenv node-build

The Node version I want isn't showing up in nodenv installed via brew

I couldn't run yarn start when I tried to use node v14.16.0 on an M1 Mac.
Since v14.17.0 seemed to have a patch for it, I tried to use v14.17.0, but I was stuck because it wasn't listed when I ran nodenv install --list.

$ nodenv install --list
...(omitted)
14.15.5
14.16.0
14.16.1
15.0.0
15.0.1
15.1.0
...(rest omitted)

Just upgrade node-build along with nodenv

$ brew upgrade nodenv node-build
...(omitted)
$ nodenv install --list
...(omitted)
14.15.5
14.16.0
14.16.1
14.17.0
15.0.0
15.0.1
15.1.0
...(rest omitted)

It showed up, so now nodenv install 14.17.0 will work. Awesome!

Discussion