on 06-29-2022 12:17 PM
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:
Start up script:
To the SAP community at large, Please share some light on how to resolve the above mentioned.
Yours Truly,
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.