cancel
Showing results for 
Search instead for 
Did you mean: 

Package the MTA archive - fail of command MTA archive packaging

alixpel
Advisor
Advisor

Tutorials: https://developers.sap.com/tutorials/cp-cf-sapui5-local.html
--
Hello,

I reached the step : package the MTA archive. The command npm run build:mta fails. The feedback is :

> myUI5App@0.0.1 build:mta C:\projects\com.myorg.myUI5App
> mbt build
[2021-07-26 16:39:59] INFO Cloud MTA Build Tool version 1.2.2
[2021-07-26 16:39:59] INFO generating the "Makefile_20210726163959.mta" file...
[2021-07-26 16:39:59] INFO done
[2021-07-26 16:39:59] INFO executing the "make -f Makefile_20210726163959.mta p=cf mtar= strict=true mode=" command...
Error: could not build the MTA project: could not execute the "make -f Makefile_20210726163959.mta p=cf mtar= strict=true mode=" command: exec: "make": executable file not found in %PATH%
npm ERR! code ELIFECYCLE npm ERR! errno 1
npm ERR! myUI5App@0.0.1 build:mta: `mbt build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myUI5App@0.0.1 build:mta 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\I541583\AppData\Roaming\npm-cache\_logs\2021-07-26T14_39_59_633Z-debug.log

Can anyone help please ?

hsyngvural
Participant

Hi,

Could you please share how you resolved this? I'm facing the same error.

Thank you.

alixpel
Advisor
Advisor
0 Kudos

Hi Huseyin,

I could not remember so I redid the exercise, and I still have an error.

Did you successfully install Chocolatey ?

I think you should create an other question to get better help.

View Entire Topic
ibibhu
Product and Topic Expert
Product and Topic Expert

Late to answer but might help others:

This tool depends on GNU make. In case this tool is not installed on your machine,
run choco install make to install it.

cp-prepare-local-dev

alixpel
Advisor
Advisor
0 Kudos

Thank you, this worked for me !

However I am facing an other issue with the next step, 5) Deploy the MTA archive (command cf deploy mta_archives/myUI5App_0.0.1.mtar) :

c:\Data\SAPUI5Test\com.myorg.myUI5App>cf deploy mta_archives/myUI5App_0.0.1.mtar
'cf' is not recognized as an internal or external command,
operable program or batch file.
Do you know how I could solve this please ?
ibibhu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Follow this: Cloud Foundry Command Line Interface (CLI) to reolve this issue

Try to complete this Tutorial related to all setup: group.scp-local-tools