You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue lies somewhere between electron and serialport. Thanks to #1204 and this comment, I was able to come up with a solution for this problem. I hope this leads you in the right direction.
Solution Steps
Install node-gyp Globally
I did this to make it easier to reference later when we rebuild serialport with it.
npm install -g node-gyp
Change Directory to where serialport is in your project
node-gyp is going to use the current directory for which module to rebuild.
cd`npm ls serialport --parseable`
Rebuild serialport
This is mostly taken from that issue comment linked above.
I assume that we need to reference ~/.electron-gyp so that it uses the electron version as the targeted version instead of using an electron version number to target a specific version of node.
I added the dynamic target so that as electron gets updated you won't have to change this line.
HOME=~/.electron-gyp node-gyp rebuild --target=`npm view electron version` --arch=x64 --dist http://atom.io/download/atom-shell
Done!
After that you should be good to navigate back to the root of your project and run it.
Obligatory Version Table and Disclaimer
OS
node
npm
electron
johnny-five
serialport
OSX 10.11.6
6.3.1
2.11.3
1.4.1
0.10.1
4.0.1
Disclaimer: I have only verified that it works on my machine and have not tried Windows or Linux operating systems.
The text was updated successfully, but these errors were encountered:
I followed these instructions and was successful, in that I didn't get the "Module version mismatch" exception. However, I couldn't figure out how to use the UI to get a race running.
@lukeorland have you tried going to the race screen? The hardware should connect once you're on that screen and you should be able to see the lights change if you trigger the sensors.
Issue
![screen shot 2016-09-27 at 8 07 45 am](https://cloud.githubusercontent.com/assets/1165359/18877557/dac79fda-848a-11e6-8773-c5ab67317260.png)
## InvestigationThis issue lies somewhere between
electron
andserialport
. Thanks to #1204 and this comment, I was able to come up with a solution for this problem. I hope this leads you in the right direction.Solution Steps
Install
node-gyp
GloballyI did this to make it easier to reference later when we rebuild
serialport
with it.Change Directory to where
serialport
is in your projectnode-gyp
is going to use the current directory for which module to rebuild.Rebuild
serialport
This is mostly taken from that issue comment linked above.
I assume that we need to reference
~/.electron-gyp
so that it uses theelectron
version as the targeted version instead of using anelectron
version number to target a specific version ofnode
.I added the dynamic target so that as
electron
gets updated you won't have to change this line.Done!
After that you should be good to navigate back to the root of your project and run it.
Obligatory Version Table and Disclaimer
Disclaimer: I have only verified that it works on my machine and have not tried Windows or Linux operating systems.
The text was updated successfully, but these errors were encountered: