I want to install node 12 on my macOS.
I tried brew. brew install node@12 prints this error,
Error: node@12 has been disabled because it is not supported upstream!
How do you install it anyway?
For me, mac os monterey in 2023
Goto : https://nodejs.org/download/release/v12.22.12/
Download installer from: https://nodejs.org/download/release/v12.22.12/node-v12.22.12.pkg
Run the installer, notice this path:
• Node.js v12.22.12 to /usr/local/bin/node
• npm v6.14.16 to /usr/local/bin/npm
echo 'export PATH="/usr/local/bin/node/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
Reopen terminal and check.
Node 12 is EOL however you can force install it by editing the formulae locally. See similar post here: Can you install disabled Homebrew packages?
brew edit node@12disable! date: "2022-04-30", because: :unsupported . Save the file.brew install node@12If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With