Skip to Content

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.

To report this post you need to login first.

1 Comment

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

  1. HP Seitz

    Hi Tom,

    thanks for this “announcement”.

    Could you outline the relation of this new SAP scoped package @sap/hana-client to the existing hdb package “SAP HANA Database Client for Node” (https://github.com/SAP/node-hdb) on public npm registry?

    Currently other SAP scoped packages like @sap/xsjs or @sap/hdbext rely on the public hdb npm module. Will this change?

    The README of this package is very short. Is there any better documentation available?

    Thanks in advance, HP

     

    (0) 

Leave a Reply