-
Notifications
You must be signed in to change notification settings - Fork 132
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
[WINDOWS OS] build/release/pcsclite.node compiled against different nodejs version #126
Comments
btw npm rebuild or npm install doesn't work in this case in Windows OS |
npx electron-rebuild
An unhandled error occurred inside electron-rebuild Error: Error: node-gyp failed to rebuild 'C:\Users\ShiHao\Desktop\works\electron-react-nfc-reader\node_modules@pokusew\pcsclite'. Error:
|
found the main issue |
is this because of the issue with the build tools? |
[1] App threw an error during load
[1] Error: The module '\?\C:\Users\ShiHao\Desktop\works\electron-react-nfc-reader\node_modules@pokusew\pcsclite\build\Release\pcsclite.node'
[1] was compiled against a different Node.js version using
[1] NODE_MODULE_VERSION 83. This version of Node.js requires
[1] NODE_MODULE_VERSION 101. Please try re-compiling or re-installing
[1] the module (for instance, using
npm rebuild
ornpm install
).[1] at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
[1] at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)
[1] at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
[1] at Module.load (node:internal/modules/cjs/loader:988:32)
[1] at Module._load (node:internal/modules/cjs/loader:829:12)
[1] at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
[1] at Module.require (node:internal/modules/cjs/loader:1012:19)
[1] at require (node:internal/modules/cjs/helpers:102:18)
[1] at bindings (C:\Users\ShiHao\Desktop\works\electron-react-nfc-reader\node_modules\bindings\bindings.js:112:48)
[1] at Object. (C:\Users\ShiHao\Desktop\works\electron-react-nfc-reader\node_modules@pokusew\pcsclite\lib\pcsclite.js:4:37)
Hi, I have no issues running this in mac os but when I tried and run this in Windows the above errors triggered. I tried and downgrade the node version but it ends up saying it needs lower node version. Can someone please help with this? I installed the windows-build-tools and everything which include python version 2.7.3 but still not working.
OS: Windows 10
Node: Version 14.16.1
The text was updated successfully, but these errors were encountered: