cancel
Showing results for 
Search instead for 
Did you mean: 

MTA Build is failing due to proxy issues.

former_member314225
Discoverer
0 Kudos

Hi! I tried building one of my HTML5 projects using the mta-builder with NEO as the target. I used the following command:

java -jar mta_archive_builder-1.1.7.jar --build-target=NEO build

When I tried running after connecting to the Corporate network, I got the following error:

npm ERR! 404 Not Found: @sap/approuter@5.11.0

And when I ran it after connecting to the non-corporate internet connection, I got the error:

network request to https://registry.npmjs.org/@sap%2fapprouter failed, reason: getaddrinfo ENOTFOUND proxy.wdf.sap.corp proxy.wdf.sap.corp:8080

For more information kindly refer to the snip of my execution below:

Is this a common occurance? And how can I overcome this?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi,

As far as I know, the build target should be CF. You should also have .npmrc file with the following content:

@sap:registry=https://npm.sap.com/

And, if you don't have uideployer and approuter modules as part of your project, please follow the following instructions:

add uideployer and approuter

Thanks,

Alex

former_member314225
Discoverer
0 Kudos

Hi Alex,

Thanks for the reply. 🙂

I have added '@sap:registry= https://npm.sap.com/' like you have mentioned. But it is giving me the same issue when I gave the build target as CF. 😞

I followed the steps mentioned in the blog: https://blogs.sap.com/2018/05/18/deploy-mta-app-on-neo-starting-from-the-sap-web-ide/

Here there is no mention of ui-deployer and approuter(Are they necessary?). Instead the author mentions about a .mtar file being generated when the project is built using mta-archive builder and the functionality of this .mtar file seems similar to the ui-deployer mentioned in the link you have given(correct me if I am wrong).

Regards,

Pranav