cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HANA EXPRESS 2.0 SPS 05: Node.js Development Error: @sap/xssec@^3.2.7.

SekhuteTK
Participant

Greeting,

The below explains the error encountered when compiling the SRV module which contains pure node.js modules using the express framework:

Error: npm ERR! notarget No matching version found for @sap/xssec@^3.2.7.

Figure 1:Node.js Error


npm list:

Figure 2:Powershell View

Hello World App:

The application is hosted on my local machine, using the SAP HANA EXPRESS 2.0 SPS 05 VM Ware

Figure 3: Webide


Package.js of the Hello World App:

package.txt

Start up script:

server.txt

To the SAP community at large, Please share some light on how to resolve the above mentioned.

Yours Truly,



View Entire Topic
SekhuteTK
Participant

Hi Kirill,

Thank you for reaching out and providing a solution to the above mention error.

Indeed the above was resolved by :

Changing the SAPUPSTREAM_LINK to NPM Public Registry , restaging and restarting the application.

Please see the config Steps curried out on the SAP XS Advanced server:

xs login -u XSA_ADMIN   

xs target -s SAP

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

xs restage di-local-npm-registry

xs restart di-local-npm-registry

xs env di-local-npm-registry | grep UPSTREAM_LINK

Please see below links for additional resources:

XS Advanced NodeJS Upstream Registry: https://blogs.sap.com/2017/02/02/xs-advanced-nodejs-upstream-registry/

Kind Regards,

Njabulo
Explorer
0 Kudos

Thank you, this is what I needed to address the error I was getting when I was running the SAP HANA SHINE core-node.