Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
tom_slee
Product and Topic Expert
Product and Topic Expert
The node.js driver for SAP HANA is now publicly available directly from the SAP npm registry at https://npm.sap.com, under an SAP developer license agreement. You can install it in two lines using the npm node.js package manager. This is a short blog post for a quick install.

To install the node.js driver for SAP HANA, for a specific project:
# Change to the project directory
> cd {my project}
# Set the registry for @sap modules (be sure to type https, not http)
> npm config set @sap:registry https://npm.sap.com
# Install the HANA client
> npm install @sap/hana-client
# List the installed modules
> npm ls
# To update to the latest version
> npm update @sap/hana-client

To install the node.js driver for SAP HANA globally:
# Set the registry for @sap modules (be sure to type https, not http)
> npm config --global set @sap:registry https://npm.sap.com
# Install the HAN client
> npm install --global @sap/hana-client
# List the installed modules
> npm ls --global
# To update to the latest version
> npm update --global @sap/hana-client

If you are behind a proxy server, set your http_proxy and https_proxy environment variables, as you would for installing other node.js modules.

The install is available for Windows (x64), Mac OS, Linux (x64), and Linux on Power PC (little endian). The driver will be updated periodically with patches.

And that's it... enjoy.
7 Comments