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 Jod
, iron
, hydrogen
variants:
To install the jod
version of N|Solid Runtime:
brew install nsolid-jod
To install the iron
version of N|Solid Runtime:
brew install nsolid-iron
To install the hydrogen
version of N|Solid Runtime:
brew install nsolid-hydrogen
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-jod
. You can follow the same process to unlinknsolid-jod
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 jod
variant, use nsolid-jod.rb
in the symlink command.
To update your version of N|Solid, simply run the upgrade command:
brew upgrade nsolid-jod
or
brew upgrade nsolid-iron
or
brew upgrade nsolid-hydrogen
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