события. js: 288 бросок er; // необработанное событие error - PullRequest
1 голос
/ 27 марта 2020

Я получил ошибку при сборке в Angular 9.1.0 версии.

npm run build 

Я получил ошибку ниже,

throw er; // Unhandled 'error' event
      ^

Error: write UNKNOWN
    at ChildProcess.target._send (internal/child_process.js:806:20)
    at ChildProcess.target.send (internal/child_process.js:677:19)
    at ChildProcessWorker.send (D:\PublishSource\sample\node_modules\terser-webpack-plugin\node_modules\jest-worker\build\workers\ChildProcessWorker.js:330:17)
    at WorkerPool.send (D:\PublishSource\sample\node_modules\terser-webpack-plugin\node_modules\jest-worker\build\WorkerPool.js:32:34)
    at Farm._process (D:\PublishSource\sample\node_modules\terser-webpack-plugin\node_modules\jest-worker\build\Farm.js:129:10)
    at Farm._enqueue (D:\PublishSource\sample\node_modules\terser-webpack-plugin\node_modules\jest-worker\build\Farm.js:152:10)
    at Farm._push (D:\PublishSource\sample\node_modules\terser-webpack-plugin\node_modules\jest-worker\build\Farm.js:159:12)
    at D:\PublishSource\sample\node_modules\terser-webpack-plugin\node_modules\jest-worker\build\Farm.js:90:14
    at new Promise (<anonymous>)
    at Farm.doWork (D:\PublishSource\sample\node_modules\terser-webpack-plugin\node_modules\jest-worker\build\Farm.js:56:12)
    at JestWorker._callFunctionWithArgs (D:\PublishSource\sample\node_modules\terser-webpack-plugin\node_modules\jest-worker\build\index.js:178:23)
    at TaskRunner.runTask (D:\PublishSource\sample\node_modules\terser-webpack-plugin\dist\TaskRunner.js:41:26)
    at enqueue (D:\PublishSource\sample\node_modules\terser-webpack-plugin\dist\TaskRunner.js:80:35)
    at D:\PublishSource\sample\node_modules\terser-webpack-plugin\dist\TaskRunner.js:104:86
Emitted 'error' event on ChildProcess instance at:
    at internal/child_process.js:810:39
    at processTicksAndRejections (internal/process/task_queues.js:79:11) {
  errno: 'UNKNOWN',
  code: 'UNKNOWN',
  syscall: 'write'

1 Ответ

0 голосов
/ 12 апреля 2020

Произошла та же ошибка, попробовал еще раз без изменений и все заработало ...

...