Ubuntu Linux

Start here to build install Pushkin and its dependencies on Ubuntu Linux.

These instructions were created using Ubuntu 18.04 and the apt package manager. They should generalize to other Linux distributions and package managers, however.

Skip to section

Install curl

First, ensure that you have curl installed, as this will be necessary to download Node.js. If it isn't installed, you can install it using the following commands:

 sudo apt update
 sudo apt install curl

Install Node.js

To install Node.js, first run the following command to install nvm:

Then use nvm to install Node.js:

In case the preferred version of Node.js is changed, use the following commands to update:

Install and configure Yarn

You will next want to install the Yarn package manager. Official instructions (copied below for convenience) are available here.

Use npm, which comes bundled with Node.js that you just installed:

Then check that Yarn is installed by running:

To allow Yarn to install pushkin-cli globally, run the following steps, based on this Stack Overflow solution.

Run the following:

Install Yalc

Install Yalc globally.

Install pushkin-cli

Next, install the pushkin-cli package globally.

Confirm that pushkin-cli is installed by running:

You should get a list of commands with some documentation for each.

Confirm that you have version 2.0.0 or later by running:

and reading the output.

Install and configure Docker Engine and Docker Compose

Next, install Docker Engine using these instructions (copied below for convenience).

Add Docker’s official GPG key:

Use the following command to set up the repository:

Next, update the apt package index:

Install Docker Engine, containerd, and Docker Compose:

Check that Docker Engine is installed correctly by running:

If Docker Engine and Docker Compose are installed correctly, this should generate some output, including:

Next, follow these post-installation instructions (copied below for convenience) to manage Docker as a non-root user. (You can ignore the rest of the post-installation instructions.)

Next steps

Great! You're all done. Head over here to build a basic Pushkin site and experiment.

Last updated

Was this helpful?