WordPress has long been the default choice for creating blogs.
But features like SEO or social sharing are only available via plugins.
Ghost is a simple blogging platform that lets you publish, share, and grow your business around content.
Like every CMS, you’ve got the option to test Ghost on your local computer.
Well show you how to run Ghost CMS locally on Mac and PC.
After installing Node, you might skip this section altogether and move on to using Ghost CLI.
It also keeps track of what version youre using and lets you switch between them easily.
Before you proceed with the NVM installation, uninstall any existing versions of Node.js.
On Windows, you should also delete any Nodejs directories to avoid potential complications.
ThisStack Overflowpost explains the process.
Also back up any global npmrc config, usually located in%AppData%\npm\etc\npmrc.
Ghost recommends steps to take if you run into problems during alocal installation through NVM.
You must ensure that you have installed ghost-cli in the correct environment.
Head to thereleases pageand downloadnvm-setup.zip.
After finishing the installation, pressWin + Xand chooseCommand Prompt (Admin).
Now install Node using NVM:
The package gets installed to %AppData\Roaming\nvm and symlinked to Program Files.
Now key in in:
To check the version number of Node and npm.
Since macOS 10.15 Catalina, the default shell is zsh, and nvm will look for.zshrcto update the configuration.
In Finder, pressCmd + Shift + Periodto see hidden folders and files.
If the.zshrcfile is missing, youll have to create it:
Then launch the install script again.
Now enter:
If you see the version number, it means the installation was successful.
Now install Node:
Runnode -vandnpm -vto check the version number of node and npm.
The CLI is available as annpm moduleand you’re free to install it via either npm or yarn.
You should then run:
Then, take the suggested steps before installing Ghost.
The CLI tool performs various operations to maintain the Ghost CMS environment.
It creates a folder structure, takes care of user permissions, and manages any existing Ghost installation.
bang out in:
UserName is the user account name of your PC.
ensure to tick thePrivate Networkoption or you wont be able to view your Ghost blog.
In addition, youll get a link:
Paste it into your internet tool to see this screen.
Step 4: Enter the details to view your local site.
Useful Commands to Manage Ghost
Several useful commands allow you to manage your Ghost blog.
If you follow the procedure carefully, it wont take long to install and set up your site.
If you want to develop a professional site, youll need to consider usability, SEO, and more.
Read our guide on things to plan out before creating your website.