My goal is to develop a theme for my site, but right now I am working with either Casper or Source themes until I can address this issue.
It is my understanding that since I have installed ghost-local (Ubuntu) that when I edit a .hbs file in vscode, I should see the changes immediately when I return to the browser without any changes on my part.
When I google this, there seems to be mixed opinions on if this is in fact the behavior out of the box.
I am not seeing this behavior.
When I change the .hbs file and then return the the browers, if I do a shift-reload, my changes do show up.
This is the case for both Source and Casper themes.
My questions are:
-
Am I correct that there is a way to have the page automatically update with my changes? If not, I would like a definitive answer and I can proceed accordingly. But if so, then I would like to enable that.
-
If so, then how to I get there from here? What can I do to resolve the npm conflicts in the theme shown below?
Here is info on my system:
$ ghost version
Running in development mode
Ghost-CLI version: 1.26.0
Ghost version: 5.80.5 (at ~/projects/ghost06)
$ npm version
{
npm: ‘9.5.1’,
node: ‘18.16.1’,
acorn: ‘8.8.2’,
ada: ‘1.0.4’,
ares: ‘1.19.1’,
brotli: ‘1.0.9’,
cldr: ‘42.0’,
icu: ‘72.1’,
llhttp: ‘6.0.11’,
modules: ‘108’,
napi: ‘8’,
nghttp2: ‘1.52.0’,
nghttp3: ‘0.7.0’,
ngtcp2: ‘0.8.1’,
openssl: ‘3.0.9+quic’,
simdutf: ‘3.2.2’,
tz: ‘2022g’,
undici: ‘5.21.0’,
unicode: ‘15.0’,
uv: ‘1.44.2’,
uvwasi: ‘0.0.15’,
v8: ‘10.2.154.26-node.26’,
zlib: ‘1.2.13’
}
$ npm update
up to date, audited 1 package in 112ms
found 0 vulnerabilities
from the theme directory:
casper$ npm update
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: casper@5.7.1
npm ERR! Found: postcss@8.2.13
npm ERR! node_modules/postcss
npm ERR! dev postcss@“8.2.13” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer postcss@“^8.2.15” from cssnano@5.1.12
npm ERR! node_modules/cssnano
npm ERR! dev cssnano@“5.1.12” from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! A complete log of this run can be found in: