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.

New NetWeaver Information at SAP.com

Very Helpfull

User Rating: Be the first one !