为什么我在创建新的 Gatsby 项目后得到 "Minified React error #31"?

Why am I getting "Minified React error #31" after creating a new Gatsby project?

我试过在我的机器上安装 gatsby-cli 并创建了一个新项目,但是在我生成它并尝试提供它之后,我得到 Minified React error #31 .这些是我遵循的步骤:

npm i -g gatsby-cli

还有很多我无法恢复的漏洞问题。我认为这与 hapi 有关。那么:

$ gatsby new my-project
$ cd my-project
$ gatsby serve

然后我得到

failed We've encountered an error: Minified React error #31; visit
https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=Error%3A%20ENOENT%3A%20no%20such%20file%20or%20directory%2C%20open%20'%
2FUsers%2Fwayoshi%2FDev%2Flegionhack-home%2F.cache%2Fmatch-paths.json'&args[]= for the full message or use the non-minified dev
environment for full errors and additional helpful warnings.

这是已知的常见错误吗?

这是我的环境信息:

macOS 10.14 Mojave
node v12.22
npm v7.21

gatsby develop 运行s 开发服务器。如果您想 运行 生产版本,您需要 gatsby build 来构建应用程序,然后 gatsby serve 到 运行 生产版本。