Install N|Solid on macOS via Homebrew. Now you can easily install and manage the only Node.js platform built for mission-critical applications.
First, add the nsolid
tap:
brew tap nodesource/nsolid
You can install the N|Solid Runtime in its hydrogen
or iron
variants:
To install the hydrogen
version of N|Solid Runtime:
brew install nsolid-hydrogen
For the iron
version:
brew install nsolid-iron
If you simply want to install N|Solid without specifying a variant, use:
brew install nsolid
To set nsolid
to be an alias of a specific version (e.g., nsolid-hydrogen
):
ln -s ../Formula/nsolid-hydrogen.rb Aliases/nsolid
Note: If you previously installed
nsolid
, you'll need tobrew unlink nsolid
to allow the installation, and then runbrew link nsolid-hydrogen
. You can follow the same process to unlinknsolid-hydrogen
and then linknsolid
back.
Note: If you don't want Homebrew to attempt to overwrite preexisting
node
,npm
, andnpx
files in/usr/local/bin
, add--without-node
to your N|Solid install command.
To set nsolid
to alias a specific variant, simply change the symlink creation command. For instance, if you want nsolid
to point to the iron
variant, use nsolid-iron.rb
in the symlink command.
To update your version of N|Solid, simply run the upgrade command:
brew upgrade nsolid-hydrogen
or
brew upgrade nsolid-iron
You can switch between N|Solid versions using the switch
command:
brew list --versions nsolid
brew switch nsolid <version>
If you have N|Solid installed via the Developer Bundle, please uninstall it before installing from Homebrew. You can uninstall by running:
sudo /usr/local/nsolid/uninstall