Whenever I update Ghost manually I get the following warnings:
npm WARN react-stripe-elements@2.0.3 requires a peer of react@^15.5.
4 || ^16.0.0-0 but none is installed. You must install peer dependen
cies yourself.
npm WARN react-stripe-elements@2.0.3 requires a peer of react-dom@^1
5.5.4 || ^16.0.0-0 but none is installed. You must install peer depe
ndencies yourself.
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none i
s installed. You must install peer dependencies yourself.
This doesn’t stop Ghost from working but feels like an uncomplete installation. Is there anything I could or should do?
I am using this script for updating because my hoster doesn’t allow ghost-cli: Ghost 3 auf Uberspace 7 per Script aktualisieren | Pelekes Blog
The errors you’re seeing come up because one of Ghost’s components uses preact (rather than react).
If you have yarn installed, you should use it to install Ghost dependencies. Since Ghost is an application (and not a dependency), the lockfile should get rid of the ajv issue you’re seeing.