-
Notifications
You must be signed in to change notification settings - Fork 8
Install Node.js
Jim Cowart edited this page Sep 11, 2015
·
6 revisions
Verify the version of node that you need (we're currently running v0.12.7). Download the windows x64 installer for that version and install node. (Current node downloads are here, but remember to verify it's a version we're using!)
NOTE: You will rarely need to run multiple version of node on windows, as 99% of your node development will be on Mac/Linux. This is why we did away with using nodist and prefer the plain installers instead.
Prerequisites:
- If it's not already installed for some reason, install Git
Do NOT use HomeBrew or any other package manager to install Node. If you have done so, you will need to remove it, and start with a clean slate
For Mac OS X & Linux, we are using nvm (Node Version Manager).
- Following the instructions on that page to install nvm.
- Verify that your
.bashrc,.profileor.zshrcwas, in fact, updated with a line sourcing nvm. - If it wasn't, then add this to your
.bashrc,.profileor.zshrc(whichever is relevant to your system):
source ~/.nvm/nvm.sh
nvm use default
- Next install any node versions which you will need. (
nvm ls-remotewill show you all the versions available. Typingnvmin your terminal will show you what commands are available). - Pick your default version of node and alias it. For example, running
nvm alias default v0.10in your terminal will ensure that the latest version of v0.10 on your machine will be the default Node.js version. (And since you addednvm use defaultin your dotfile, when you open a terminal, that version will be in place.)