Same problem here! It does not make any difference whether i use docker image or the instrucions from the site.
here’s my try with your latest suggestions:
root@519e11a18513:/var/lib/ghost/content/themes/casper# yarn install
yarn install v1.22.0
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] Validating package.json…
warning email@example.com: The engine “ghost” appears to be invalid.
warning firstname.lastname@example.org: The engine “ghost-api” appears to be invalid.
[2/5] Resolving packages…
[3/5] Fetching packages…
info email@example.com: The platform “linux” is incompatible with this module.
info “firstname.lastname@example.org” is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies…
[5/5] Building fresh packages…
success Saved lockfile.
Done in 2.85s.
root@519e11a18513:/var/lib/ghost/content/themes/casper# yarn gulp
yarn run v1.22.0
error Command “gulp” not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
So the question is the same, where and how to install gulp? Globally or locally, as root or as normal user. Or by running yarn somehow different? I tried it many times and many times i got into all kinds of dependency problems. There are many package managers involved in this, so it’s a mess.
Again, i can send you also some screens from my local install which was done exactly like from the link, but it’s much worse mess due to all the node/npm versions, all the possible linux distributions etc, so really docker images are much better to replicate. A working step by step instruction on what linux/npm/grunt constellation is missing, a working docker image for theme development would be highly appreciated. I also tried mmornati/docker-ghostblog, also without success.
From what I see immediately in the beginning the system is complaining about packages that are complaining about linux, and i think linux is not so popular amongst ghost/ghost themes developers
Your link shows only how to start ghost locally, i can do this.
I am not able to get the enviroment to for casper theme development.
The only information i got is yarn install && yarn gulp. That does not work.
With the instructions from your link it gets much worse, since i have to deal with the right versions and right way of installing node.
I did not want to use grunt at all, at some point at a local install it was demanded. I am sorry, but the guide is not detailed at all! I am missing a fool proof to have this thing running on linux. Docker images is usually the easiest way, because then you have all the versions of the used software fixed. In the suggested way there are no informations whatsoever what software exactly to use, on what OS in what environment it was tested. There is no step by step instruction how to get this thing working on linux.
I am sure it works with this instruction on macos out of the box and i am sure that it will also work on a particular linux constellation out of the box. I am missing this information. Sorry, but the install instructions on the site are completely useless for the problems i am encountering due to the complexity of the node eco system,