Skip to content
David Graham edited this page Dec 21, 2017 · 8 revisions

Why Node 8?

Node 8 is in LTS now and ships with NPM 5 which is much faster (which means you don't have to use yarn anymore).

Install Node 8 and NPM 5

$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install -y nodejs

The nodejs package contains the nodejs binary as well as npm, so you don't need to install npm separately. However, in order for some npm packages to work (such as those that require compiling code from source), you will need to install the build-essential package:

$ sudo apt-get install -y build-essential
Clone this wiki locally