javascript - Gatsby worker 错误 :

标签 javascript node.js reactjs gatsby gatsby-image

我是 Gatsby 的新人,当我尝试启动 Gatsby 项目 gatsbydevelop --port 8080 时,遇到以下错误:

WorkerError: Processing C:/Users/AOmurzakov/Desktop/Job/landings/packages/project-business/.cache/gatsby-source-filesystem/6e42032743dd2dda7e331865dd496bd9.png failed Original error:

  • jobs-manager.js:314 exports.enqueueJob [landings]/[gatsby]/dist/utils/jobs-manager.js:314:23

    • runMicrotasks

    • task_queues.js:93 processTicksAndRejections internal/process/task_queues.js:93:5

not finished run queries - 2.879s not finished Generating image thumbnails - 2.859s

pages
In Progress
@project/businessnpm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! lerna@ project-business: cd packages/project-business && gatsby develop --port 8080 npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the lerna@ start:project-business script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\AOmurzakov\AppData\Roaming\npm-cache_logs\2020-02-12T05_22_16_490Z-debug.log PS C:\Users\AOmurzakov\Desktop\Job\landings>

我试图通过 gatsby clean 删除 .cach 。没用 我也尝试用

启动该项目

12 and 10 version of Node

但是没有效果,同样的错误。有人可以建议吗?

最佳答案

已关注 this GitHub 评论及其上方的评论。

我运行了以下命令,它解决了我的问题。

rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install
npm run dev

关于javascript - Gatsby worker 错误 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60181836/

相关文章:

node.js - 如何在 Visual Studio Code 中的事件上使用 JSDoc 自定义 EventEmitter?

node.js - 绑定(bind)到 Electron 中全局变量的更改

javascript - 如何根据React Native中的位置获取数据

javascript - 如何创建一个以 Node 服务器作为后端的react-redux应用程序?

javascript - Switch 语句触发所有 @html.partials 而不是选定的值

javascript - 使用jquery选择没有第一列数据的表

javascript - 使用 JS/Lodash 迭代并改变一个多维对象数组,深度未定

javascript - express : Call to next in error handler

javascript - 在 create react-app 中运行本地环境显示 %20?

JQuery 变量中的 PHP?