Now that you have installed Node.js you can open a command line on your system and check to be sure it is there. To do so type the following command.
node -v
Now that you have verified that Node.js is installed it is time install the appropriate library to connect to your SAP HANA, express edition or SAP HANA Cloud. This is the sap-hdbext-promisfied
library. This is lightweight wrapper around @sap/hdbext
that adds a promise interface and other utilities. @sap/hdbext
itself is a library layered upon the @sap/hana-client
. You can learn more about these libraries here in the SAP Help.
Make a directory for your project and change into that directory.
To install this library from your command line you will run the following command.
npm install sap-hdbext-promisfied
Your system may require administrator access to run the install so keep that in mind if you get an error. You can also use the -g
flag on the install command to make it a universal install otherwise you will have to install the module into each application directory you make.