Npm run build-dev-cordova-android --release not work

I have the same error, when run the command 'npm run build-prod-cordova-android --release , npm run build-prod-cordova-android , npm run build-prod-cordova-android – --release ’ , none of these commands worked for me it sends me error stacktrace.

I can only compile the application when I use the command ’ npm run build-dev-cordova-android ’ which is for development mode, but for release mode it gives me an error. any solution please?

My Pc.
npm -v 6.9.0
node -v v12.5.0
cordova -v 10.0.0
cordova platform android 9.0
f7 --version 3.4.5

i post issue in github
https://github.com/framework7io/framework7-cli/issues/103

mycomplete log:
powershell console
npm run build-prod-cordova-android

[email protected] build-prod-cordova-android C:\Users\Martin\Documents\f7 project\phoneclick
cross-env TARGET=cordova cross-env NODE_ENV=production node ./build/build.js && cd cordova && cordova build android

| building for production…
<— Last few GCs —>

[8528:000001EBC1D414E0] 218835 ms: Scavenge 465.4 (499.6) -> 453.6 (502.1) MB, 10.7 / 0.0 ms (average mu = 0.995, current mu = 0.971) allocation failure
[8528:000001EBC1D414E0] 219525 ms: Scavenge 468.4 (502.4) -> 456.4 (504.6) MB, 10.3 / 0.0 ms (average mu = 0.995, current mu = 0.971) allocation failure
[8528:000001EBC1D414E0] 219839 ms: Scavenge 472.6 (506.6) -> 459.4 (509.1) MB, 11.1 / 0.0 ms (average mu = 0.995, current mu = 0.971) allocation failure

<— JS stacktrace —>

==== JS stack trace =========================================

0: ExitFrame [pc: 00007FF7BB2B0B1D]
1: StubFrame [pc: 00007FF7BB225686]

Security context: 0x013354e00911
2: call [000001D9B8090571] [0x00688a3804d1 :13] [bytecode=000001047DCE7079 offset=32](this=0x03c03cf43fa9 ,0x03c03cf41659 <JSArray[6]>,0x03c03cf416d9 <JSArray[305]>)
3: _call(aka lazyCompileHook) [000002218710D3F9] [C:\Users\Martin\Documents\f7 project\phoneclick\node_m…

FATAL ERROR: Zone Allocation failed - process out of memory
1: 00007FF7BAA78CBF napi_wrap+121791
2: 00007FF7BAA220E6 v8::base::CPU::has_sse+34310
3: 00007FF7BAA22F86 v8::base::CPU::has_sse+38054
4: 00007FF7BB207E2E v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF7BB1F017A v8::SharedArrayBuffer::Externalize+842
6: 00007FF7BAD182AD v8::internal::Zone::NewExpand+205
7: 00007FF7BB53C204 v8::internal::compiler::Type::Range+132
8: 00007FF7BB53A78F v8::internal::compiler::Type::Intersect+495
9: 00007FF7BB6A9036 v8::internal::compiler::OperationTyper::TypeTypeGuard+54
10: 00007FF7BB686FE6 v8::internal::compiler::TypeNarrowingReducer::Reduce+358
11: 00007FF7BB57F78A v8::internal::compiler::TopLevelLiveRange::MayRequireSpillRange+7930
12: 00007FF7BB59C419 v8::internal::compiler::GraphReducer::Reduce+105
13: 00007FF7BB59C9E4 v8::internal::compiler::GraphReducer::ReduceTop+372
14: 00007FF7BB59C776 v8::internal::compiler::GraphReducer::ReduceNode+54
15: 00007FF7BB58091E v8::internal::compiler::SimplifiedOperatorReducer::ReplaceUint32+3566
16: 00007FF7BB57DEB1 v8::internal::compiler::TopLevelLiveRange::MayRequireSpillRange+1569
17: 00007FF7BB57A35B v8::internal::compiler::LiveRange::End+411
18: 00007FF7BB13CE87 v8::internal::Compiler::GetOptimizedCodeForOSR+1287
19: 00007FF7BB13C7E1 v8::internal::Compiler::GetFunctionFromString+2193
20: 00007FF7BB1398B3 v8::internal::Compiler::CompileOptimized+163
21: 00007FF7BAE6E727 v8::internal::interpreter::JumpTableTargetOffsets::iterator::operator=+115639
22: 00007FF7BB2B0B1D v8::internal::SetupIsolateDelegate::SetupHeap+614605
23: 00007FF7BB225686 v8::internal::SetupIsolateDelegate::SetupHeap+44086
24: 00007FF7BB224FCC v8::internal::SetupIsolateDelegate::SetupHeap+42364
25: 00007FF7BB224FCC v8::internal::SetupIsolateDelegate::SetupHeap+42364
26: 00007FF7BB21E35C v8::internal::SetupIsolateDelegate::SetupHeap+14604
27: 00007FF7BB224FCC v8::internal::SetupIsolateDelegate::SetupHeap+42364
28: 00007FF7BB224FCC v8::internal::SetupIsolateDelegate::SetupHeap+42364
29: 00007FF7BB21E35C v8::internal::SetupIsolateDelegate::SetupHeap+14604
30: 00007FF7BB224FCC v8::internal::SetupIsolateDelegate::SetupHeap+42364
31: 00007FF7BB21E35C v8::internal::SetupIsolateDelegate::SetupHeap+14604
32: 00007FF7BB2793D2 v8::internal::SetupIsolateDelegate::SetupHeap+387458
33: 00007FF7BB243FC2 v8::internal::SetupIsolateDelegate::SetupHeap+169330
34: 00007FF7BB2227EC v8::internal::SetupIsolateDelegate::SetupHeap+32156
35: 00007FF7BB0CD334 v8::internal::StackGuard::InitThread+1156
36: 00007FF7BB0CD443 v8::internal::StackGuard::InitThread+1427
37: 00007FF7BB0CDB12 v8::internal::Execution::TryCall+354
38: 00007FF7BAFA5E15 v8::internal::MicrotaskQueue::RunMicrotasks+517
39: 00007FF7BB225B9C v8::internal::SetupIsolateDelegate::SetupHeap+45388
40: 000003389A74AB54
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] build-prod-cordova-android: cross-env TARGET=cordova cross-env NODE_ENV=production node ./build/build.js && cd cordova && cordova build android
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the [email protected] build-prod-cordova-android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Martin\AppData\Roaming\npm-cache_logs\2020-11-13T18_21_43_290Z-debug.log

