How to Install Ghost Locally in Windows

There are two main reasons why you want to install Ghost on a local machine. First, you want to try it first before you install it on a real website. Second, you want to develop a Ghost theme. You can install Ghost on your local machine regardless of the operating system you use. Including Windows. This post will show you how to install Ghost locally in Windows.

Ghost itself is a JavaScript-based CMS running on Node.js. So, before installing Ghost, you need to install Node.js first. Here is how to install Ghost in a Windows local machine.

Step 1: Install Node.js

Node.js is a popular JavaScript runtime built on Chrome’s V8 engine. It will play a role as the web server on your local machine. Node.js is available for all major operating systems. To install it on your Windows machine, first, visit its official website and download the installer file. You can either download the LTS version or the current version.

Once the file is downloaded, simply double-click to install it on your Windows machine. On the appearing dialog popup, click the Next button.

Accept the user agreement and click the Next button.

Click the Next button.

On the next step, you will be prompted to select the features you want to install. If you have no idea, you can simply click the Next button to install all necessary the features.

You will once again be asked whether you want to install the necessary tools, including Chocolatey. These tools are not necessary, so they are completely optional. Click the Next button.

Click the Install button to start the installation process. Wait a moment until the process is done.

Step 2: Install Ghost-CLI

The Ghost CMS consists of a number of folders and files. It also takes some configurations in order to make Ghost run properly. To make it easier for you to install and configure Ghost, the Ghost development team offers a dedicated tool called Ghost-CLI. The tool will help install and configure Ghost.

To install Ghost-CLI in Windows, launch Command Prompt and type the following command:

npm install ghost-cli@latest -g

Step 3: Install Ghost

Next, you can start to install Ghost on your local machine. First, create a new directory under your home directory. You can create the directory using File Explorer or via Command Prompt by typing mkir[space]directory name (i.e. mkdir ghost)

Move to the newly created directory by typing cd[space]directory name

Type the following command to install Ghost.

ghost install local

Once the installation process is done, you can type http://localhost:2368 on web browser to access your Ghost blog. To access Ghost admin dashboard, you can type http://localhost:2368/ghost.

When accessing the admin dashboard for the first time, you will be prompted to create a Ghost account. Simply click the Create your account button to create one.

Starting and Stopping Ghost

After your computer is rebooted, you need to run Ghost to access your blog on web browser. You can type the following commands on Command Prompt to start and stop Ghost.

ghost start
ghost stop

Make sure to run the commands above from the directory where Ghost is installed.

Similar Posts

Leave a Reply