Ghost update failed

#1

I use Ghost 2.21.0 locally. (Windows 10)
I’m having trouble updating to the latest version:

ghost update
Found a development config but not a production config, running in development mode instead
√ Checking system Node.js version
√ Checking current folder permissions
√ Checking memory availability
√ Checking for available migrations
√ Checking for latest Ghost version
× Downloading and updating Ghost to v2.21.1
A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@2.21.1: The engine "cli" appears to be invalid.
"cp" non � riconosciuto come comando interno o esterno,
 un programma eseguibile o un file batch.
error Command failed with exit code 1.

yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ cp node_modules/@tryghost/members-theme-bindings/build/members-theme-bindings.js core/server/public/
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.15.0
    Ghost-CLI Version: 1.10.0
    Environment: development
    Command: 'ghost update'

Additional log info available in: C:\Users\**********\.ghost\logs\ghost-cli-debug-2019-04-30T22_32_10_673Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://docs.ghost.org/api/ghost-cli/ for troubleshooting.



Debug Information:
    OS: Microsoft Windows, v10.0.17134
    Node Version: v8.15.0
    Ghost-CLI Version: 1.10.0
    Environment: development
    Command: 'ghost update'
Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@2.21.1: The engine "cli" appears to be invalid.
"cp" is not recognized as an internal or external command,
 an executable program or a batch file.
error Command failed with exit code 1.

yarn install v1.15.2
[1/5] Validating package.json ...
[2/5] Resolving packages ...
[3/5] Fetching packages ...
[4/5] Linking dependencies ...
[5/5] Building fresh packages ...
$ cp node_modules/@tryghost/members-theme-bindings/build/members-theme-bindings.js core / server / public /
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Exit code: 1

--------------- stdout ---------------
yarn install v1.15.2
[1/5] Validating package.json ...
[2/5] Resolving packages ...
[3/5] Fetching packages ...
[4/5] Linking dependencies ...
[5/5] Building fresh packages ...
$ cp node_modules/@tryghost/members-theme-bindings/build/members-theme-bindings.js core / server / public /
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.


--------------- stderr ---------------
warning ghost@2.21.1: The engine "cli" appears to be invalid.
"cp" is not recognized as an internal or external command,
 an executable program or a batch file.
error Command failed with exit code 1.
#2

Hey!

Looks like I shipped a bug when running on Windows, we’ve got a fix for it here: https://github.com/TryGhost/Ghost/pull/10722 It’ll be released next week - sorry for the inconvenience!

closed #3

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