question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"ghost install local" error in windows

See original GitHub issue

I use ghost locally to develop themes and now I need to install ghost 1.0.0 for updating and testing my old themes. But I can’t install and run Ghost 1.0.0-beta.2 ( not tried/tested previous 1.0.0 versions )

Windows 8.1 Node 6.11.0



C:\ghost>ghost install local
 √ Checking for latest Ghost version
 √ Running system checks
 √ Setting up install directory
 √ Downloading and installing Ghost v1.0.0-beta.2
 √ Moving files
√ Finishing setup
 √ Validating config
An error occurred.
Message: 'The server has encountered an error.'


Debug Information:
    Node Version: v6.11.0
    Ghost-CLI Version: 1.0.0-alpha.19
    Environment: development
    Command: 'ghost install local'
(node:768) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open 'C:\ghost\ghost-cli-debug-2017-06-26T08:24:49.047Z.log'

C:\ghost>ghost start
Found a development config but not a production config, starting in development mode instead.
 √ Validating config
An error occurred.
Message: 'The server has encountered an error.'


Debug Information:
    Node Version: v6.11.0
    Ghost-CLI Version: 1.0.0-alpha.19
    Environment: development
    Command: 'ghost start'
(node:1332) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open 'C:\ghost\ghost-cli-debug-2017-06-26T08:25:07.131Z.log'

Automatically generated config.development.json file

{"url":"http://localhost:2368/","pname":"ghost-local-1-2-3-4-5-6-7-8-9-10-11","server":{"port":2368},"process":"local","database":{"client":"sqlite3","connection":{"filename":"C:\\ghost\\content\\data\\ghost-local.db"}},"logging":{"transports":["file","stdout"]}}

Folder structure after the installation

http://prntscr.com/fo87ro

Is there any more data should I provide?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
acburdinecommented, Jun 29, 2017

@rasmuslundberg per my above comment - this is a bug in Ghost itself. I put a PR in to fix it (TryGhost/Ghost#8641), but until that’s merged / a new version is released there’s not much I can do on the CLI side.

1reaction
biswajit-sahacommented, Jun 27, 2017

Maybe the colon ( : ) in file name preventing to generate or save the file. As far as I know, colon ( : ) is not a valid charecter for file name in Windows.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'ghost install local' not working · Issue #1257 - GitHub
I have installed Ghost locally with npm install ghost-cli@latest -g . However, when I run ghost install local I get the following error:...
Read more >
Unable to install Ghost Locall on Windows 10
I can't install a new Ghost instance on Windows 10, this is the output: ghost install local √ Checking system Node.js version √...
Read more >
Fixing "Cannot find module 'sqlite3'" error when installing ...
I was getting the following error when installing Ghost v4 locally on Windows 10: × Starting Ghost One or more errors occurred.
Read more >
How to Install Ghost CMS on Mac and PC - MakeUseOf
We'll show you how to run Ghost CMS locally on Mac and PC. Prerequisites of Ghost CMS. Ghost CMS requires the following: Node.js...
Read more >
Failing to install ghost local install - node.js - Stack Overflow
When i try to install ghost using the ghost ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found