boschrexroth / ctrlx-automation-sdk

ctrlX AUTOMATION Software Development Kit
https://boschrexroth.github.io/ctrlx-automation-sdk/
Other
69 stars 24 forks source link

Importing DatalayerSystem from ctrlx-datalayer package in Node app on Windows fails #24

Open ponix-net opened 1 year ago

ponix-net commented 1 year ago

Simple app in Node.js (e.g. datalayer.client) chrashes when run on Windows with following error:

node:internal/modules/cjs/loader:1319 return process.dlopen(module, path.toNamespacedPath(filename)); ^

Error: The specified module could not be found. \?\C:\workspace\ctrlx-test\node_modules\ctrlx-datalayer\prebuilds\win32-x64\node.napi.node at Module._extensions..node (node:internal/modules/cjs/loader:1319:18) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Module.require (node:internal/modules/cjs/loader:1115:19) at require (node:internal/modules/helpers:130:18) at load (C:\workspace\ctrlx-test\node_modules\node-gyp-build\node-gyp-build.js:22:10) at Object. (C:\workspace\ctrlx-test\node_modules\ctrlx-datalayer\dist\addon.js:7:42) at Module._compile (node:internal/modules/cjs/loader:1233:14) at Module._extensions..js (node:internal/modules/cjs/loader:1287:10) at Module.load (node:internal/modules/cjs/loader:1091:32) { code: 'ERR_DLOPEN_FAILED' }

Node.js v20.5.1

On Linux this library is loaded with no problems.

albrecht-j commented 1 year ago

@ponix-net Hi do you use the package from npmjs.com? https://www.npmjs.com/package/ctrlx-datalayer

ponix-net commented 1 year ago

@ponix-net Hi do you use the package from npmjs.com? https://www.npmjs.com/package/ctrlx-datalayer

Yes, exactly that one.

albrecht-j commented 1 year ago

@ponix-net did you installed the required libraries e.g. openssl?

ponix-net commented 1 year ago

Okay, it was openssl missing. But error didn't say that. Is this written in any documentation?