Bunch of errors on grunt master with fresh install from Source

Following the instructions on installing from source

it says:

02%20PM

But running it on a new fresh install gets a bunch of errors:

Running "shell:master" (shell) task
Pulling down the latest master from upstream
Synchronizing submodule url for 'content/themes/casper'
Synchronizing submodule url for 'core/client'
Already on 'master'
Your branch is up to date with 'upstream/master'.
From github.com:TryGhost/Ghost
 * branch                master     -> FETCH_HEAD
Already up to date.
yarn install v1.15.2
[1/5] Validating package.json...
warning ghost@2.23.1: The engine "cli" appears to be invalid.
[2/5] Resolving packages...
success Already up-to-date.
$ cpy node_modules/@tryghost/members-theme-bindings/build/members-theme-bindings.js core/server/public/
Done in 0.63s.
Entering 'content/themes/casper'
Already on 'master'
Your branch is up to date with 'origin/master'.
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: run_command returned non-zero status for content/themes/casper
.
Warning: Command failed:
                        git submodule sync
                        git submodule update

                        if ! git diff --exit-code --quiet --ignore-submodules=untracked; then
                            echo "Working directory is not clean, do you have uncommited changes? Please commit, stash or discard changes to continue."
                            exit 1
                        fi

                        git checkout master
                        git pull upstream master
                        yarn
                        git submodule foreach "
                            git checkout master && git pull upstream master
                        "

Already on 'master'
From github.com:TryGhost/Ghost
 * branch                master     -> FETCH_HEAD
warning ghost@2.23.1: The engine "cli" appears to be invalid.
Already on 'master'
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: run_command returned non-zero status for content/themes/casper
.
 Use --force to continue.

Aborted due to warnings.

Anyone has ideas on why is that?

From a quick glance, it looks like you might not set the branch upstream for casper. If you’re not planning on changing it, you should be able to get away with setting the url to the ghost tree

I ran into this too. this ifixed it for me:

cd content/themes/casper
git remote add upstream git@github.com:TryGhost/Casper.git
git pull upstream master
1 Like

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