O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing Node.js and npm

First things first, for our build, we need Node.js and npm (again) at the very least. Like on Windows, we can install Node.js and get npm as a bonus. We must install them on our CI server. Unlike Jenkins, Node.js has an install package in apt-get. Unfortunately, this is an old version and we want to use the latest LTS version. So again, we are going to run some arcane Linux commands:

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

The L switch (from -L) in curl tells it to redo the request if the response returns that the requested page has moved. We know the pipe character; it gives the output of the left side of the pipe's input to the right side of the pipe. sudo -E ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required