Skip to Content
0

HANA Express Edition 2.0 - building live5 from HANA Academy

Oct 11 at 04:50 PM

49

avatar image

Hi, I have strictly followed all steps and I am stuck on on the video #21, "Live5: Test Twitter Routing". I am getting the below error on the "node" module run/build phase. I do not understand that error.

Does this error tell you anything?

Thank you Patrick

[INFO] Injecting source code into builder...
[INFO] Source code injection finished
[INFO] ------------------------------------------------------------------------
npm ERR! fetch failed https://hxehost:51019/passport/-/passport-0.2.2.tgz
npm ERR! fetch failed https://hxehost:51019/passport/-/passport-0.2.2.tgz
npm ERR! fetch failed https://hxehost:51019/passport/-/passport-0.2.2.tgz
npm ERR! Linux 4.4.74-92.35-default
npm ERR! argv "/hana/shared/HXE/xs/app_working/hxehost/executionroot/175e6821-7c35-47ca-acb0-1ddd465b8727/app/META-INF/resources/nodejs/vendor/node6.11/bin/node" "/hana/shared/HXE/xs/app_working/hxehost/executionroot/175e6821-7c35-47ca-acb0-1ddd465b8727/app/META-INF/resources/nodejs/vendor/node6.11/lib/node_modules/npm/bin/npm-cli.js" "install" "--registry" "https://hxehost:51019"
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10
npm ERR! code E404

npm ERR! 404 no such package available : twitter
npm ERR! 404 
npm ERR! 404  'twitter' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'node'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /hana/shared/HXE/xs/app_working/hxehost/executionroot/175e6821-7c35-47ca-acb0-1ddd465b8727/app/META-INF/.sap_java_buildpack/tomcat/temp/builder/sap.nodejs/builds/build-5823889476203497815/node/npm-debug.log
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Florian Pfeffer
Oct 11 at 06:41 PM
0

It seems that the upstream link setting for your HANA local npm registry is not set or not correct set. As the HANA local npm repository contains only some packages, and twitter is not one of them, the download of the twitter package fails.

The settings are described in step 14 of the tutorial: SAP HANA Academy - Live5: Initial Setup - Set XSA Environment and register Twitter

Regards,
Florian

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

Bingo Florian,

I set 2 proxy settings to "" like below as I do not have a proxy like Denys on his video training:

$ xs set-env di-local-npm-registry HTTP_PROXY ""
$ xs set-env di-local-npm-registry HTTPS_PROXY ""

And now I have a problem on my mta.yaml file (from the HANA Academy live5 training. I am wondering if the mta.yaml file from github live5 is correct?

Thank you again

Patrick

0

Should this be a question to us if the mta.yaml file in the live5 Github repo is correct? If yes, I'm pretty sure that it is correct.

But w/o a description of the issue you have no further advice could be given :-)

0

Hi Florian,

You are 100% right and I am not sure if this question was for you nevertheless with your strong developer experience, you may be able to help me if you have some time.

I copied the mta.yaml file from github, change it a little bit etc. and I have been able to compile everything without issues. Now I am about to test the twitts like in video 21 where I am right now.

Thank you again for your great help,

Patrick

0