Skip to main content
Docusaurus

Search documentation

Type to search this documentation.

On this pageOverview

Upgrading Docusaurus

Docusaurus versioning is based on the major.minor.patch scheme and respects Semantic Versioning.

Breaking changes are only released on major version upgrades, and thoroughly documented in the following upgrade guides.

When upgrading Docusaurus you may experience issues caused by mismatching cached dependencies - there are a few troubleshooting steps you should perform to resolve these common issues before reporting a bug or seeking support.

This CLI command is used to clear a Docusaurus site's generated assets, caches and build artifacts.

npm2yarn
npm run clear

Remove the node_modules folder and your package manager's lock file using the following:

Bash
rm -rf node_modules yarn.lock package-lock.json
PowerShell
@('node_modules','yarn.lock','package-lock.json') | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue

Then reinstall packages and regenerate the lock file using:

npm2yarn
npm install
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu