nvm
on your command line to install, update and switch between Node.js versions any time. To switch to a different version, simply enter nvm use VERSION
and nvm runs all required commands to change the version and make it accessible in your terminal.
For more information about nvm, take a look at the official nvm documentation.
herd isolate-node
command to specify which Node.js version a particular folder should use. The isolate-node
command configures
Herd/nvm to use the specified Node.js version for the site located in your current working directory:
--site
option:
isolated-node
command to display a list of all of your isolated sites and their Node.js versions:
unisolate-node
command from the site’s root directory:
nvm list
. So if you want to uninstall node 18.20.4, run nvm uninstall 18.20.4
.
Unknown
for your node version in the sites list. Herd is an opinionated development environment that relies on bash or zsh, so other shells can lead to errors.
There are situations where Herd can not install nvm and keeps displaying the install button for nvm in the settings. This can happen if there are traces of a previous install on your system – this could be a broken node symlink or nvm paths in your .zshrc
file.