我是 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/