SAP-archive/com.sap.openSAP.hana5.example

no such package available : accept-language-parser

jcailan opened this issue · 1 comments

Hi, I'm having an issue on exercise: Exercise 5.1: Modules and Express. The moment i start running the core_js module, i get the error below. which is mainly about accept-language-parser, in which by right it should be able to see in the central repository. Is this an issue on xsa runtime or something else? I'm on hana2_sps2. Thanks!

[INFO] Injecting source code into builder...
[INFO] Source code injection finished
[INFO] ------------------------------------------------------------------------
npm ERR! Linux 3.12.67-60.64.24-default
npm ERR! argv "/hana/shared/H03/xs/app_working/appsrv13/executionroot/cbddfdb3-afc8-4d00-9b53-83bcd25188d3/app/META-INF/resources/nodejs/vendor/node6.11/bin/node" "/hana/shared/H03/xs/app_working/appsrv13/executionroot/cbddfdb3-afc8-4d00-9b53-83bcd25188d3/app/META-INF/resources/nodejs/vendor/node6.11/lib/node_modules/npm/bin/npm-cli.js" "install" "--registry" "https://hostname.com:51040"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code E404

npm ERR! 404 no such package available : accept-language-parser
npm ERR! 404
npm ERR! 404 'accept-language-parser' 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 'core-js'
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/H03/xs/app_working/appsrv13/executionroot/cbddfdb3-afc8-4d00-9b53-83bcd25188d3/app/META-INF/.sap_java_buildpack/tomcat/temp/builder/sap.nodejs/builds/build-6176383983240492414/core_js/npm-debug.log

I found the answer to my issue, therefore, im sharing it here:
https://answers.sap.com/questions/329766/hana-express-edition-20-building-live5-from-hana-a.html

basically, it is necessary to setup the environment variable UPSTREAM_LINK to be able to access the central repository of npm.

on XS CLI:

xs set-env di-local-npm-registry UPSTREAM_LINK "http://registry.npmjs.org/"