Gatsby Develop失败:错误:找不到模块"gatsby-cli/lib/reporter" [英] Gatsby Develop failing : Error: Cannot find module 'gatsby-cli/lib/reporter'
问题描述
在终端中执行gatsby development命令时,请从gatsby-cli获取错误.
Keep getting an error from gatsby-cli when doing gatsby develop command in terminal.
已经删除的节点模块,并使用npm重新安装.尝试将Gatsby-Cli作为单独的模块安装,但这只会导致更多的gatsby-cli错误. Gatsby-cli是gatsby模块中的一个模块,但我真的不知道为什么突然导致此错误.
Already deleted node-modules and reinstalled using npm. Tried installing Gatsby-Cli as a separate module but that just causes more gatsby-cli errors. Gatsby-cli is a module inside the gatsby module, but I .really don't know why it's causing this error all of a sudden.
$ gatsby develop
success open and validate gatsby-configs - 0.054 s
error Error in
Error: Cannot find module 'gatsby-cli/lib/reporter'
- loader.js:582 Function.Module._resolveFilename
internal/modules/cjs/loader.js:582:15
- loader.js:508 Function.Module._load
internal/modules/cjs/loader.js:508:25
- loader.js:637 Module.require
internal/modules/cjs/loader.js:637:17
- v8-compile-cache.js:159 require
[Webmaster-Portfolio]/[v8-compile-cache]/v8-compile-cache.js:159:20
- utils.js:15 Object.<anonymous>
[Webmaster-Portfolio]/[gatsby-source-filesystem]/utils.js:15:18
- v8-compile-cache.js:178 Module._compile
[Webmaster-Portfolio]/[v8-compile-cache]/v8-compile-cache.js:178:30
- loader.js:712 Object.Module._extensions..js
internal/modules/cjs/loader.js:712:10
- loader.js:600 Module.load
internal/modules/cjs/loader.js:600:32
- loader.js:539 tryModuleLoad
internal/modules/cjs/loader.js:539:12
- loader.js:531 Function.Module._load
internal/modules/cjs/loader.js:531:3
- loader.js:637 Module.require
internal/modules/cjs/loader.js:637:17
- v8-compile-cache.js:159 require
[Webmaster-Portfolio]/[v8-compile-cache]/v8-compile-cache.js:159:20
- create-file-node.js:7 Object.<anonymous>
[Webmaster-Portfolio]/[gatsby-source-filesystem]/create-file-node.js:7:18
- v8-compile-cache.js:178 Module._compile
[Webmaster-Portfolio]/[v8-compile-cache]/v8-compile-cache.js:178:30
- loader.js:712 Object.Module._extensions..js
internal/modules/cjs/loader.js:712:10
- loader.js:600 Module.load
internal/modules/cjs/loader.js:600:32
更新了一些软件包后,我开始收到此gastby-cli错误.我以前从未见过它,而且确实很烦人.不知道解决方案.
after I updated some packages I started getting this gastby-cli error. I've never seen it before and its really annoying. Don't know of a solution.
推荐答案
看起来盖茨比内部的东西今天已经坏了,开发团队正在为此工作
Looks like something internal to Gatsby broke today, the Dev team is working on it
https://github.com/gatsbyjs/gatsby/issues/14875
这篇关于Gatsby Develop失败:错误:找不到模块"gatsby-cli/lib/reporter"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!