cancel
Showing results for 
Search instead for 
Did you mean: 

Error with packaging MTA archive

658

I cannot generate an MTA archive in step 4 at https://developers.sap.com/tutorials/cp-cf-sapui5-local.html

This is the error log:

View Entire Topic
iamvivekrk
Participant
0 Kudos

Hello Lily,

Would you be able to share the debug.log file for reference ? Was able to achieve the same tutorial from my CF, let me see how can I be of help here. TIA.

0 Kudos

Hi Vivek,

This is the log and the error starts with line 20.

note: I am not a developer, but I want to practice and achieve the result as expected.

0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build:cf' ] 2 info using npm@6.9.0 3 info using node@v10.16.3 4 verbose run-script [ 'prebuild:cf', 'build:cf', 'postbuild:cf' ] 5 info lifecycle myUI5App@0.0.1~prebuild:cf: myUI5App@0.0.1 6 info lifecycle myUI5App@0.0.1~build:cf: myUI5App@0.0.1 7 verbose lifecycle myUI5App@0.0.1~build:cf: unsafe-perm in lifecycle true 8 verbose lifecycle myUI5App@0.0.1~build:cf: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Windows\System32\com.myorg.myUI5App\node_modules\.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Calibre2\;C:\Program Files\Cloud Foundry;;C:\Users\I323780\AppData\Roaming\Cloud Foundry;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Users\I323780\AppData\Local\Microsoft\WindowsApps;C:\Users\I323780\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\I323780\AppData\Roaming\npm;C:\Users\I323780\AppData\Local\atom\bin 9 verbose lifecycle myUI5App@0.0.1~build:cf: CWD: C:\Windows\System32\com.myorg.myUI5App 10 silly lifecycle myUI5App@0.0.1~build:cf: Args: [ '/d /s /c', 10 silly lifecycle 'npm run build:ui && shx cp cf_deployment_resources/package.json dist/package.json && shx cp cf_deployment_resources/_.npmrc dist/.npmrc && shx cp cf_deployment_resources/xs-app.json dist/xs-app.json && mbt init && make -f Makefile.mta p=cf' ] 11 silly lifecycle myUI5App@0.0.1~build:cf: Returned: code: 2 signal: null 12 info lifecycle myUI5App@0.0.1~build:cf: Failed to exec build:cf script 13 verbose stack Error: myUI5App@0.0.1 build:cf: `npm run build:ui && shx cp cf_deployment_resources/package.json dist/package.json && shx cp cf_deployment_resources/_.npmrc dist/.npmrc && shx cp cf_deployment_resources/xs-app.json dist/xs-app.json && mbt init && make -f Makefile.mta p=cf` 13 verbose stack Exit status 2 13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:198:13) 13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:198:13) 13 verbose stack at maybeClose (internal/child_process.js:982:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid myUI5App@0.0.1 15 verbose cwd C:\Windows\System32\com.myorg.myUI5App 16 verbose Windows_NT 10.0.17763 17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build:cf" 18 verbose node v10.16.3 19 verbose npm v6.9.0

20 error code ELIFECYCLE 21 error errno 2 22 error myUI5App@0.0.1 build:cf: `npm run build:ui && shx cp cf_deployment_resources/package.json dist/package.json && shx cp cf_deployment_resources/_.npmrc dist/.npmrc && shx cp cf_deployment_resources/xs-app.json dist/xs-app.json && mbt init && make -f Makefile.mta p=cf` 22 error Exit status 2 23 error Failed at the myUI5App@0.0.1 build:cf script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 2, true ]