28
loading...
This website collects cookies to deliver better user experience
Install Node latest version from https://nodejs.org/en/.
Verify the Node and NPM package version by running the node -v code on your terminal.
C:\Users\user>node -v
v14.17.0
Then run the code for NPM - npm -v
You sould see the following response.
C:\Users\user>npm -v
7.16.0
C:\Users\user>npm install -g ghost-cli@latest
C:\Users\user>ghost -v
Ghost-CLI version: 1.17.3
We have to create a folder where we can install Ghost.
Type in cd Desktop on your terminal.
Create a folder named Ghost on your desktop by entering mkdir ghost
Now you'll be in the 'Ghost' folder
C:\Users\user\Desktop>cd ghost
Finally, install Ghost on to the folder by using the command ghost install local.
After a successful installation, you'll see a message like this.
You'll get something like this on your screen now.
C:\Users\user\Desktop\ghost>ghost install local
√ Checking system Node.js version - found v14.17.0
√ Checking current folder permissions
√ Checking memory availability
√ Checking free space
√ Checking for latest Ghost version
√ Setting up install directory
√ Downloading and installing Ghost v4.6.4
√ Finishing install process
√ Configuring Ghost
√ Setting up instance
√ Starting Ghost
Ghost uses direct mail by default. To set up an alternative email method read our docs at https://ghost.org/docs/config/#mail
------------------------------------------------------------------------------
Ghost was installed successfully! To complete setup of your publication, visit:
http://localhost:2352/ghost/
Copy and paste the URL [http://localhost:2352/ghost/] into your browser.
You will be displayed with the Ghost admin screen.
Create an account in Ghost.
After creating your account, you'll be directed to the admin dashboard of your Ghost website.
We have installed Ghost on the local machine and logged in to the admin dashbaord. But is it possible to customize the theme?
Yes, you can!
But for that, you need to install YARN on to your theme folder.
C:\Users\user\Desktop\ghost\content\themes\casper>
In this folder, enter the code yarn install.
You'll get something like this. [Unless you played wrong!]
yarn install v1.22.10
[1/5] Validating package.json...
warning [email protected]: The engine "ghost" appears to be invalid.
warning [email protected]: The engine "ghost-api" appears to be invalid.
[2/5] Resolving packages...
[3/5] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
[5/5] Building fresh packages...
Done in 204.81s.
To start the development server, run yarn dev on another terminal.
Now you can edit the code of your theme and see the changes by refreshing the local server.
That's it.
28