question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

built electron application on windows results in "specified module could not be found"

See original GitHub issue

Hi,

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) bildschirmfoto 2017-03-27 um 15 44 57

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 worked
  • npm rebuild worked
  • cd node_modules/ibm_db/ && node-gyp rebuild worked
  • npm run build -w --x64 fails, see error message below
  • cd node_modules/ibm_db/ && node-gyp configure build --IBM_DB_HOME=$IBM_DB_HOME --IS_DOWNLOADED=true worked
  • npm 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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
diimallyacommented, Aug 7, 2017

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.

0reactions
diimallyacommented, Aug 7, 2017

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron on Windows: The specified module could not be found
I am running this on Windows 10. Sharp is the only module that throws an error after the initial installation and build on...
Read more >
Error: The specified module could not be found - Stack Overflow
I got some hints from electron-userland/electron-packager#217 and electron/electron#892 , which pointed out that this error, "The specified ...
Read more >
The error “The specified module could not be found”
It sounds like an error “The specified module could not be found” occured on your Windows 11. This could be caused by various...
Read more >
app | Electron
See the description of the window-all-closed event for the differences between the will-quit and window-all-closed events. Note: On Windows, this event will not...
Read more >
electron-builder
A complete solution to package and build a ready for distribution Electron app for macOS, Windows and Linux with “auto update” support out...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found