# Running ghost via cli locally

**URL:** https://forum.ghost.org/t/running-ghost-via-cli-locally/59598
**Category:** Self-hosting
**Created:** [August 15, 2025, 5:17am UTC](https://forum.ghost.org/t/running-ghost-via-cli-locally/59598 "2025-08-15T05:17:34Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![soufindev](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@soufindev](https://forum.ghost.org/u/soufindev)
#### Post date: [August 15, 2025, 5:17am UTC](https://forum.ghost.org/t/running-ghost-via-cli-locally/59598/1 "2025-08-15T05:17:34Z")

</div>

I am trying to install and run ghost locally, but end up in this infinite loop of sorts. I’m on Windows 11 and running the commands on an Administrator Terminal.

I install the latest ghost-cli:

```auto
PS D:\ghost-dev> npm install -g ghost-cli@latestnpm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported

changed 634 packages in 24s

```

Then I try to install ghost locally but needs a higher node version:

```auto
PS D:\ghost-dev> ghost install local

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org

Running in development mode

You are running an outdated version of Ghost-CLI.
It is recommended that you upgrade before continuing.
Run `npm install -g ghost-cli@latest` to upgrade.

√ Checking system Node.js version - found v20.11.1
√ Checking current folder permissions
√ Checking memory availability
√ Checking free space
√ Checking for latest Ghost version
√ Setting up install directory
× Downloading and installing Ghost v6.0.3
A SystemError occurred.

Message: Ghost v6.0.3 is not compatible with the current Node version. Your node version is 20.11.1, but Ghost v6.0.3 requires ^22.13.1

Debug Information:
    OS: Microsoft Windows 11 Pro, v10.0.26100
    Node Version: v20.11.1
    Ghost-CLI Version: 1.26.1
    Environment: development
    Command: 'ghost install local'

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.

```

So I change my node version

```auto
PS D:\ghost-dev> nvm use 22.13.1
Now using node v22.13.1 (64-bit)

```

And try to install ghost again

```auto
PS D:\ghost-dev> ghost install local

Running in development mode

You are running an outdated version of Ghost-CLI.
It is recommended that you upgrade before continuing.
Run `npm install -g ghost-cli@latest` to upgrade.

× Checking system Node.js version - found v22.13.1
(node:30896) \[DEP0040\] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
√ Checking current folder permissions
√ Checking memory availability
√ Checking free space
One or more errors occurred.

1. Checking system Node.js version

Message: The version of Node.js you are using is not supported.
Supported: ^12.22.1 || ^14.17.0 || ^16.13.0 || ^18.0.0 || ^20.11.1
Installed: 22.13.1
See https://ghost.org/docs/faq/node-versions/ for more information

Debug Information:
OS: Microsoft Windows 11 Pro, v10.0.26100
Node Version: v22.13.1
Ghost-CLI Version: 1.26.1
Environment: development
Command: ‘ghost install local’

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.

```

Now it says I need the older version of npm? What’s the actual version I need to use?

What do I need to do to run this locally?

---

<div class="post-metadata">

### Author: ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)
#### Post date: [August 15, 2025, 5:36am UTC](https://forum.ghost.org/t/running-ghost-via-cli-locally/59598/2 "2025-08-15T05:36:47Z")

</div>

It looks like you don’t have the latest version of the CLI installed - 1.28.3 is available, but you’re on 1.26.1 This can happen for several reasons, one potential reason is that you installed the CLI using a different package manager, like yarn or pnpm.

As an aside, if you can, install Ghost using WSL - there’s a lot more people that use Linux to run Ghost over Windows, so Windows sometimes has some broken features.

---

<div class="post-metadata">

### Author: ![soufindev](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@soufindev](https://forum.ghost.org/u/soufindev)
#### Post date: [August 16, 2025, 2:55am UTC](https://forum.ghost.org/t/running-ghost-via-cli-locally/59598/3 "2025-08-16T02:55:05Z")

</div>

How can I install the latest CLI on Windows? I tried `npm install -g ghost-cli@latest` and it doesn’t seem to have worked?

---

<div class="post-metadata">

### Author: ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)
#### Post date: [August 16, 2025, 4:00am UTC](https://forum.ghost.org/t/running-ghost-via-cli-locally/59598/4 "2025-08-16T04:00:11Z")

</div>

My first thought is you have multiple versions of the CLI installed.

---

<div class="post-metadata">

### Author: ![soufindev](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@soufindev](https://forum.ghost.org/u/soufindev)
#### Post date: [August 16, 2025, 4:40am UTC](https://forum.ghost.org/t/running-ghost-via-cli-locally/59598/5 "2025-08-16T04:40:37Z")

</div>

Is there a way to uninstall everything and start from scratch?

---

<div class="post-metadata">

### Author: ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)
#### Post date: [August 16, 2025, 5:57am UTC](https://forum.ghost.org/t/running-ghost-via-cli-locally/59598/6 "2025-08-16T05:57:25Z")

</div>

If you don’t know _how_ the CLI was installed, it’s kind of hard to figure out what to uninstall 🙂
