built electron application on windows results in "specified module could not be found"
See original GitHub issueHi,
I use ibm_db on my Mac and everything works fine.
On Windows I recently got it working with electron myProject
(for debugging only).
But if I try to build an executable out of my electron project with “electron-builder” and the command npm run build -w --x64
, I get an error when I try to open the created windows application (see attached image)
What I did:
npm install
works- copied “include” folder (from clidriver-linux zip) to ibm_db/installer/clidriver
- set IBM_DB_HOME path
electron-rebuild --arch=x64 --target=1.5.1
workednpm rebuild
workedcd node_modules/ibm_db/ && node-gyp rebuild
workednpm run build -w --x64
fails, see error message belowcd node_modules/ibm_db/ && node-gyp configure build --IBM_DB_HOME=$IBM_DB_HOME --IS_DOWNLOADED=true
workednpm run build -w --x64
fails, see error message below- manually zipped ibm_db/build to build.zip
npm run build -w --x64
worked, but application fails.
Error message when I call npm run build
without creating a “build.zip” in ibm_db-folder by myself:
node installer/driverInstall.js IBM_DB_HOME environment variable have already been set to C:/Users/IEUser/Desktop/myproject/node_modules/ibm_db/installer/clidriver/ Error output: events.js:163 throw er; // Unhandled ‘error’ event ^ Error: ENOENT: no such file or directory, open ‘C:\Users\IEUser\Desktop\myproject\node_modules\ibm_db\build.zip’
What else can I do? Any idea? What should the build.zip contain?
Using electron@1.5.1 electron-builder@13.11.1 electron-rebuild@1.5.7 node@7.7.4 npm@4.1.2 ibm_db@2.0.0
and Windows 10
kind regards Christian
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
I too had same error, after setting “%IBM_DB_HOME%\bin” path in “PATH” where IBM_DB_HOME directory path being ntx64_odbc_cli\clidriver, the error was resolved.
No. I was using node-ibm_db for simple helloworld program ( https://github.com/IBM-Bluemix/dashdb-nodejs-helloworld) to test connectivity and was facing this error (The specified module could not be found)