This is Bevry's supported guide for installing Node.js on your computer as well as any other required dependencies for your particular system. This guide is Bevry's supported guide, as we've found other guides will leave you with an incorrectly configured environment causing permission errors and missing executables that are hard to track down.
On Linux (Mac OSX, Ubuntu, Fedora, etc)
Preparation
Mac Preparation
1.
Install Command Line Tools:
1
xcode-select --install
Copied!
Xcode may or may not be necessary for the above command, if it fails, Download & Install Xcode, and try again.
2.
Ensure correct permissions are set for /usr/local:
Node Version Manager aka NVM lets you install multiple versions of Node.js to your local user directory, enabling easy upgrades and version switching, without the permission troubles that are common with non-NVM setups.
1.
Uninstall any previous Node.js versions you may already have