angular8 编译报错 Error: Call retries were exceeded at ChildProcessWorker.initialize,具体如下:
Angular CLI版本: 8.3.21
[error] Error: Call retries were exceeded
at ChildProcessWorker.initialize (/data/html/boboJavaBlog/toolsWeb/node_modules/jest-worker/build/workers/ChildProcessWorker.js:193:21)
at ChildProcessWorker.onExit (/data/html/boboJavaBlog/toolsWeb/node_modules/jest-worker/build/workers/ChildProcessWorker.js:263:12)
at ChildProcess.emit (events.js:189:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
解决办法
tsconfig.json中的target从es2015改为es5
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}