Update your Docsy NPM package
npm install, for sites that use the @docsy/theme package.Update the theme to the release you are targeting, named explicitly, by running the following from your project root:
npm install --save-dev @docsy/theme@v0.17.0
Prefer an exact version over the latest dist-tag: under npm’s
min-release-age, @latest silently resolves to the newest release that is
old enough, so you can end up one release behind without any warning. An exact
version fails visibly instead (ETARGET, though the error doesn’t name the
age gate as the cause). To install a release younger than your gate, wait out
the window, or run the update under a one-off override, noting it in your
update PR:
NPM_CONFIG_MIN_RELEASE_AGE=RELEASE_AGE_DAYS npm install --save-dev @docsy/theme@VERSION
where RELEASE_AGE_DAYS is the release’s age in whole days (set it no lower
than needed) and VERSION is the release you are installing.
To verify the resolved version of @docsy/theme, run:
npm ls @docsy/theme --depth=0
If your site installs Docsy from GitHub with npm (a mode reserved
for Docsy development and testing), update by re-running the install command
with the desired revision selector, then re-run the
install:theme-deps command as shown there.
After updating the theme, continue with the remaining update steps, starting with Review your theme overrides.
Feedback
Cette page est-elle utile?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.