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.
📄️ 简介
道格龙(Docusaurus)文档从头开始设计,旨在轻松安装和使用,帮助您快速启动并运行您的网站。
🗃️ 入门
4 个项目
🗃️ 指南
14 个项目
🗃️ 高级教程
5 个项目
🗃️ API 参考
6 个项目
Troubleshooting upgrades
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.
Run the clear
command
This CLI command is used to clear a Docusaurus site's generated assets, caches and build artifacts.
- npm
- Yarn
- pnpm
- Bun
npm run clear
yarn clear
pnpm run clear
bun run clear
Remove node_modules
and your lock file(s)
Remove the node_modules
folder and your package manager's lock file using the following:
- Bash
- PowerShell
rm -rf node_modules yarn.lock package-lock.json
@('node_modules','yarn.lock','package-lock.json') | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue
Then reinstall packages and regenerate the lock
file using:
- npm
- Yarn
- pnpm
- Bun
npm install
yarn install
pnpm install
bun install