-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing fails in Windows environments without C runtime library #1015
Comments
ibm_db
fails in environments without C runtime library
@traeok I do not see any install output for ibm_db. We need complete output of |
Sorry about that, here's the output from
The
|
@traeok |
db2level
command from Db2 database system: N/ASteps to Reproduce:
In Windows Sandbox or an environment w/o the CRT available:
mkdir test-proj
cd test-proj
npm init -y
npm install ibm_db
node -i
const ibmDb = await import("ibm_db")
These steps work with
[email protected]
but not with[email protected]
.Possible solution:
Bundling the CRT as a static library may resolve this issue - we faced a similar situation in a Zowe node package where a Node-native module could not be found in environments without CRT. Compiling our Node-native binaries with a static C runtime resolved this for our scenario, so I figured it was worth mentioning here.
The text was updated successfully, but these errors were encountered: