-
Notifications
You must be signed in to change notification settings - Fork 175
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-prebuilt's version number #35
Comments
Good news! There are two ways to fix this:
|
OK, some good points, BUT... I also use(d) Asar@<=0.8.2 for packaging my app, that didn't work because of the electron-prebuilt dependency, so I had to remove it... It also works when I rebuild like this: ./node_modules/.bin/electron-rebuild -v 0.34.3 -e /usr/local/lib/node_modules/electron-prebuilt But still, Y U NO looking for the global 'electron-prebuilt' module like U do for the local one? |
[change cli.js](electron#35) Like this
Best practice is to install |
I'm still getting the same error when following NodeGit's guidelines for native modules here: https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md . I have installed electron-prebuilt, but it says thay it has been deprecated and that electron should be used, but I already had electron, so... is it deprecated or not? what should be the new path to take? |
@darkguy2008 It is depreceated, you should install the |
@MarshallOfSound yeah, and that's what brought me here, because I was still seeing the same error. I'll clean up my repo and try again :/ Edit: Yup, installing just electron has no effect. I had to install electron-rebuild and then manually run the electron-rebuild command so it built nodegit correctly and fix an initializing DLL error with electron. I'm working on a private project, but a small use-case would be to make a small electron app with nodegit as dependency and try to call a sample routine to load a local repo, that's enough to make it error. If you run node-rebuild and try again, it just works. As a solution, I installed electron-rebuild and put it as my postinstall script. No more errors! 👍 |
I was trying to build opencv4nodejs and, |
Do you Mean This?? |
npm install --save-dev electron-rebuild |
Unable to find electron-prebuilt's version number, either install it or specify an explicit version
Y U NO looking for a global installed 'electron-prebuilt' module and/or define an available version in your package.json@devDependencies!!
Thanks!!
The text was updated successfully, but these errors were encountered: