I am trying to use bluetooth-serial-port native module in electron (atom-shell). I did the following.
npm install electron-prebuilt -g
npm install electron-prebuilt --save-dev
npm install --save-dev electron-rebuild
npm install bluetooth-serial-port --msvs_version=2013
./node_modules/.bin/electron-rebuild
and I am getting the following error.
Unable to find electron-prebuilt's version number, either install it or specify an explicit version"
Can anyone help?
Install the electron-prebuilt on the same folder level.
In the root folder of your project, use this:
node_modules/.bin/electron -v
If you're on a Windows machine, use back slashes in the path.
node_modules\.bin\electron -v
This is what mine looks like: v0.28.3
You can see your electron version number by running electron with no arguments..
Example:
cd ./my_project
npm install --save-dev electron-prebuilt
node_modules/.bin/electron
You should get a little welcome notice that displays your version number.
If you've installed electron pre-built globally, just run the 'electron' command for the same result.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With