Set up Ghost for Development | Windows Subsystem for Linux (WSL)

Let's learn how to install Ghost to develop themes using WSL or Windows Subsystem for Linux. The first step is having WSL already installed and configured.

Launch your terminal and let's get started.

First, we need to install some dependencies.
Note that you will need to know your root password for this.

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

Next, we need to install the latest version of ghost-cli.

sudo npm install ghost-cli@latest -g

We'll create a new directory called ghost-test. Of course you can call it whatever you prefer but for this example we will stick with ghost-test.

mkdir ghost-test

Let's enter our newly created directory.

cd ghost-test

Finally, we install ghost locally.

ghost install local

Our new site can be accessed at: http://localhost:2368/ghost/