Node
Install¶
Install Node.js via nvm using Homebrew with the following command:
nvm
allows you to quickly install and use different versions of node via the command line.
Usage¶
Install¶
Latest version of Node.js can be installed using the following command:
To install a specific version of Node.js, use the following command:
Uninstall¶
To uninstall a specific version of Node.js, use the following command:
List¶
You can list available versions using the following command:
You can list installed versions using the following command:
Use¶
You can switch between versions using the following command:
Which¶
You can get the path to the installed version using the following command:
Note: You can use argument
--lts
to install or uninstall or use or list the latest LTS version of Node.js.