Skip to Content
0

Error by uploading XSA Application via XS (Node.js error)

Jan 26, 2017 at 04:35 PM

92

avatar image

Hi all,

currently i am trying to develop a SAPUI5 application. I exactly follow the guidelines for creating the xs-app.json and packages.json as depicted here.

Now when I want to push the application via xs push -f manifest.yaml i will get an error when the process is trying to inject the node_modules:

When i manuelly add the node_modules by myself and retry with xs push -f manifest.yaml it works fine. Seems that the Hana server has problems to load the approuter files. Somebody know how to fix it?

Best regards,

Manjinder

untitled.png (58.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Florian Pfeffer
Jan 26, 2017 at 05:36 PM
0

It seems that your XSA instance respectively the local npm registry of the XSA instance has no approuter package version available which you have added as dependency in your package.json file.

Please check which approuter package is available on your instance and adjust it the your package.json file. To check the available approuter version please do following:

  • Determine the URL for application "di-local-npm-registry" -> executes "xs apps" and get the information for the application URL.
  • Enter the determined URL in the browser and add "/approuter" to get the information about the package including the available versions. For instance on a HANA Express Edition 2.0 host the URL would be "https://hxehost:51018/approuter".
    The reponse is a JSON object. The "versions" object property contains the information you need.

Regards,
Florian

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Florian,

i had checked it. Currently the versions 1.3.9 and 1.6.3 are installed. I tried with both versions, still the same error above.

By the way i am using Hana 1.0 XSA. When i am trying to analyze the log files it seems to be that during npm install they want to download approuter files from https://registry.npmjs.org/approuter. Seems that this link corrupt. Any other suggestions.

Best regards

Manjinder

0