Ghost-CLI: "ghost install local" error in windows
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
Is there any more data should I provide?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (11 by maintainers)
Commits related to this issue
- fix(debug): normalize debug file path refs #228 - remove potentially invalid path characters from debug log name — committed to TryGhost/Ghost-CLI by acburdine 7 years ago
- fix(config): cleanup absolute path config function refs https://github.com/TryGhost/Ghost-CLI/issues/228 - don't try to reinvent path.isAbsolute — committed to acburdine/Ghost by acburdine 7 years ago
- fix(config): cleanup absolute path config function (#8641) refs https://github.com/TryGhost/Ghost-CLI/issues/228 - don't try to reinvent path.isAbsolute — committed to TryGhost/Ghost by acburdine 7 years ago
- fix(windows): fix local process manager on windows closes #228 — committed to TryGhost/Ghost-CLI by acburdine 7 years ago
- fix(windows): fix local process manager on windows closes #228 — committed to TryGhost/Ghost-CLI by acburdine 7 years ago
@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.
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.