JavaScript heap out of memory in Angular 7 using Azure DevOps
up vote
1
down vote
favorite
I am getting FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory after Angular 7.1 upgrade. The previous version 6.1 was working perfectly fine.
I get the error only in Azure DevOps while running ng build --prod
command. It builds perfectly fine in local.
Below are the detail logs. Any idea why I am getting this error?
2018-11-22T06:40:36.2804965Z ##[section]Starting: npm build
2018-11-22T06:40:36.2809301Z ==============================================================================
2018-11-22T06:40:36.2809365Z Task : npm
2018-11-22T06:40:36.2809456Z Description : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Package Management.
2018-11-22T06:40:36.2809496Z Version : 1.0.27
2018-11-22T06:40:36.2809531Z Author : Microsoft Corporation
2018-11-22T06:40:36.2809612Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613746)
2018-11-22T06:40:36.2809648Z ==============================================================================
2018-11-22T06:40:36.7158800Z SYSTEMVSSCONNECTION exists true
2018-11-22T06:40:36.8019327Z SYSTEMVSSCONNECTION exists true
2018-11-22T06:40:36.8872807Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" --version"
2018-11-22T06:40:37.5174051Z 6.4.1
2018-11-22T06:40:38.9461529Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" config list"
2018-11-22T06:40:39.5927698Z ; cli configs
2018-11-22T06:40:39.5928553Z metrics-registry = "https://registry.npmjs.org/"
2018-11-22T06:40:39.5929006Z scope = ""
2018-11-22T06:40:39.5929176Z user-agent = "npm/6.4.1 node/v8.12.0 win32 x64"
2018-11-22T06:40:39.5929292Z
2018-11-22T06:40:39.5929425Z ; environment configs
2018-11-22T06:40:39.5929577Z cache = "C:\npm\cache"
2018-11-22T06:40:39.5929756Z prefix = "C:\npm\prefix"
2018-11-22T06:40:39.5929899Z userconfig = "D:\a\1\npm\17729.npmrc"
2018-11-22T06:40:39.5930010Z
2018-11-22T06:40:39.5930159Z ; builtin config undefined
2018-11-22T06:40:39.5930270Z
2018-11-22T06:40:39.5930403Z ; node bin location = C:Program Filesnodejsnode.exe
2018-11-22T06:40:39.5930552Z ; cwd = D:a1sclient
2018-11-22T06:40:39.5930686Z ; HOME = C:UsersVssAdministrator
2018-11-22T06:40:39.5930817Z ; "npm config ls -l" to show all defaults.
2018-11-22T06:40:39.5930928Z
2018-11-22T06:40:39.5931996Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" run build"
2018-11-22T07:33:30.0639548Z FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
2018-11-22T07:33:30.0640628Z 1: node_module_register
2018-11-22T07:33:30.0640676Z 2: v8::internal::FatalProcessOutOfMemory
2018-11-22T07:33:30.0640710Z 3: v8::internal::FatalProcessOutOfMemory
2018-11-22T07:33:30.0640744Z 4: v8::internal::Factory::NewRawTwoByteString
2018-11-22T07:33:30.0640825Z 5: v8::internal::Smi::SmiPrint
2018-11-22T07:33:30.0640861Z 6: v8::internal::StackGuard::HandleInterrupts
2018-11-22T07:33:30.0640894Z 7: v8::internal::AsmJsScanner::IsNumberStart
2018-11-22T07:33:30.0640967Z 8: 000002B496D043C1
2018-11-22T07:33:30.0641001Z npm ERR! code ELIFECYCLE
2018-11-22T07:33:30.0641034Z npm ERR! errno 3
2018-11-22T07:33:30.0641210Z npm ERR! iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.0641470Z npm ERR! Exit status 3
2018-11-22T07:33:30.0641528Z npm ERR!
2018-11-22T07:33:30.0641569Z npm ERR! Failed at the iceux@0.0.1 build script.
2018-11-22T07:33:30.0641615Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2018-11-22T07:33:30.0641703Z
2018-11-22T07:33:30.0641749Z npm ERR! A complete log of this run can be found in:
2018-11-22T07:33:30.0641795Z npm ERR! C:npmcache_logs2018-11-22T07_33_30_018Z-debug.log
2018-11-22T07:33:30.0641823Z
2018-11-22T07:33:30.0641910Z > iceux@0.0.1 build D:a1sclient
2018-11-22T07:33:30.0641951Z > ng build --prod
2018-11-22T07:33:30.0641978Z
2018-11-22T07:33:30.1213960Z Found npm debug log, make sure the path matches with the one in npm's output: C:npmcache_logs2018-11-22T07_33_30_018Z-debug.log
2018-11-22T07:33:30.1214046Z 0 info it worked if it ends with ok
2018-11-22T07:33:30.1214104Z 1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
2018-11-22T07:33:30.1214189Z 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
2018-11-22T07:33:30.1215590Z 1 verbose cli 'run',
2018-11-22T07:33:30.1215635Z 1 verbose cli 'build' ]
2018-11-22T07:33:30.1215667Z 2 info using npm@6.4.1
2018-11-22T07:33:30.1215727Z 3 info using node@v8.12.0
2018-11-22T07:33:30.1215759Z 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
2018-11-22T07:33:30.1215801Z 5 info lifecycle iceux@0.0.1~prebuild: iceux@0.0.1
2018-11-22T07:33:30.1215835Z 6 info lifecycle iceux@0.0.1~build: iceux@0.0.1
2018-11-22T07:33:30.1216048Z 7 verbose lifecycle iceux@0.0.1~build: unsafe-perm in lifecycle true
2018-11-22T07:33:30.1216372Z 8 verbose lifecycle iceux@0.0.1~build: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;D:a1sclientnode_modules.bin;C:agents2.141.1externalsgitcmd;C:toolsmingw64bin;C:Program Filesdotnet;C:mysql-5.7.21-winx64bin;C:Program FilesJavajdk1.8.0_181bin;C:npmprefix;C:hostedtoolcachewindowsRuby2.5.0x64bin;C:Go1.11bin;C:Program FilesGitbin;C:Program FilesGitusrbin;C:Program FilesGitmingw64bin;C:Program Files (x86)Microsoft SDKsAzureCLI2wbin;C:Program Files (x86)Microsoft Visual StudioSharedPython36_64Scripts;C:Program Files (x86)Microsoft Visual StudioSharedPython36_64;C:Program FilesMicrosoft MPIBin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:ProgramDataChocolateybin;C:Program FilesDocker;C:Program Filesdotnet;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program Files (x86)Microsoft SQL Server110DTSBinn;C:Program Files (x86)Microsoft SQL Server120DTSBinn;C:Program Files (x86)Microsoft SQL Server130DTSBinn;C:Program Files (x86)Microsoft SQL Server140DTSBinn;C:Program FilesMicrosoft Service FabricbinFabricFabric.Code;C:Program FilesMicrosoft SDKsService FabricToolsServiceFabricLocalClusterManager;C:Program FilesGitcmd;C:Program Files (x86)Subversionbin;C:Program Filesnodejs;C:Program FilesCMakebin;C:UsersVssAdministratorAppDataLocalMicrosoftWindowsApps
2018-11-22T07:33:30.1216877Z 9 verbose lifecycle iceux@0.0.1~build: CWD: D:a1sclient
2018-11-22T07:33:30.1216979Z 10 silly lifecycle iceux@0.0.1~build: Args: [ '/d /s /c', 'ng build --prod' ]
2018-11-22T07:33:30.1217028Z 11 silly lifecycle iceux@0.0.1~build: Returned: code: 3 signal: null
2018-11-22T07:33:30.1217062Z 12 info lifecycle iceux@0.0.1~build: Failed to exec build script
2018-11-22T07:33:30.1217103Z 13 verbose stack Error: iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.1217135Z 13 verbose stack Exit status 3
2018-11-22T07:33:30.1217173Z 13 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:301:16)
2018-11-22T07:33:30.1217215Z 13 verbose stack at emitTwo (events.js:126:13)
2018-11-22T07:33:30.1217250Z 13 verbose stack at EventEmitter.emit (events.js:214:7)
2018-11-22T07:33:30.1217287Z 13 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
2018-11-22T07:33:30.1217332Z 13 verbose stack at emitTwo (events.js:126:13)
2018-11-22T07:33:30.1217381Z 13 verbose stack at ChildProcess.emit (events.js:214:7)
2018-11-22T07:33:30.1217413Z 13 verbose stack at maybeClose (internal/child_process.js:915:16)
2018-11-22T07:33:30.1217448Z 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
2018-11-22T07:33:30.1217488Z 14 verbose pkgid iceux@0.0.1
2018-11-22T07:33:30.1217521Z 15 verbose cwd D:a1sclient
2018-11-22T07:33:30.1217551Z 16 verbose Windows_NT 10.0.14393
2018-11-22T07:33:30.1217588Z 17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
2018-11-22T07:33:30.1217629Z 18 verbose node v8.12.0
2018-11-22T07:33:30.1217659Z 19 verbose npm v6.4.1
2018-11-22T07:33:30.1217690Z 20 error code ELIFECYCLE
2018-11-22T07:33:30.1217727Z 21 error errno 3
2018-11-22T07:33:30.1218070Z 22 error iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.1218102Z 22 error Exit status 3
2018-11-22T07:33:30.1218134Z 23 error Failed at the iceux@0.0.1 build script.
2018-11-22T07:33:30.1218187Z 23 error This is probably not a problem with npm. There is likely additional logging output above.
2018-11-22T07:33:30.1218220Z 24 verbose exit [ 3, true ]
2018-11-22T07:33:30.1218241Z
2018-11-22T07:33:30.1286371Z ##[error]Error: Npm failed with return code: 3
2018-11-22T07:33:30.1298403Z ##[section]Finishing: npm build
Package.json
{
"name": "iceux",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --ssl true",
"build": "ng build --prod",
"test": "ng test",
"testauto": "ng test --watch=false --browsers=ChromeHeadless --code-coverage",
"lint": "ng lint iceux --format stylish",
"pree2e": "webdriver-manager update",
"e2e": "ng e2e --dev-server-target=iceux:serve",
"e2e:fast": "ng e2e --configuration=fast",
"e2e:azure": "ng e2e --configuration=azure",
"e2e:perf": "ng e2e --configuration=perf"
},
"private": true,
"dependencies": {
"@angular/animations": "7.1.0",
"@angular/common": "7.1.0",
"@angular/compiler": "7.1.0",
"@angular/core": "7.1.0",
"@angular/forms": "7.1.0",
"@angular/http": "7.1.0",
"@angular/platform-browser": "7.1.0",
"@angular/platform-browser-dynamic": "7.1.0",
"@angular/router": "7.1.0",
"@epicor/kinetic": "^2.1.0-alpha.20",
"@ngrx/effects": "^6.1.0",
"@ngrx/entity": "^6.1.0",
"@ngrx/store": "^6.1.0",
"@ngrx/store-devtools": "^6.1.0",
"@progress/kendo-angular-inputs": "^3.1.3",
"@progress/kendo-angular-intl": "^1.4.1",
"@progress/kendo-angular-l10n": "^1.2.0",
"@progress/kendo-angular-layout": "^3.1.1",
"@progress/kendo-angular-menu": "^1.0.0",
"@progress/kendo-angular-toolbar": "^0.2.1",
"@progress/kendo-angular-treeview": "^2.2.0",
"@progress/kendo-theme-default": "latest",
"@telerik/kendo-intl": "^1.4.4",
"angular2-query-builder": "^0.3.3",
"core-js": "^2.5.5",
"json-logic-js": "^1.2.2",
"lodash": "^4.17.10",
"logrocket": "^0.6.17",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.10.0",
"@angular/cli": "7.0.6",
"@angular/compiler-cli": "7.1.0",
"@angular/language-service": "7.1.0",
"@ngrx/schematics": "^6.1.0",
"@types/jasmine": "^2.8.7",
"@types/jasminewd2": "~2.0.2",
"@types/lodash": "^4.14.108",
"@types/node": "~8.9.4",
"codelyzer": "^4.3.0",
"jasmine-core": "~2.99.1",
"jasmine-reporters": "^2.3.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.4.1",
"rxjs-tslint": "^0.1.5",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6"
}
}
angular npm azure-devops angular7
add a comment |
up vote
1
down vote
favorite
I am getting FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory after Angular 7.1 upgrade. The previous version 6.1 was working perfectly fine.
I get the error only in Azure DevOps while running ng build --prod
command. It builds perfectly fine in local.
Below are the detail logs. Any idea why I am getting this error?
2018-11-22T06:40:36.2804965Z ##[section]Starting: npm build
2018-11-22T06:40:36.2809301Z ==============================================================================
2018-11-22T06:40:36.2809365Z Task : npm
2018-11-22T06:40:36.2809456Z Description : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Package Management.
2018-11-22T06:40:36.2809496Z Version : 1.0.27
2018-11-22T06:40:36.2809531Z Author : Microsoft Corporation
2018-11-22T06:40:36.2809612Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613746)
2018-11-22T06:40:36.2809648Z ==============================================================================
2018-11-22T06:40:36.7158800Z SYSTEMVSSCONNECTION exists true
2018-11-22T06:40:36.8019327Z SYSTEMVSSCONNECTION exists true
2018-11-22T06:40:36.8872807Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" --version"
2018-11-22T06:40:37.5174051Z 6.4.1
2018-11-22T06:40:38.9461529Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" config list"
2018-11-22T06:40:39.5927698Z ; cli configs
2018-11-22T06:40:39.5928553Z metrics-registry = "https://registry.npmjs.org/"
2018-11-22T06:40:39.5929006Z scope = ""
2018-11-22T06:40:39.5929176Z user-agent = "npm/6.4.1 node/v8.12.0 win32 x64"
2018-11-22T06:40:39.5929292Z
2018-11-22T06:40:39.5929425Z ; environment configs
2018-11-22T06:40:39.5929577Z cache = "C:\npm\cache"
2018-11-22T06:40:39.5929756Z prefix = "C:\npm\prefix"
2018-11-22T06:40:39.5929899Z userconfig = "D:\a\1\npm\17729.npmrc"
2018-11-22T06:40:39.5930010Z
2018-11-22T06:40:39.5930159Z ; builtin config undefined
2018-11-22T06:40:39.5930270Z
2018-11-22T06:40:39.5930403Z ; node bin location = C:Program Filesnodejsnode.exe
2018-11-22T06:40:39.5930552Z ; cwd = D:a1sclient
2018-11-22T06:40:39.5930686Z ; HOME = C:UsersVssAdministrator
2018-11-22T06:40:39.5930817Z ; "npm config ls -l" to show all defaults.
2018-11-22T06:40:39.5930928Z
2018-11-22T06:40:39.5931996Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" run build"
2018-11-22T07:33:30.0639548Z FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
2018-11-22T07:33:30.0640628Z 1: node_module_register
2018-11-22T07:33:30.0640676Z 2: v8::internal::FatalProcessOutOfMemory
2018-11-22T07:33:30.0640710Z 3: v8::internal::FatalProcessOutOfMemory
2018-11-22T07:33:30.0640744Z 4: v8::internal::Factory::NewRawTwoByteString
2018-11-22T07:33:30.0640825Z 5: v8::internal::Smi::SmiPrint
2018-11-22T07:33:30.0640861Z 6: v8::internal::StackGuard::HandleInterrupts
2018-11-22T07:33:30.0640894Z 7: v8::internal::AsmJsScanner::IsNumberStart
2018-11-22T07:33:30.0640967Z 8: 000002B496D043C1
2018-11-22T07:33:30.0641001Z npm ERR! code ELIFECYCLE
2018-11-22T07:33:30.0641034Z npm ERR! errno 3
2018-11-22T07:33:30.0641210Z npm ERR! iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.0641470Z npm ERR! Exit status 3
2018-11-22T07:33:30.0641528Z npm ERR!
2018-11-22T07:33:30.0641569Z npm ERR! Failed at the iceux@0.0.1 build script.
2018-11-22T07:33:30.0641615Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2018-11-22T07:33:30.0641703Z
2018-11-22T07:33:30.0641749Z npm ERR! A complete log of this run can be found in:
2018-11-22T07:33:30.0641795Z npm ERR! C:npmcache_logs2018-11-22T07_33_30_018Z-debug.log
2018-11-22T07:33:30.0641823Z
2018-11-22T07:33:30.0641910Z > iceux@0.0.1 build D:a1sclient
2018-11-22T07:33:30.0641951Z > ng build --prod
2018-11-22T07:33:30.0641978Z
2018-11-22T07:33:30.1213960Z Found npm debug log, make sure the path matches with the one in npm's output: C:npmcache_logs2018-11-22T07_33_30_018Z-debug.log
2018-11-22T07:33:30.1214046Z 0 info it worked if it ends with ok
2018-11-22T07:33:30.1214104Z 1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
2018-11-22T07:33:30.1214189Z 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
2018-11-22T07:33:30.1215590Z 1 verbose cli 'run',
2018-11-22T07:33:30.1215635Z 1 verbose cli 'build' ]
2018-11-22T07:33:30.1215667Z 2 info using npm@6.4.1
2018-11-22T07:33:30.1215727Z 3 info using node@v8.12.0
2018-11-22T07:33:30.1215759Z 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
2018-11-22T07:33:30.1215801Z 5 info lifecycle iceux@0.0.1~prebuild: iceux@0.0.1
2018-11-22T07:33:30.1215835Z 6 info lifecycle iceux@0.0.1~build: iceux@0.0.1
2018-11-22T07:33:30.1216048Z 7 verbose lifecycle iceux@0.0.1~build: unsafe-perm in lifecycle true
2018-11-22T07:33:30.1216372Z 8 verbose lifecycle iceux@0.0.1~build: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;D:a1sclientnode_modules.bin;C:agents2.141.1externalsgitcmd;C:toolsmingw64bin;C:Program Filesdotnet;C:mysql-5.7.21-winx64bin;C:Program FilesJavajdk1.8.0_181bin;C:npmprefix;C:hostedtoolcachewindowsRuby2.5.0x64bin;C:Go1.11bin;C:Program FilesGitbin;C:Program FilesGitusrbin;C:Program FilesGitmingw64bin;C:Program Files (x86)Microsoft SDKsAzureCLI2wbin;C:Program Files (x86)Microsoft Visual StudioSharedPython36_64Scripts;C:Program Files (x86)Microsoft Visual StudioSharedPython36_64;C:Program FilesMicrosoft MPIBin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:ProgramDataChocolateybin;C:Program FilesDocker;C:Program Filesdotnet;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program Files (x86)Microsoft SQL Server110DTSBinn;C:Program Files (x86)Microsoft SQL Server120DTSBinn;C:Program Files (x86)Microsoft SQL Server130DTSBinn;C:Program Files (x86)Microsoft SQL Server140DTSBinn;C:Program FilesMicrosoft Service FabricbinFabricFabric.Code;C:Program FilesMicrosoft SDKsService FabricToolsServiceFabricLocalClusterManager;C:Program FilesGitcmd;C:Program Files (x86)Subversionbin;C:Program Filesnodejs;C:Program FilesCMakebin;C:UsersVssAdministratorAppDataLocalMicrosoftWindowsApps
2018-11-22T07:33:30.1216877Z 9 verbose lifecycle iceux@0.0.1~build: CWD: D:a1sclient
2018-11-22T07:33:30.1216979Z 10 silly lifecycle iceux@0.0.1~build: Args: [ '/d /s /c', 'ng build --prod' ]
2018-11-22T07:33:30.1217028Z 11 silly lifecycle iceux@0.0.1~build: Returned: code: 3 signal: null
2018-11-22T07:33:30.1217062Z 12 info lifecycle iceux@0.0.1~build: Failed to exec build script
2018-11-22T07:33:30.1217103Z 13 verbose stack Error: iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.1217135Z 13 verbose stack Exit status 3
2018-11-22T07:33:30.1217173Z 13 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:301:16)
2018-11-22T07:33:30.1217215Z 13 verbose stack at emitTwo (events.js:126:13)
2018-11-22T07:33:30.1217250Z 13 verbose stack at EventEmitter.emit (events.js:214:7)
2018-11-22T07:33:30.1217287Z 13 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
2018-11-22T07:33:30.1217332Z 13 verbose stack at emitTwo (events.js:126:13)
2018-11-22T07:33:30.1217381Z 13 verbose stack at ChildProcess.emit (events.js:214:7)
2018-11-22T07:33:30.1217413Z 13 verbose stack at maybeClose (internal/child_process.js:915:16)
2018-11-22T07:33:30.1217448Z 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
2018-11-22T07:33:30.1217488Z 14 verbose pkgid iceux@0.0.1
2018-11-22T07:33:30.1217521Z 15 verbose cwd D:a1sclient
2018-11-22T07:33:30.1217551Z 16 verbose Windows_NT 10.0.14393
2018-11-22T07:33:30.1217588Z 17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
2018-11-22T07:33:30.1217629Z 18 verbose node v8.12.0
2018-11-22T07:33:30.1217659Z 19 verbose npm v6.4.1
2018-11-22T07:33:30.1217690Z 20 error code ELIFECYCLE
2018-11-22T07:33:30.1217727Z 21 error errno 3
2018-11-22T07:33:30.1218070Z 22 error iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.1218102Z 22 error Exit status 3
2018-11-22T07:33:30.1218134Z 23 error Failed at the iceux@0.0.1 build script.
2018-11-22T07:33:30.1218187Z 23 error This is probably not a problem with npm. There is likely additional logging output above.
2018-11-22T07:33:30.1218220Z 24 verbose exit [ 3, true ]
2018-11-22T07:33:30.1218241Z
2018-11-22T07:33:30.1286371Z ##[error]Error: Npm failed with return code: 3
2018-11-22T07:33:30.1298403Z ##[section]Finishing: npm build
Package.json
{
"name": "iceux",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --ssl true",
"build": "ng build --prod",
"test": "ng test",
"testauto": "ng test --watch=false --browsers=ChromeHeadless --code-coverage",
"lint": "ng lint iceux --format stylish",
"pree2e": "webdriver-manager update",
"e2e": "ng e2e --dev-server-target=iceux:serve",
"e2e:fast": "ng e2e --configuration=fast",
"e2e:azure": "ng e2e --configuration=azure",
"e2e:perf": "ng e2e --configuration=perf"
},
"private": true,
"dependencies": {
"@angular/animations": "7.1.0",
"@angular/common": "7.1.0",
"@angular/compiler": "7.1.0",
"@angular/core": "7.1.0",
"@angular/forms": "7.1.0",
"@angular/http": "7.1.0",
"@angular/platform-browser": "7.1.0",
"@angular/platform-browser-dynamic": "7.1.0",
"@angular/router": "7.1.0",
"@epicor/kinetic": "^2.1.0-alpha.20",
"@ngrx/effects": "^6.1.0",
"@ngrx/entity": "^6.1.0",
"@ngrx/store": "^6.1.0",
"@ngrx/store-devtools": "^6.1.0",
"@progress/kendo-angular-inputs": "^3.1.3",
"@progress/kendo-angular-intl": "^1.4.1",
"@progress/kendo-angular-l10n": "^1.2.0",
"@progress/kendo-angular-layout": "^3.1.1",
"@progress/kendo-angular-menu": "^1.0.0",
"@progress/kendo-angular-toolbar": "^0.2.1",
"@progress/kendo-angular-treeview": "^2.2.0",
"@progress/kendo-theme-default": "latest",
"@telerik/kendo-intl": "^1.4.4",
"angular2-query-builder": "^0.3.3",
"core-js": "^2.5.5",
"json-logic-js": "^1.2.2",
"lodash": "^4.17.10",
"logrocket": "^0.6.17",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.10.0",
"@angular/cli": "7.0.6",
"@angular/compiler-cli": "7.1.0",
"@angular/language-service": "7.1.0",
"@ngrx/schematics": "^6.1.0",
"@types/jasmine": "^2.8.7",
"@types/jasminewd2": "~2.0.2",
"@types/lodash": "^4.14.108",
"@types/node": "~8.9.4",
"codelyzer": "^4.3.0",
"jasmine-core": "~2.99.1",
"jasmine-reporters": "^2.3.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.4.1",
"rxjs-tslint": "^0.1.5",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6"
}
}
angular npm azure-devops angular7
Also the webpack and it's config file. What is the version of Webpack and middleware ?
– Niladri
Nov 22 at 17:18
Can you share the package.json file ? I was also facing the same issue, I have resolved it yesterday
– Niladri
Nov 22 at 17:23
I have added package.json file. I am not using any extra webpack configuration, apart from what Angular uses.
– Abhishek
Nov 23 at 0:05
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am getting FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory after Angular 7.1 upgrade. The previous version 6.1 was working perfectly fine.
I get the error only in Azure DevOps while running ng build --prod
command. It builds perfectly fine in local.
Below are the detail logs. Any idea why I am getting this error?
2018-11-22T06:40:36.2804965Z ##[section]Starting: npm build
2018-11-22T06:40:36.2809301Z ==============================================================================
2018-11-22T06:40:36.2809365Z Task : npm
2018-11-22T06:40:36.2809456Z Description : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Package Management.
2018-11-22T06:40:36.2809496Z Version : 1.0.27
2018-11-22T06:40:36.2809531Z Author : Microsoft Corporation
2018-11-22T06:40:36.2809612Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613746)
2018-11-22T06:40:36.2809648Z ==============================================================================
2018-11-22T06:40:36.7158800Z SYSTEMVSSCONNECTION exists true
2018-11-22T06:40:36.8019327Z SYSTEMVSSCONNECTION exists true
2018-11-22T06:40:36.8872807Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" --version"
2018-11-22T06:40:37.5174051Z 6.4.1
2018-11-22T06:40:38.9461529Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" config list"
2018-11-22T06:40:39.5927698Z ; cli configs
2018-11-22T06:40:39.5928553Z metrics-registry = "https://registry.npmjs.org/"
2018-11-22T06:40:39.5929006Z scope = ""
2018-11-22T06:40:39.5929176Z user-agent = "npm/6.4.1 node/v8.12.0 win32 x64"
2018-11-22T06:40:39.5929292Z
2018-11-22T06:40:39.5929425Z ; environment configs
2018-11-22T06:40:39.5929577Z cache = "C:\npm\cache"
2018-11-22T06:40:39.5929756Z prefix = "C:\npm\prefix"
2018-11-22T06:40:39.5929899Z userconfig = "D:\a\1\npm\17729.npmrc"
2018-11-22T06:40:39.5930010Z
2018-11-22T06:40:39.5930159Z ; builtin config undefined
2018-11-22T06:40:39.5930270Z
2018-11-22T06:40:39.5930403Z ; node bin location = C:Program Filesnodejsnode.exe
2018-11-22T06:40:39.5930552Z ; cwd = D:a1sclient
2018-11-22T06:40:39.5930686Z ; HOME = C:UsersVssAdministrator
2018-11-22T06:40:39.5930817Z ; "npm config ls -l" to show all defaults.
2018-11-22T06:40:39.5930928Z
2018-11-22T06:40:39.5931996Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" run build"
2018-11-22T07:33:30.0639548Z FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
2018-11-22T07:33:30.0640628Z 1: node_module_register
2018-11-22T07:33:30.0640676Z 2: v8::internal::FatalProcessOutOfMemory
2018-11-22T07:33:30.0640710Z 3: v8::internal::FatalProcessOutOfMemory
2018-11-22T07:33:30.0640744Z 4: v8::internal::Factory::NewRawTwoByteString
2018-11-22T07:33:30.0640825Z 5: v8::internal::Smi::SmiPrint
2018-11-22T07:33:30.0640861Z 6: v8::internal::StackGuard::HandleInterrupts
2018-11-22T07:33:30.0640894Z 7: v8::internal::AsmJsScanner::IsNumberStart
2018-11-22T07:33:30.0640967Z 8: 000002B496D043C1
2018-11-22T07:33:30.0641001Z npm ERR! code ELIFECYCLE
2018-11-22T07:33:30.0641034Z npm ERR! errno 3
2018-11-22T07:33:30.0641210Z npm ERR! iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.0641470Z npm ERR! Exit status 3
2018-11-22T07:33:30.0641528Z npm ERR!
2018-11-22T07:33:30.0641569Z npm ERR! Failed at the iceux@0.0.1 build script.
2018-11-22T07:33:30.0641615Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2018-11-22T07:33:30.0641703Z
2018-11-22T07:33:30.0641749Z npm ERR! A complete log of this run can be found in:
2018-11-22T07:33:30.0641795Z npm ERR! C:npmcache_logs2018-11-22T07_33_30_018Z-debug.log
2018-11-22T07:33:30.0641823Z
2018-11-22T07:33:30.0641910Z > iceux@0.0.1 build D:a1sclient
2018-11-22T07:33:30.0641951Z > ng build --prod
2018-11-22T07:33:30.0641978Z
2018-11-22T07:33:30.1213960Z Found npm debug log, make sure the path matches with the one in npm's output: C:npmcache_logs2018-11-22T07_33_30_018Z-debug.log
2018-11-22T07:33:30.1214046Z 0 info it worked if it ends with ok
2018-11-22T07:33:30.1214104Z 1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
2018-11-22T07:33:30.1214189Z 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
2018-11-22T07:33:30.1215590Z 1 verbose cli 'run',
2018-11-22T07:33:30.1215635Z 1 verbose cli 'build' ]
2018-11-22T07:33:30.1215667Z 2 info using npm@6.4.1
2018-11-22T07:33:30.1215727Z 3 info using node@v8.12.0
2018-11-22T07:33:30.1215759Z 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
2018-11-22T07:33:30.1215801Z 5 info lifecycle iceux@0.0.1~prebuild: iceux@0.0.1
2018-11-22T07:33:30.1215835Z 6 info lifecycle iceux@0.0.1~build: iceux@0.0.1
2018-11-22T07:33:30.1216048Z 7 verbose lifecycle iceux@0.0.1~build: unsafe-perm in lifecycle true
2018-11-22T07:33:30.1216372Z 8 verbose lifecycle iceux@0.0.1~build: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;D:a1sclientnode_modules.bin;C:agents2.141.1externalsgitcmd;C:toolsmingw64bin;C:Program Filesdotnet;C:mysql-5.7.21-winx64bin;C:Program FilesJavajdk1.8.0_181bin;C:npmprefix;C:hostedtoolcachewindowsRuby2.5.0x64bin;C:Go1.11bin;C:Program FilesGitbin;C:Program FilesGitusrbin;C:Program FilesGitmingw64bin;C:Program Files (x86)Microsoft SDKsAzureCLI2wbin;C:Program Files (x86)Microsoft Visual StudioSharedPython36_64Scripts;C:Program Files (x86)Microsoft Visual StudioSharedPython36_64;C:Program FilesMicrosoft MPIBin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:ProgramDataChocolateybin;C:Program FilesDocker;C:Program Filesdotnet;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program Files (x86)Microsoft SQL Server110DTSBinn;C:Program Files (x86)Microsoft SQL Server120DTSBinn;C:Program Files (x86)Microsoft SQL Server130DTSBinn;C:Program Files (x86)Microsoft SQL Server140DTSBinn;C:Program FilesMicrosoft Service FabricbinFabricFabric.Code;C:Program FilesMicrosoft SDKsService FabricToolsServiceFabricLocalClusterManager;C:Program FilesGitcmd;C:Program Files (x86)Subversionbin;C:Program Filesnodejs;C:Program FilesCMakebin;C:UsersVssAdministratorAppDataLocalMicrosoftWindowsApps
2018-11-22T07:33:30.1216877Z 9 verbose lifecycle iceux@0.0.1~build: CWD: D:a1sclient
2018-11-22T07:33:30.1216979Z 10 silly lifecycle iceux@0.0.1~build: Args: [ '/d /s /c', 'ng build --prod' ]
2018-11-22T07:33:30.1217028Z 11 silly lifecycle iceux@0.0.1~build: Returned: code: 3 signal: null
2018-11-22T07:33:30.1217062Z 12 info lifecycle iceux@0.0.1~build: Failed to exec build script
2018-11-22T07:33:30.1217103Z 13 verbose stack Error: iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.1217135Z 13 verbose stack Exit status 3
2018-11-22T07:33:30.1217173Z 13 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:301:16)
2018-11-22T07:33:30.1217215Z 13 verbose stack at emitTwo (events.js:126:13)
2018-11-22T07:33:30.1217250Z 13 verbose stack at EventEmitter.emit (events.js:214:7)
2018-11-22T07:33:30.1217287Z 13 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
2018-11-22T07:33:30.1217332Z 13 verbose stack at emitTwo (events.js:126:13)
2018-11-22T07:33:30.1217381Z 13 verbose stack at ChildProcess.emit (events.js:214:7)
2018-11-22T07:33:30.1217413Z 13 verbose stack at maybeClose (internal/child_process.js:915:16)
2018-11-22T07:33:30.1217448Z 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
2018-11-22T07:33:30.1217488Z 14 verbose pkgid iceux@0.0.1
2018-11-22T07:33:30.1217521Z 15 verbose cwd D:a1sclient
2018-11-22T07:33:30.1217551Z 16 verbose Windows_NT 10.0.14393
2018-11-22T07:33:30.1217588Z 17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
2018-11-22T07:33:30.1217629Z 18 verbose node v8.12.0
2018-11-22T07:33:30.1217659Z 19 verbose npm v6.4.1
2018-11-22T07:33:30.1217690Z 20 error code ELIFECYCLE
2018-11-22T07:33:30.1217727Z 21 error errno 3
2018-11-22T07:33:30.1218070Z 22 error iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.1218102Z 22 error Exit status 3
2018-11-22T07:33:30.1218134Z 23 error Failed at the iceux@0.0.1 build script.
2018-11-22T07:33:30.1218187Z 23 error This is probably not a problem with npm. There is likely additional logging output above.
2018-11-22T07:33:30.1218220Z 24 verbose exit [ 3, true ]
2018-11-22T07:33:30.1218241Z
2018-11-22T07:33:30.1286371Z ##[error]Error: Npm failed with return code: 3
2018-11-22T07:33:30.1298403Z ##[section]Finishing: npm build
Package.json
{
"name": "iceux",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --ssl true",
"build": "ng build --prod",
"test": "ng test",
"testauto": "ng test --watch=false --browsers=ChromeHeadless --code-coverage",
"lint": "ng lint iceux --format stylish",
"pree2e": "webdriver-manager update",
"e2e": "ng e2e --dev-server-target=iceux:serve",
"e2e:fast": "ng e2e --configuration=fast",
"e2e:azure": "ng e2e --configuration=azure",
"e2e:perf": "ng e2e --configuration=perf"
},
"private": true,
"dependencies": {
"@angular/animations": "7.1.0",
"@angular/common": "7.1.0",
"@angular/compiler": "7.1.0",
"@angular/core": "7.1.0",
"@angular/forms": "7.1.0",
"@angular/http": "7.1.0",
"@angular/platform-browser": "7.1.0",
"@angular/platform-browser-dynamic": "7.1.0",
"@angular/router": "7.1.0",
"@epicor/kinetic": "^2.1.0-alpha.20",
"@ngrx/effects": "^6.1.0",
"@ngrx/entity": "^6.1.0",
"@ngrx/store": "^6.1.0",
"@ngrx/store-devtools": "^6.1.0",
"@progress/kendo-angular-inputs": "^3.1.3",
"@progress/kendo-angular-intl": "^1.4.1",
"@progress/kendo-angular-l10n": "^1.2.0",
"@progress/kendo-angular-layout": "^3.1.1",
"@progress/kendo-angular-menu": "^1.0.0",
"@progress/kendo-angular-toolbar": "^0.2.1",
"@progress/kendo-angular-treeview": "^2.2.0",
"@progress/kendo-theme-default": "latest",
"@telerik/kendo-intl": "^1.4.4",
"angular2-query-builder": "^0.3.3",
"core-js": "^2.5.5",
"json-logic-js": "^1.2.2",
"lodash": "^4.17.10",
"logrocket": "^0.6.17",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.10.0",
"@angular/cli": "7.0.6",
"@angular/compiler-cli": "7.1.0",
"@angular/language-service": "7.1.0",
"@ngrx/schematics": "^6.1.0",
"@types/jasmine": "^2.8.7",
"@types/jasminewd2": "~2.0.2",
"@types/lodash": "^4.14.108",
"@types/node": "~8.9.4",
"codelyzer": "^4.3.0",
"jasmine-core": "~2.99.1",
"jasmine-reporters": "^2.3.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.4.1",
"rxjs-tslint": "^0.1.5",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6"
}
}
angular npm azure-devops angular7
I am getting FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory after Angular 7.1 upgrade. The previous version 6.1 was working perfectly fine.
I get the error only in Azure DevOps while running ng build --prod
command. It builds perfectly fine in local.
Below are the detail logs. Any idea why I am getting this error?
2018-11-22T06:40:36.2804965Z ##[section]Starting: npm build
2018-11-22T06:40:36.2809301Z ==============================================================================
2018-11-22T06:40:36.2809365Z Task : npm
2018-11-22T06:40:36.2809456Z Description : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Package Management.
2018-11-22T06:40:36.2809496Z Version : 1.0.27
2018-11-22T06:40:36.2809531Z Author : Microsoft Corporation
2018-11-22T06:40:36.2809612Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613746)
2018-11-22T06:40:36.2809648Z ==============================================================================
2018-11-22T06:40:36.7158800Z SYSTEMVSSCONNECTION exists true
2018-11-22T06:40:36.8019327Z SYSTEMVSSCONNECTION exists true
2018-11-22T06:40:36.8872807Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" --version"
2018-11-22T06:40:37.5174051Z 6.4.1
2018-11-22T06:40:38.9461529Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" config list"
2018-11-22T06:40:39.5927698Z ; cli configs
2018-11-22T06:40:39.5928553Z metrics-registry = "https://registry.npmjs.org/"
2018-11-22T06:40:39.5929006Z scope = ""
2018-11-22T06:40:39.5929176Z user-agent = "npm/6.4.1 node/v8.12.0 win32 x64"
2018-11-22T06:40:39.5929292Z
2018-11-22T06:40:39.5929425Z ; environment configs
2018-11-22T06:40:39.5929577Z cache = "C:\npm\cache"
2018-11-22T06:40:39.5929756Z prefix = "C:\npm\prefix"
2018-11-22T06:40:39.5929899Z userconfig = "D:\a\1\npm\17729.npmrc"
2018-11-22T06:40:39.5930010Z
2018-11-22T06:40:39.5930159Z ; builtin config undefined
2018-11-22T06:40:39.5930270Z
2018-11-22T06:40:39.5930403Z ; node bin location = C:Program Filesnodejsnode.exe
2018-11-22T06:40:39.5930552Z ; cwd = D:a1sclient
2018-11-22T06:40:39.5930686Z ; HOME = C:UsersVssAdministrator
2018-11-22T06:40:39.5930817Z ; "npm config ls -l" to show all defaults.
2018-11-22T06:40:39.5930928Z
2018-11-22T06:40:39.5931996Z [command]C:Windowssystem32cmd.exe /D /S /C ""C:Program Filesnodejsnpm.cmd" run build"
2018-11-22T07:33:30.0639548Z FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
2018-11-22T07:33:30.0640628Z 1: node_module_register
2018-11-22T07:33:30.0640676Z 2: v8::internal::FatalProcessOutOfMemory
2018-11-22T07:33:30.0640710Z 3: v8::internal::FatalProcessOutOfMemory
2018-11-22T07:33:30.0640744Z 4: v8::internal::Factory::NewRawTwoByteString
2018-11-22T07:33:30.0640825Z 5: v8::internal::Smi::SmiPrint
2018-11-22T07:33:30.0640861Z 6: v8::internal::StackGuard::HandleInterrupts
2018-11-22T07:33:30.0640894Z 7: v8::internal::AsmJsScanner::IsNumberStart
2018-11-22T07:33:30.0640967Z 8: 000002B496D043C1
2018-11-22T07:33:30.0641001Z npm ERR! code ELIFECYCLE
2018-11-22T07:33:30.0641034Z npm ERR! errno 3
2018-11-22T07:33:30.0641210Z npm ERR! iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.0641470Z npm ERR! Exit status 3
2018-11-22T07:33:30.0641528Z npm ERR!
2018-11-22T07:33:30.0641569Z npm ERR! Failed at the iceux@0.0.1 build script.
2018-11-22T07:33:30.0641615Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2018-11-22T07:33:30.0641703Z
2018-11-22T07:33:30.0641749Z npm ERR! A complete log of this run can be found in:
2018-11-22T07:33:30.0641795Z npm ERR! C:npmcache_logs2018-11-22T07_33_30_018Z-debug.log
2018-11-22T07:33:30.0641823Z
2018-11-22T07:33:30.0641910Z > iceux@0.0.1 build D:a1sclient
2018-11-22T07:33:30.0641951Z > ng build --prod
2018-11-22T07:33:30.0641978Z
2018-11-22T07:33:30.1213960Z Found npm debug log, make sure the path matches with the one in npm's output: C:npmcache_logs2018-11-22T07_33_30_018Z-debug.log
2018-11-22T07:33:30.1214046Z 0 info it worked if it ends with ok
2018-11-22T07:33:30.1214104Z 1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
2018-11-22T07:33:30.1214189Z 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
2018-11-22T07:33:30.1215590Z 1 verbose cli 'run',
2018-11-22T07:33:30.1215635Z 1 verbose cli 'build' ]
2018-11-22T07:33:30.1215667Z 2 info using npm@6.4.1
2018-11-22T07:33:30.1215727Z 3 info using node@v8.12.0
2018-11-22T07:33:30.1215759Z 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
2018-11-22T07:33:30.1215801Z 5 info lifecycle iceux@0.0.1~prebuild: iceux@0.0.1
2018-11-22T07:33:30.1215835Z 6 info lifecycle iceux@0.0.1~build: iceux@0.0.1
2018-11-22T07:33:30.1216048Z 7 verbose lifecycle iceux@0.0.1~build: unsafe-perm in lifecycle true
2018-11-22T07:33:30.1216372Z 8 verbose lifecycle iceux@0.0.1~build: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;D:a1sclientnode_modules.bin;C:agents2.141.1externalsgitcmd;C:toolsmingw64bin;C:Program Filesdotnet;C:mysql-5.7.21-winx64bin;C:Program FilesJavajdk1.8.0_181bin;C:npmprefix;C:hostedtoolcachewindowsRuby2.5.0x64bin;C:Go1.11bin;C:Program FilesGitbin;C:Program FilesGitusrbin;C:Program FilesGitmingw64bin;C:Program Files (x86)Microsoft SDKsAzureCLI2wbin;C:Program Files (x86)Microsoft Visual StudioSharedPython36_64Scripts;C:Program Files (x86)Microsoft Visual StudioSharedPython36_64;C:Program FilesMicrosoft MPIBin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:ProgramDataChocolateybin;C:Program FilesDocker;C:Program Filesdotnet;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program Files (x86)Microsoft SQL Server110DTSBinn;C:Program Files (x86)Microsoft SQL Server120DTSBinn;C:Program Files (x86)Microsoft SQL Server130DTSBinn;C:Program Files (x86)Microsoft SQL Server140DTSBinn;C:Program FilesMicrosoft Service FabricbinFabricFabric.Code;C:Program FilesMicrosoft SDKsService FabricToolsServiceFabricLocalClusterManager;C:Program FilesGitcmd;C:Program Files (x86)Subversionbin;C:Program Filesnodejs;C:Program FilesCMakebin;C:UsersVssAdministratorAppDataLocalMicrosoftWindowsApps
2018-11-22T07:33:30.1216877Z 9 verbose lifecycle iceux@0.0.1~build: CWD: D:a1sclient
2018-11-22T07:33:30.1216979Z 10 silly lifecycle iceux@0.0.1~build: Args: [ '/d /s /c', 'ng build --prod' ]
2018-11-22T07:33:30.1217028Z 11 silly lifecycle iceux@0.0.1~build: Returned: code: 3 signal: null
2018-11-22T07:33:30.1217062Z 12 info lifecycle iceux@0.0.1~build: Failed to exec build script
2018-11-22T07:33:30.1217103Z 13 verbose stack Error: iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.1217135Z 13 verbose stack Exit status 3
2018-11-22T07:33:30.1217173Z 13 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:301:16)
2018-11-22T07:33:30.1217215Z 13 verbose stack at emitTwo (events.js:126:13)
2018-11-22T07:33:30.1217250Z 13 verbose stack at EventEmitter.emit (events.js:214:7)
2018-11-22T07:33:30.1217287Z 13 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
2018-11-22T07:33:30.1217332Z 13 verbose stack at emitTwo (events.js:126:13)
2018-11-22T07:33:30.1217381Z 13 verbose stack at ChildProcess.emit (events.js:214:7)
2018-11-22T07:33:30.1217413Z 13 verbose stack at maybeClose (internal/child_process.js:915:16)
2018-11-22T07:33:30.1217448Z 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
2018-11-22T07:33:30.1217488Z 14 verbose pkgid iceux@0.0.1
2018-11-22T07:33:30.1217521Z 15 verbose cwd D:a1sclient
2018-11-22T07:33:30.1217551Z 16 verbose Windows_NT 10.0.14393
2018-11-22T07:33:30.1217588Z 17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
2018-11-22T07:33:30.1217629Z 18 verbose node v8.12.0
2018-11-22T07:33:30.1217659Z 19 verbose npm v6.4.1
2018-11-22T07:33:30.1217690Z 20 error code ELIFECYCLE
2018-11-22T07:33:30.1217727Z 21 error errno 3
2018-11-22T07:33:30.1218070Z 22 error iceux@0.0.1 build: `ng build --prod`
2018-11-22T07:33:30.1218102Z 22 error Exit status 3
2018-11-22T07:33:30.1218134Z 23 error Failed at the iceux@0.0.1 build script.
2018-11-22T07:33:30.1218187Z 23 error This is probably not a problem with npm. There is likely additional logging output above.
2018-11-22T07:33:30.1218220Z 24 verbose exit [ 3, true ]
2018-11-22T07:33:30.1218241Z
2018-11-22T07:33:30.1286371Z ##[error]Error: Npm failed with return code: 3
2018-11-22T07:33:30.1298403Z ##[section]Finishing: npm build
Package.json
{
"name": "iceux",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --ssl true",
"build": "ng build --prod",
"test": "ng test",
"testauto": "ng test --watch=false --browsers=ChromeHeadless --code-coverage",
"lint": "ng lint iceux --format stylish",
"pree2e": "webdriver-manager update",
"e2e": "ng e2e --dev-server-target=iceux:serve",
"e2e:fast": "ng e2e --configuration=fast",
"e2e:azure": "ng e2e --configuration=azure",
"e2e:perf": "ng e2e --configuration=perf"
},
"private": true,
"dependencies": {
"@angular/animations": "7.1.0",
"@angular/common": "7.1.0",
"@angular/compiler": "7.1.0",
"@angular/core": "7.1.0",
"@angular/forms": "7.1.0",
"@angular/http": "7.1.0",
"@angular/platform-browser": "7.1.0",
"@angular/platform-browser-dynamic": "7.1.0",
"@angular/router": "7.1.0",
"@epicor/kinetic": "^2.1.0-alpha.20",
"@ngrx/effects": "^6.1.0",
"@ngrx/entity": "^6.1.0",
"@ngrx/store": "^6.1.0",
"@ngrx/store-devtools": "^6.1.0",
"@progress/kendo-angular-inputs": "^3.1.3",
"@progress/kendo-angular-intl": "^1.4.1",
"@progress/kendo-angular-l10n": "^1.2.0",
"@progress/kendo-angular-layout": "^3.1.1",
"@progress/kendo-angular-menu": "^1.0.0",
"@progress/kendo-angular-toolbar": "^0.2.1",
"@progress/kendo-angular-treeview": "^2.2.0",
"@progress/kendo-theme-default": "latest",
"@telerik/kendo-intl": "^1.4.4",
"angular2-query-builder": "^0.3.3",
"core-js": "^2.5.5",
"json-logic-js": "^1.2.2",
"lodash": "^4.17.10",
"logrocket": "^0.6.17",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.10.0",
"@angular/cli": "7.0.6",
"@angular/compiler-cli": "7.1.0",
"@angular/language-service": "7.1.0",
"@ngrx/schematics": "^6.1.0",
"@types/jasmine": "^2.8.7",
"@types/jasminewd2": "~2.0.2",
"@types/lodash": "^4.14.108",
"@types/node": "~8.9.4",
"codelyzer": "^4.3.0",
"jasmine-core": "~2.99.1",
"jasmine-reporters": "^2.3.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.4.1",
"rxjs-tslint": "^0.1.5",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6"
}
}
angular npm azure-devops angular7
angular npm azure-devops angular7
edited Dec 2 at 13:22
Goncalo Peres
1,3111314
1,3111314
asked Nov 22 at 17:02
Abhishek
326
326
Also the webpack and it's config file. What is the version of Webpack and middleware ?
– Niladri
Nov 22 at 17:18
Can you share the package.json file ? I was also facing the same issue, I have resolved it yesterday
– Niladri
Nov 22 at 17:23
I have added package.json file. I am not using any extra webpack configuration, apart from what Angular uses.
– Abhishek
Nov 23 at 0:05
add a comment |
Also the webpack and it's config file. What is the version of Webpack and middleware ?
– Niladri
Nov 22 at 17:18
Can you share the package.json file ? I was also facing the same issue, I have resolved it yesterday
– Niladri
Nov 22 at 17:23
I have added package.json file. I am not using any extra webpack configuration, apart from what Angular uses.
– Abhishek
Nov 23 at 0:05
Also the webpack and it's config file. What is the version of Webpack and middleware ?
– Niladri
Nov 22 at 17:18
Also the webpack and it's config file. What is the version of Webpack and middleware ?
– Niladri
Nov 22 at 17:18
Can you share the package.json file ? I was also facing the same issue, I have resolved it yesterday
– Niladri
Nov 22 at 17:23
Can you share the package.json file ? I was also facing the same issue, I have resolved it yesterday
– Niladri
Nov 22 at 17:23
I have added package.json file. I am not using any extra webpack configuration, apart from what Angular uses.
– Abhishek
Nov 23 at 0:05
I have added package.json file. I am not using any extra webpack configuration, apart from what Angular uses.
– Abhishek
Nov 23 at 0:05
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Try to run prod build like this:
node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod
I have the same error yesterday and it's helps me to avoid it.
yes ...that's the answer . it's suddenly happening since last few days in pipeline
– Niladri
Nov 23 at 4:53
However in my case--max_old_space_size=4096
worked
– Niladri
Nov 23 at 4:54
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53435533%2fjavascript-heap-out-of-memory-in-angular-7-using-azure-devops%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Try to run prod build like this:
node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod
I have the same error yesterday and it's helps me to avoid it.
yes ...that's the answer . it's suddenly happening since last few days in pipeline
– Niladri
Nov 23 at 4:53
However in my case--max_old_space_size=4096
worked
– Niladri
Nov 23 at 4:54
add a comment |
up vote
2
down vote
accepted
Try to run prod build like this:
node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod
I have the same error yesterday and it's helps me to avoid it.
yes ...that's the answer . it's suddenly happening since last few days in pipeline
– Niladri
Nov 23 at 4:53
However in my case--max_old_space_size=4096
worked
– Niladri
Nov 23 at 4:54
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Try to run prod build like this:
node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod
I have the same error yesterday and it's helps me to avoid it.
Try to run prod build like this:
node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod
I have the same error yesterday and it's helps me to avoid it.
answered Nov 23 at 0:09
iliya.rudberg
118111
118111
yes ...that's the answer . it's suddenly happening since last few days in pipeline
– Niladri
Nov 23 at 4:53
However in my case--max_old_space_size=4096
worked
– Niladri
Nov 23 at 4:54
add a comment |
yes ...that's the answer . it's suddenly happening since last few days in pipeline
– Niladri
Nov 23 at 4:53
However in my case--max_old_space_size=4096
worked
– Niladri
Nov 23 at 4:54
yes ...that's the answer . it's suddenly happening since last few days in pipeline
– Niladri
Nov 23 at 4:53
yes ...that's the answer . it's suddenly happening since last few days in pipeline
– Niladri
Nov 23 at 4:53
However in my case
--max_old_space_size=4096
worked– Niladri
Nov 23 at 4:54
However in my case
--max_old_space_size=4096
worked– Niladri
Nov 23 at 4:54
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53435533%2fjavascript-heap-out-of-memory-in-angular-7-using-azure-devops%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Also the webpack and it's config file. What is the version of Webpack and middleware ?
– Niladri
Nov 22 at 17:18
Can you share the package.json file ? I was also facing the same issue, I have resolved it yesterday
– Niladri
Nov 22 at 17:23
I have added package.json file. I am not using any extra webpack configuration, apart from what Angular uses.
– Abhishek
Nov 23 at 0:05