由于以下错误,无法在Netlify上运行Gatsby 4:
4:07:59 PM: success run queries in workers - 158.327s - 621/621 3.92/s
4:16:57 PM: error UNHANDLED EXCEPTION write EPIPE
4:16:57 PM:
4:16:57 PM:
4:16:57 PM: Error: write EPIPE
4:16:57 PM:
4:16:57 PM: - child_process:846 ChildProcess.target._send
4:16:57 PM: node:internal/child_process:846:20
4:16:57 PM:
4:16:57 PM: - child_process:719 ChildProcess.target.send
4:16:57 PM: node:internal/child_process:719:19
4:16:57 PM:
4:16:57 PM: - index.js:290 WorkerPool.sendMessage
4:16:57 PM: [repo]/[gatsby-worker]/dist/index.js:290:19
4:16:57 PM:
4:16:57 PM: - worker-messaging.ts:22
4:16:57 PM: [repo]/[gatsby]/src/utils/jobs/worker-messaging.ts:22:22
4:16:57 PM:
4:16:57 PM:
4:16:57 PM: not finished Merge worker state - 0.168s
以下是我的 Gatsby 信息:
System:
OS: Windows 10 10.0.19042
CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
Binaries:
Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 3.10.0
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (95.0.1020.30)
npmPackages:
gatsby: ^4.0.2 => 4.0.2
gatsby-background-image: ^1.5.3 => 1.5.3
gatsby-plugin-feed: ^4.0.0 => 4.0.0
gatsby-plugin-google-tagmanager: ^4.0.0 => 4.0.0
gatsby-plugin-image: ^2.0.0 => 2.0.0
gatsby-plugin-manifest: ^4.0.0 => 4.0.0
gatsby-plugin-nprogress: ^4.0.0 => 4.0.0
gatsby-plugin-offline: ^5.0.0 => 5.0.0
gatsby-plugin-react-helmet: ^5.0.0 => 5.0.0
gatsby-plugin-react-svg: ^3.0.1 => 3.1.0
gatsby-plugin-remove-fingerprints: ^0.0.2 => 0.0.2
gatsby-plugin-sass: ^5.0.0 => 5.0.0
gatsby-plugin-sharp: ^4.0.1 => 4.0.1
gatsby-plugin-sitemap: ^5.0.0 => 5.0.0
gatsby-plugin-styled-components: ^5.0.0 => 5.0.0
gatsby-plugin-svgr-loader: ^0.1.0 => 0.1.0
gatsby-plugin-web-font-loader: ^1.0.4 => 1.0.4
gatsby-source-filesystem: ^4.0.0 => 4.0.0
gatsby-source-wordpress: ^6.0.0 => 6.0.0
gatsby-transformer-sharp: ^4.0.0 => 4.0.0
npmGlobalPackages:
gatsby-cli: 4.0.0
我能够在本地构建,但清除缓存和部署似乎也行不通。有任何想法是哪里出了问题吗?
开始觉得我需要降级到Gatsby v3,直到这个问题被解决。
.node-version
文件添加了相同的节点版本。不过问题仍然存在。 - Sam