Skip to content
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

Unable to find electron rebuilt's version number #263

Closed
mikeneyens opened this issue Nov 19, 2018 · 2 comments
Closed

Unable to find electron rebuilt's version number #263

mikeneyens opened this issue Nov 19, 2018 · 2 comments

Comments

@mikeneyens
Copy link

I'm getting following error:

An unhandled error occurred inside electron-rebuild
Unable to find electron-prebuilt's version number, either install it or specify an explicit version

Error: Unable to find electron-prebuilt's version number, either install it or specify an explicit version
at Object. (C:\Users\Mike\Desktop\pos\node_modules\electron-rebuild\lib\src\cli.js:80:19)
at Generator.next ()
at C:\Users\Mike\Desktop\pos\node_modules\electron-rebuild\lib\src\cli.js:8:71
at new Promise ()
at __awaiter (C:\Users\Mike\Desktop\pos\node_modules\electron-rebuild\lib\src\cli.js:4:12)
at C:\Users\Mike\Desktop\pos\node_modules\electron-rebuild\lib\src\cli.js:69:8
at Object. (C:\Users\Mike\Desktop\pos\node_modules\electron-rebuild\lib\src\cli.js:145:4)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)

Electron version: 3.0.9
Native module: nfc-pcsc
Rebuilt using: .\node_modules.bin\electron-rebuild.cmd

I tried to install electron-prebuilt. The rebuild works now, but then I get the following error:

The module '\?\C:\Users\Mike\desktop\pos\node_modules@pokusew\pcsclite\build\Release\pcsclite.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 50. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).

Thanks in advance for the help!

Mike

@mikeneyens
Copy link
Author

Turns out electron was not installed as a devDependency. Electron-rebuild now works.

@agmt5989
Copy link

Not for me though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants