【发布时间】:2021-12-31 12:50:01
【问题描述】:
当运行gatsby develop,在gatsby new 之后使用本教程中提供的配置 - https://www.gatsbyjs.com/docs/tutorial/part-1/,我收到此错误
模块构建失败(来自 ../../my-first-gatsby-sitenode_modules/gatsby/dist/utils/babel-loader.js): 错误:找不到模块 '..\my-first-gatsby-site\node_modules\gatsby\dist\utils\babel-loader.js'
我尝试过的解决方案:
- 删除 node_modules、package-lock => npm install / yarn。
- 在
node_modules/gatsby中运行npm install。 - npm -g --save babel-loader。
如果您遇到错误并能够解决它,请提供帮助。 TIA。
【问题讨论】:
标签: javascript node.js gatsby