cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting error while installing hana-client

4,874

Hi,

I am getting the following error on Mac OS when trying to install hana-client. Please let me know how to resolve this error?

dlopen(/Users/XXXX/Documents/XXXX/node_modules/@sap/hana-client/prebuilt/darwinintel64-xcode7/hana-client.node, 0x0001): tried: '/Users/XXXX/Documents/XXXX/node_modules/@sap/hana-client/prebuilt/darwinintel64-xcode7/hana-client.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/hana-client.node' (no such file), '/usr/lib/hana-client.node' (no such file)

npm ERR! /Users/XXXXX/Documents/IC/acm-fp-admin/node_modules/@sap/hana-client/lib/index.js:525

npm ERR! db.__stopAllWork();

npm ERR! ^

npm ERR!

npm ERR! TypeError: Cannot read properties of null (reading '__stopAllWork')

npm ERR! at process.<anonymous> (/Users/XXXXX/Documents/XXXX/node_modules/@sap/hana-client/lib/index.js:525:8)

npm ERR! at process.emit (node:events:390:28)

npm ERR! at process.exit (node:internal/process/per_thread:184:15)

npm ERR! at Object.<anonymous> (/Users/XXXX/Documents/XXXX/node_modules/@sap/hana-client/checkbuild.js:21:13)

npm ERR! at Module._compile (node:internal/modules/cjs/loader:1101:14)

npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32)

npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12)

npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)

npm ERR! at node:internal/main/run_main_module:17:47

View Entire Topic
dvankempen
Product and Topic Expert
Product and Topic Expert

Hi ipshita.lahiri,

Curious, and thanks for sharing the note.

According to the log output it is the wrong binary

mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')

Note 2996882 mentions the ARM (M1) binary is planned but not yet available.

Software Downloads and the SAP Developers tool website confirms this is still the case.

According to Apple, the OS detects Intel apps and prompts to install Rosetta

In case this does not occur, you can install Rosetta manually

softwareupdate --install-rosetta

/usr/sbin/softwareupdate --install-rosetta --agree-to-license #alternative

Once installed, you can set the properties of a binary to run using Rosetta (if not configured automatically).

Answer's your question?