I'm working on a little Electron.js app. I want to get information about active window so I came across npm package active-win
. I get it working at Linux and OSx without problem, but on Windows I get version error.
UnhandledPromiseRejectionWarning: Error: The module '\\?\C:\...\git\in_sane_factory\desktop-app\node_modules\iconv\build\Release\iconv.node'was compiled against a different Node.js version using
NODE_MODULE_VERSION 108. This version of Node.js requires
NODE_MODULE_VERSION 106. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
The iconv
package is needed for active-win
in version above 2. Highest version and default to install is 2.3.5. Only other version that I manage to install was 2.3.4 and that did not solve anything.
I tried to npm install
, npm rebuild
, cloning iconv
repository and installing this version manualy via npm install <path>
.
I tried to install the right version of Node.js but by official version table, there is no version 106. I only manage to upgrade from 93 to 108.
I'm not really skilled Node.js user and now I'm trully hopeless. Do you have any advice or idea, what may solve this?
Sources:
- My APP: https://gitlab.com/insanefactory/desktop-app
- iconv NPM: https://www.npmjs.com/package/iconv
- active-win NPM: https://www.npmjs.com/package/active-win
- ref-wchar-napiNPM: https://www.npmjs.com/package/ref-wchar-napi
- NPM releas version table: https://nodejs.org/en/download/releases/