output error
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli ‘C:\laragon\bin\nodejs\node-v12\node.exe’,
1 verbose cli ‘C:\laragon\bin\nodejs\node-v12\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘build-prod-cordova-android’
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [
4 verbose run-script ‘prebuild-prod-cordova-android’,
4 verbose run-script ‘build-prod-cordova-android’,
4 verbose run-script ‘postbuild-prod-cordova-android’
4 verbose run-script ]
5 info lifecycle [email protected]~prebuild-prod-cordova-android: [email protected]
6 info lifecycle [email protected]~build-prod-cordova-android: [email protected]
7 verbose lifecycle [email protected]~build-prod-cordova-android: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build-prod-cordova-android: PATH: C:\laragon\bin\nodejs\node-v12\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Martin\Documents\f7 project\phoneclick\node_modules.bin;C:\Users\Martin\AppData\Local\Yarn\config\global\node_modules.bin;C:\Users\Martin\AppData\Roaming\npm;C:\Users\Martin\AppData\Roaming\Composer\vendor\bin;;C:\laragon\bin\laragon\utils;C:\laragon\bin\mysql\mysql-5.7.24-winx64\bin;C:\laragon\bin\php\php-7.2.19-Win32-VC15-x64;C:\laragon\bin\composer;C:\laragon\bin\apache\httpd-2.4.35-win64-VC15\bin;C:\laragon\bin\redis\redis-x64-3.2.100;C:\laragon\bin\nodejs\node-v12;C:\laragon\bin\nginx\nginx-1.16.0;C:\laragon\bin\notepad++;C:\laragon\bin\telnet;C:\laragon\bin\ngrok;C:\laragon\bin\git\bin;C:\laragon\bin\git\cmd;C:\laragon\bin\git\usr\bin;C:\laragon\bin\git\mingw64\bin;C:\laragon\bin;C:\laragon\usr\bin;C:\laragon\bin\putty;C:\laragon\bin\cmder\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\laragon\bin\nodejs\node-v12\node_modules\framework7-cli;C:\laragon\bin\composer;C:\laragon\bin\git\bin;C:\laragon\bin\nodejs\node-v12\node_modules\gulp\bin;C:\laragon\bin\nodejs\node-v12\node_modules\cordova\bin;C:\laragon\bin\php\php-7.2.19-Win32-VC15-x64;C:\Gradle\gradle-6.6.1\bin;C:\Program Files\Java\jdk1.8.0_261;C:\Program Files\Java\jre1.8.0_261;C:\Users\Martin\AppData\Local\Android\Sdk;C:\Users\Martin\AppData\Local\Android\Sdk\tools;C:\Users\Martin\AppData\Local\Android\Sdk\platform-tools;C:\Users\Martin\AppData\Local\Android\Sdk\build-tools\30.0.2;C:\Program Files\Java\jdk1.8.0_261\bin;C:\Program Files\Java\jre1.8.0_261\bin;C:\Users\Martin\AppData\Local\Microsoft\WindowsApps;C:\laragon\bin\php\php-7.2.19-Win32-VC15-x64;C:\Users\Martin\composer;C:\Users\Martin\AppData\Roaming\Composer\vendor\bin;C:\laragon\bin\nodejs\node-v12\node_modules\framework7-cli;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\laragon\bin\nodejs\node-v12;C:\laragon\bin\php\php-7.2.19-Win32-VC15-x64;C:\Program Files (x86)\Yarn\bin;C:\laragon\bin\nodejs\node-v12\node_modules\npm;C:\ProgramData\Oracle\Java;C:\Gradle\gradle-6.6.1\bin;C:\Users\Martin\AppData\Local\Android\Sdk\build-tools\30.0.2;C:\Users\Martin\AppData\Local\Android\Sdk\platform-tools;C:\Users\Martin\AppData\Local\Android\Sdk\tools;C:\Users\Martin\AppData\Local\Android\Sdk\emulator;C:\Users\Martin\AppData\Local\Android\Sdk;C:\Program Files\Java\jre1.8.0_261;C:\Program Files\Java\jdk1.8.0_261;C:\Program Files\Java\jre1.8.0_261\bin;C:\Program Files\Java\jdk1.8.0_261\bin;;C:\laragon\bin\git\usr\bin;C:\laragon\bin\git\usr\share\vim\vim74;C:\laragon\bin\cmder;
9 verbose lifecycle [email protected]~build-prod-cordova-android: CWD: C:\Users\Martin\Documents\f7 project\phoneclick
10 silly lifecycle [email protected]~build-prod-cordova-android: Args: [
10 silly lifecycle ‘/d /s /c’,
10 silly lifecycle ‘cross-env TARGET=cordova cross-env NODE_ENV=production node ./build/build.js && cd cordova && cordova build android’
10 silly lifecycle ]
11 silly lifecycle [email protected]~build-prod-cordova-android: Returned: code: 134 signal: null
12 info lifecycle [email protected]~build-prod-cordova-android: Failed to exec build-prod-cordova-android script
13 verbose stack Error: [email protected] build-prod-cordova-android: cross-env TARGET=cordova cross-env NODE_ENV=production node ./build/build.js && cd cordova && cordova build android
13 verbose stack Exit status 134
13 verbose stack at EventEmitter. (C:\laragon\bin\nodejs\node-v12\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:200:13)
13 verbose stack at ChildProcess. (C:\laragon\bin\nodejs\node-v12\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:200:13)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\Users\Martin\Documents\f7 project\phoneclick
16 verbose Windows_NT 10.0.18362
17 verbose argv “C:\laragon\bin\nodejs\node-v12\node.exe” “C:\laragon\bin\nodejs\node-v12\node_modules\npm\bin\npm-cli.js” “run” “build-prod-cordova-android”
18 verbose node v12.5.0
19 verbose npm v6.9.0
20 error code ELIFECYCLE
21 error errno 134
22 error [email protected] build-prod-cordova-android: cross-env TARGET=cordova cross-env NODE_ENV=production node ./build/build.js && cd cordova && cordova build android
22 error Exit status 134
23 error Failed at the [email protected] build-prod-cordova-android script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 134, true ]

SOLUTION IN THIS LINKS SOLVED BY MYSELF