Unable to install Ghost local /dev on Windows 10 - info There appears to be trouble with your network connection. Retrying

ghost-cli

#1

Hi,

I love ghost and want to develop a custom theme for my blog, unfortunately I am unable to install it on my Windows 10 machine. I thoroughly followed the guide at: https://docs.ghost.org/docs/install-local#section-developing-themes, tried installing nod 6.10 and the latest LTS as well but no luck. Everything goes smoothly with npm i -g ghost-cli@latest but as soon as I issue ghost install local in an empty folder it stucks on step 3/5 with info There appears to be trouble with your network connection. Retrying… I already tried fixing by adding yarn config set network-timeout 180000. Here is a full output:

c:\ghost>ghost install local √ Checking system Node.js version √ Checking current folder permissions √ Checking memory availability √ Checking for latest Ghost version √ Setting up install directory × Downloading and installing Ghost v1.24.2 A ProcessError occurred. Message: Command failed: yarn install --no-emoji --no-progress warning ghost@1.24.2: The engine "cli" appears to be invalid. error An unexpected error occurred: "http://registry.npmjs.org/compression/-/compression-1.7.2.tgz: socket hang up". yarn install v1.7.0 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info If you think this is a bug, please open a bug report with the information provided in "c:\\ghost\\versions\\1.24.2\\yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. Exit code: 1 Debug Information: OS: Microsoft Windows, v10.0.17134 Node Version: v8.11.2 Ghost-CLI Version: 1.8.1 Environment: development Command: 'ghost install local' Additional log info available in: C:\Users\Nikoloz\.ghost\logs\ghost-cli-debug-2018-06-11T18_00_24_861Z.log Try running ghost doctor to check your system for known issues. Please refer to https://docs.ghost.org/v1/docs/troubleshooting#section-cli-errors for troubleshooting. c:\ghost>ghost doctor Working directory is not a recognisable Ghost installation. Please runghost doctoragain within a folder where Ghost was installed with Ghost-CLI.


#2

I don’t think that ghost has really been tested outside of Linux, Ubuntu environments. I’m running Ghost on an old CentOS 6 box, and I had to work around the ghost-cli expectations regarding systemd and such.

In any case, the error messages seem to suggest that there were network issues going to http://registry.npmjs.org/compression/-/compression-1.7.2.tgz . If you haven’t tried already, you may wish to try going to that URL using a browser from the Windows 10 machine to make sure that works. Also, you may wish to check your Windows Firewall settings to make sure that outgoing connections are allowed, probably from the “node” binary.

Of course, it is possible that there may be a bug in the Ghost code somewhere during installation, but I don’t think that Windows 10 compatibility is high up on the priority list.


#3

Hello,

did you find a way to make it work ? just like you, everything is fine with “npm install -g ghost-cli” but it stucks on step 3/5 when i try “ghost install local” in an empty folder. Maybe i should tell that i’m trying this inside WSL (Ubuntu 16.04).


#4

could be related to https://github.com/facebook/create-react-app/issues/4588#issuecomment-400088653


#5

I am also having the same issue. I’ve build other sites in Ghost on Win10 without any issues, but now for this client site it decides to break :frowning:


#6

hi I think increasing the network timeout might solve your problem, to do that you need to type

yarn install --network-timeout 1000000

let me know how it goes


#7

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.