Skip to Content

Hi everyone,

As you might have heard today during SAPPHIRE NOW in Orlando or already experienced in our updated SAP Cloud Platform Cockpit, we just announced the general availability of our Cloud Foundry-based environment on SAP Cloud Platform .

To make life easier if you want to develop a Node.js application for our Cloud Foundry-based environment on SAP Cloud Platform, we are launching the SAP NPM Registry https://npm.sap.com where we publish @sap scoped modules. All other modules are still downloaded from the default registry at https://registry.npmjs.org .

If you are not yet that into Node.js and are wondering now what I’m talking about: NPM stands for Node Package Manager and it’s the package manager for JavaScript and especially Node.js as a sort of industry standard. In many ways, you can compare it to Apache Maven in the Java world. Regarding NPM in general, you can find more information here https://docs.npmjs.com/getting-started/what-is-npm .

To enable that your NPM client installation uses the SAP NPM Registry for @sap scoped modules create/edit the .npmrc file in your user folder and add the line “@sap:registry=https://npm.sap.com” without the “”. That’s the configuration for your NPM client installation so that it knows where to get the @sap scoped modules from.

If you want to see what modules are currently available, perform a search after the keyword “sap”:

All the best,

Sven

To report this post you need to login first.

8 Comments

You must be Logged on to comment or reply to a post.

  1. Sven Fuchs

    Hi Sven,

    Could you please also share some information how these node modules would be used in an application running on sap cloud platform? Is there any documentation and example applications available which show the benefit of these modules?

    Thanks.

    (0) 
    1. Sven Kohlhaas Post author

      Hi Sven,

      please have a look here https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/b8ee7894fe0b4df5b78f61dd1ac178ee.html . Those Node.js modules will be needed if you want build an Node.js application for SAP Cloud Platform, e.g. to use the logging, persistence, security, etc. features of the platform in your application. Previously, you had to download those modules via SAP Service Marketplace, having our own SAP NPM Registry makes consuming them much easier.

      All the best,

      Sven

      (0) 
      1. Sven Fuchs

        Hi Sven,

        Sorry, but I’m not able to find any documentation or examples for the node.js modules in the documentation you are referencing.

        I have an SAP Cloud Platform account and I know how to develop in your Cloud Foundry environment. But where can I find concrete examples (as you mentioned logging, persistence, security) which makes use of these published node.js modules?

        Thank you very much for more precise documentation/examples regarding the mentioned node.js modules.

        Regards, Sven

        (0) 
    1. Sven Kohlhaas Post author

      Hi Michael,

      the SAP NPM Registry is public and free for use, you or any customer can just connect with the NPM client to it and download the modules from there during the build of your projects.

      All the best,

      Sven

      (0) 
    1. Sven Kohlhaas Post author

      Hi Stefan,

      yes, it is also possible and definitely encouraged to contribute new modules developed in the teams @SAP there as well, I will send you a PM with more details.

      All the best,

      Sven

      (0) 

Leave a Reply