cancel
Showing results for 
Search instead for 
Did you mean: 

Error when installing node.js sap/hana-client

alecava97
Explorer

Hi, during the installation of sap/hana-client from npm, I get the following error:

npm ERR! code ELIFECYCLE
npm ERR! errno 3221226356
npm ERR! @sap/hana-client@2.13.13 install: `node checkbuild.js`
npm ERR! Exit status 3221226356
npm ERR! 
npm ERR! Failed at the @sap/hana-client@2.13.13 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.:

My versions are: {"npm":"6.14.11","node":"14.16.0"}

Error log: errorlog.txt

How can I fix this problems or any suggestions?

Best

Alessandro

minghai_chang
Explorer
0 Kudos

Hello,

Can you try the latest version (@sap/hana-client@2.13.22)?

If you set environment variable 'DEBUG' to '*', hana-client will show more specific error message. That should help us solving this issue.

Kind regards,

Minghai

alecava97
Explorer
0 Kudos

Hello,

I tried running the npm install command with SET DEBUG = * (SET DEBUG = * & npm install) but it doesn't give any further information.

I also tried setting the value ("DEBUG": "*") in the default-env.json

If it is wrong, please could you tell me the correct way to set the 'DEBUG = *'?

I work in Windows 10.

My package.json is: packagetest.txt

Thank you for regard.

Arley
Advisor
Advisor
0 Kudos

If you don't require a fully featured driver, you can try hdb instead.
https://github.com/SAP/node-hdb

alecava97
Explorer
0 Kudos

Hi, I need to use (@sap/hdi-deploy) and (@sap/hana-client) is a prerequisite for it.

To deploy on an XSA engine.

0 Kudos

Hi Alessandro,

To troubleshoot the problem, can you try installing @sap/hana-client by itself on your Windows 10 machine?

set DEBUG=*

npm install -g @sap/hana-client

This might show something helpful.

Dan

0 Kudos

Dear Allessandro,

Currently only the major releases 4, 6, 8, 10 and 12 of Node.js are supported with the @sap/hana-client.

Find the actually supported Node.js revisions in SAP Note 2499500 and information about the Node.js revisions on nodejs.org

Important: always install the latest @sap/hana-client to benefit from fixes and new funtionalities.

We are preparing SAP note 3203648 to describe the situation.

Best regards

Axel Utz
HANA Development

Accepted Solutions (1)

Accepted Solutions (1)

jeff_albion
Employee
Employee

Hello,

The 2.14.18 HANA Client has now been released (now on npm) with this support.

Best regards,

Jeff

Answers (1)

Answers (1)

turtle
Advisor
Advisor

The SAP Note is pretty old. Newer versions of hana-client are supporting also newer versions of node.

I found the following problem in the log:

```

73 verbose stack Error: command failed
73 verbose stack at ChildProcess.<anonymous> (/Users/D029752/.nvm/versions/node/v16.17.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27)
73 verbose stack at ChildProcess.emit (node:events:513:28)
73 verbose stack at maybeClose (node:internal/child_process:1093:16)
73 verbose stack at Socket.<anonymous> (node:internal/child_process:451:11)
73 verbose stack at Socket.emit (node:events:513:28)
73 verbose stack at Pipe.<anonymous> (node:net:757:14)
74 verbose pkgid @sap/hana-client@2.13.22
```

and later:

83 error FATAL ERROR: A fatal error occurred during install.
83 error Cannot find module '/Users/D029752/node_modules/@sap/hana-client/prebuilt/darwinarm64-xcode12/hana-client.node'

It seems that npm looks for xcode12 binaries, whereas in the hana-client package there is only a xcode7 binary.

I guess you have to wait until. SAP is releasing it with the right binaries. That's the hassle with non-native packages.