Whatever operating system you use, you'll need to install Node.js. We recommend doing this using nvm - the node version manager. Your machine should come with at least one of curl
or wget
. You can use either to install nvm
:
curl
version:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
wget
version:
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
Follow the instructions that appear in the terminal - it will ask you to close once it's done.
After you've closed and re-opened your terminal, you'll need to tell nvm
to install the latest version of Node, and set it as default:
nvm install 5.11
nvm use 5.11
nvm alias default 5.11
Now you have node
and npm
installed.