Reinstalling using Homebrew; Reinstalling using a Node version manager; Let’s talk about each of them. A) Reinstalling using a Node installer. To use the official Node installer for reinstalling the tools, go to the Node.js download page and select the version you want to install—just as we described previously.
Node.js can be installed in multiple ways on a system, and the upgrade instructions depend on how you first installed it.
If you installed Node using the official package
The easiest way to install Node is to download the official package from the Node.js website.
The official package contains an installer that will detect the existing version of Node.js and it will overwrite it with the new one.
- Node@14: 329: Installs on Request (30 days) node@14: 254: Build Errors (30 days) node@14: 18: Installs (90 days) node@14: 841: Installs on Request (90 days) node@14: 727: Installs (365 days) node@14: 1,533: Installs on Request (365 days) node@14: 1,385.
- 📦 Bundler for non-Ruby dependencies from Homebrew, Homebrew Cask and the Mac App Store. Ruby homebrew tap bundle cmd Ruby MIT 230 3,638 2 (2 issues need help) 0 Updated Apr 19, 2021.github.
- Homebrew is a program that allows you to install specific versions of Node.js (and other software). To update from Node.js 10 to Node.js 12 using Homebrew, open a.
If you installed Node using Homebres (on macOS)
Homebrew is a very popular way to install Node.js on a Mac.
If you did use Homebrew, upgrading Node is as simple as running
Homebrew might ask you to upgrade your xCode version to compile the package.
If you use nvm
Homebrew Node 8
nvm
is a popular way to run Node. It allows you to easily switch the Node version, and install new versions to try and easily rollback if something breaks, for example.
It is also very useful to test your code with old Node versions.
When you use nvm
, you can check the current version you are running by typing nvm current
, which will give you the same result as node -v
.
To list all the installed versions, run nvm ls
.
You can install a new Node release (or any old Node release, too) using nvm install <VERSION>
, for example:
Once installed, you can set that Node.js version to be the one to use by typing
Homebrew Node 12
This will set 10.8.3 to the default Node version, system-wide.
Download my free Node.js Handbook and check out my Node.js Course!
Homebrew Node 12
Install Homebrew
Paste that in a macOS Terminal or Linux shell prompt.
The script explains what it will do and then pauses before it does it. Read about other installation options.
What Does Homebrew Do?
Homebrew installs the stuff you need that Apple (or your Linux system) didn’t.
Homebrew installs packages to their own directory and then symlinks their files into
/usr/local
.Homebrew won’t install files outside its prefix and you can place a Homebrew installation wherever you like.
It’s all Git and Ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.
Homebrew complements macOS (or your Linux system). Install your RubyGems with
gem
and their dependencies withbrew
.“To install, drag this icon…” no more. Homebrew Cask installs macOS apps, fonts and plugins and other non-open source software.
Donate to Homebrew
Homebrew Blog
Analytics Data
Homebrew was created by Max Howell. Website by Rémi Prévost, Mike McQuaid and Danielle Lalonde.