# Ghost Install for Local Hosting Error

**URL:** <https://forum.ghost.org/t/ghost-install-for-local-hosting-error/38784>\
**Category:** Using Ghost\
**Created:** [May 30, 2023, 5:38pm UTC](https://forum.ghost.org/t/ghost-install-for-local-hosting-error/38784 "2023-05-30T17:38:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![itzy](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/itzy/32/24648_2.png) [@itzy](https://forum.ghost.org/u/itzy)\
**Post date:** [May 30, 2023, 5:38pm UTC](https://forum.ghost.org/t/ghost-install-for-local-hosting-error/38784/1 "2023-05-30T17:38:32Z")

</div>

Hi! I’m sorry if this is a dumb question–I’m new to all this and I’m trying to locally host a website. I’m able to install the Ghost-CLI, but once I try running ghost install local, I get a system error that looks like this:

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/c/c/ccf96be486cbc2ccde0cc001db3bff78409f037d.png)

```auto
$ ghost install local

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

- Inspecting operating system
- Checking for deprecations

[12:27:02] Checking for Ghost-CLI updates [started]
[12:27:02] Checking for Ghost-CLI updates [completed]

A SystemError occurred.

Message: Current directory is not empty, Ghost cannot be installed here.

Debug Information:
    OS: Microsoft Windows 10 Home, v10.0.19045
    Node Version: v18.16.0
    Ghost-CLI Version: 1.24.0
    Environment: production
    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.

```

I’ve tried typing cd to clear directory as mentioned in the [installer guide](https://ghost.org/docs/install/linode/), I’ve tried running it in a new folder, restarting my computer, and so on, and I can’t really figure it out. Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [May 30, 2023, 7:09pm UTC](https://forum.ghost.org/t/ghost-install-for-local-hosting-error/38784/2 "2023-05-30T19:09:54Z")

</div>

‘cd’ doesn’t clear directory. It changes you to the specified directory. Can you verify that when you run the `ghost install local` command, you’re actually in an empty directory? Depending on your operating system, either `dir` or `ls` should show what’s already in the directory.

---

<div class="post-metadata">

**Author:** ![RyanF](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ryanf/32/17448_2.png) [@RyanF](https://forum.ghost.org/u/RyanF)\
**Post date:** [May 30, 2023, 7:47pm UTC](https://forum.ghost.org/t/ghost-install-for-local-hosting-error/38784/3 "2023-05-30T19:47:58Z")

</div>

@Cathy_Sarisky is exactly right here. The directory isn’t empty, which is preventing you from installing Ghost locally.

We have a guide/video on installing Ghost locally here: [How to install Ghost locally](https://ghost.org/tutorials/local-ghost/)

Also, I’m not sure what the end goal is, but installing Ghost locally isn’t a method for hosting a website. Instead, it’s a way to develop themes, test out Ghost, or for our development purposes.
