尝试build,卡住并长时间等待后报错。
root@DonnyS-Ubuntu:~/yapi/vendors# yarn run build-client
yarn run v1.17.3
$ NODE_ENV=production ykit pack -m
⠇ [Bundler] 713/778 build modules/root/yapi/vendors/node_modules/ykit-config-react/node_modules/happypack/lib/HappyThread.js:163
throw e;
^
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
at ChildProcess.target.send (internal/child_process.js:636:16)
at Object.compile (/root/yapi/vendors/node_modules/ykit-config-react/node_modules/happypack/lib/HappyThread.js:138:10)
at Object.compile (/root/yapi/vendors/node_modules/ykit-config-react/node_modules/happypack/lib/HappyThreadPool.js:72:14)
at HappyPlugin.compileAndUpdateCache (/root/yapi/vendors/node_modules/ykit-config-react/node_modules/happypack/lib/HappyPlugin.js:350:14)
at HappyPlugin.compileInBackground (/root/yapi/vendors/node_modules/ykit-config-react/node_modules/happypack/lib/HappyPlugin.js:316:25)
at HappyPlugin.compile (/root/yapi/vendors/node_modules/ykit-config-react/node_modules/happypack/lib/HappyPlugin.js:241:32)
at Object.HappyLoader (/root/yapi/vendors/node_modules/happypack/lib/HappyLoader.js:31:15)
at WEBPACK_CORE_LOADER_EXECUTION (/root/yapi/vendors/node_modules/webpack-core/lib/NormalModuleMixin.js:155:71)
at runSyncOrAsync (/root/yapi/vendors/node_modules/webpack-core/lib/NormalModuleMixin.js:155:93)
at nextLoader (/root/yapi/vendors/node_modules/webpack-core/lib/NormalModuleMixin.js:290:3)
at /root/yapi/vendors/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15
at Object.context.callback (/root/yapi/vendors/node_modules/webpack-core/lib/NormalModuleMixin.js:148:14)
at Object.module.exports (/root/yapi/vendors/node_modules/eslint-loader/index.js:214:8)
at WEBPACK_CORE_LOADER_EXECUTION (/root/yapi/vendors/node_modules/webpack-core/lib/NormalModuleMixin.js:155:71)
at runSyncOrAsync (/root/yapi/vendors/node_modules/webpack-core/lib/NormalModuleMixin.js:155:93)
at nextLoader (/root/yapi/vendors/node_modules/webpack-core/lib/NormalModuleMixin.js:290:3)
at /root/yapi/vendors/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
at Storage.finished (/root/yapi/vendors/node_modules/ykit/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
at /root/yapi/vendors/node_modules/graceful-fs/graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
root@DonnyS-Ubuntu:~/yapi/vendors# events.js:174
throw er; // Unhandled 'error' event
^
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
at process.target.send (internal/child_process.js:636:16)
at /root/yapi/vendors/node_modules/ykit-config-react/node_modules/happypack/lib/HappyWorkerChannel.js:33:18
at /root/yapi/vendors/node_modules/ykit-config-react/node_modules/happypack/lib/HappyWorker.js:50:5
at apply (/root/yapi/vendors/node_modules/ykit-config-react/node_modules/happypack/lib/applyLoaders.js:262:14)
at /root/yapi/vendors/node_modules/ykit-config-react/node_modules/happypack/lib/applyLoaders.js:275:9
at /root/yapi/vendors/node_modules/babel-loader/lib/index.js:159:14
at /root/yapi/vendors/node_modules/babel-loader/lib/fs-cache.js:87:9
at FSReqWrap.args [as oncomplete] (fs.js:140:20)
Emitted 'error' event at:
at process.nextTick (internal/child_process.js:640:35)
at process._tickCallback (internal/process/next_tick.js:61:11)