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

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 run ghost doctor again within a folder where Ghost was installed with Ghost-CLI.

1 Like

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.

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).

could be related to create-react-app trying to get compression lib over HTTP instead of HTTPS - failing behind proxy Ā· Issue #4588 Ā· facebook/create-react-app Ā· GitHub

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:

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

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