1. 问题所示
(先介绍下博主的项目是 Docusaurus的搭建的网站)
在执行npm run build的时候
出现如下错误:
[ERROR] Unable to build website for locale en.
[ERROR] Error: Docusaurus found broken links!
Please check the pages of your site in the list below, and make sure you don't reference any path that does not exist.
Note: it's possible to ignore broken links with the 'onBrokenLinks' Docusaurus configuration, and let the build pass.
Exhaustive list of all broken links found:
翻译如下:
[错误]错误:Docusaurus发现断开链接!
请检查您的网站在下面的列表中的页面,并确保您没有引用任何不存在的路径。
注意:使用'onBrokenLinks' Docusaurus配置可以忽略损坏的链接,并让构建通过。
发现的所有失效链接的详尽列表:
具体错误显示如下:
2. 原理分析
关于这个错误的解释