Running Ghost on a previous project

Hey guys, this is my first time trying to work on Ghost but I have come across an issue when running it.

The project I am working on is running on Ghost and now that I have setup Ghost on my machine, I am having some issues running the local server for this project locally. It throws me an error back that I can’t seem to find a proper answer for online.

I am working on a Windows machine, that has a subsystem of Linux installed on it. Perhaps someone can assist me? Thank you very much.

❯ ghost run
The `ghost run` command is used by the configured Ghost process manager and for debugging. If you're not running this
to debug something, you should run `ghost start` instead.

internal/modules/cjs/loader.js:985
  throw err;
  ^

Error: Cannot find module '/mnt/c/Users/user/site/ghost/current/index.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
    at Function.Module._load (internal/modules/cjs/loader.js:864:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Hey @Ahmedie-m :wave:

Can you run ghost doctor to make sure nothing’s broken, and if nothing is broken, can you also share the debug information in the output? The 2 main things are node version and ghost version :slight_smile:

Hey, I have already tried that previously but it shows nothing as broken.

Here is the output:

Found a development config but not a production config, running in development mode instead
:heavy_check_mark: Checking system Node.js version
:information_source: Ensuring user is not logged in as ghost user [skipped]
:information_source: Checking if logged in user is directory owner [skipped]
:heavy_check_mark: Checking current folder permissions
:heavy_check_mark: Validating config
:heavy_check_mark: Checking memory availability
:heavy_check_mark: Checking binary dependencies

Debug Information:
OS: Ubuntu, v18.04.4 LTS
Node Version: v12.16.1
Ghost Version: 2.9.1
Ghost-CLI Version: 1.13.1
Environment: production

Hmm, it looks like you’re using a pretty old version of Ghost (current version is 3.11!). Could you try updating?