Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

brew Error: No available formula with the name "node@11"

I'm getting some errors with node v12.6 so I'm trying to downgrade to node@11.

Doing a brew install node@11 gives me the title error, and I've not found many results in Google for how to proceed.

Full error:-

==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
wtfutil
==> Updated Formulae
glooctl           juju              k6                moarvm            moe               nqp               pulumi            rakudo            terraform         topgrade          xrootd

Error: No available formula with the name "node@11" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

brew search node gives me the following, so it doesn't appear I have 11 installed already.

leafnode          libbitcoin-node   llnode            node ✔            node-build        node@10           node@8            node_exporter     nodebrew          nodeenv           nodenv

like image 211
s89_ Avatar asked Aug 01 '19 11:08

s89_


1 Answers

I'm not sure what caused my error, but a way around this was to install v11 with NVM, following the guide below:-

https://www.npmjs.com/package/nvm

To install NVM, and then node version 11, just do the following:

$ brew install nvm
$ nvm install 11
like image 177
s89_ Avatar answered Oct 26 '22 08:10

s89_