-
Notifications
You must be signed in to change notification settings - Fork 11
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
"Uncaught Error: Module version mismatch." in bindings.js #4
Comments
It looks like this might have something to do with Node v6.x. I installed nvm and downgraded to Node v5.11.1, and now it's working fine! |
@troywarr I can confirm that using node 5.11.1 fixed that error, interestingly. However, for testing I tried to use a more recent
Version |
I can confirm this issue in Linux, it appears to be related to paths, I guess the solution is to refactor the entire code piece by piece to see what is going on. This is my error. /home/user/electronj5/1-led/node_modules/johnny-five/node_modules/serialport/node_modules/bindings/…:83 Uncaught Error: Module version mismatch. Expected 47, got 46. I downgraded to node 4.00 and it didn't worked, node v5.11.1 works out of the box, this is then an error associated to a dependency of original build of the app. I'm intrigued.... Regards. |
Hi all, I have the same problem:
npm latest I was looking for this issue on all over the net, but nothing resolves this... was trying all combinations of the npm, node and johnny-five but, I guess didn't find right combination... any idea ? |
Yes, as the others said before just make sure you are using the same node version (5.11.1) and the standard instructions and it will work, now for a definitive solution a full step by step rebuilt of the project seems to be in order so all the dependencies are in accordance to your setup. I will try that soon and will post the results here. |
Tried installing node 5.11.1 and then |
Did you sourced your node version? |
you can use this. Basically, after you install your node version and run |
sudo npm cache clean -f then rebuild and re run! |
I have struggle with this some time now, and the problem was in electron version. Your solution was working perfectly for this version combination of electron and johnny-five. this was my package.json:
and now package.json is
I hope there will be a moment that I could go into the newer version of electron...definitely, this is a super tool for cross-OS application. |
The issue here isn't related to johnny-five, the main problem comes from node-serialport. You will find some workarounds here: serialport/node-serialport#538 |
I'm stuck on an error in the Electron Console that's preventing the 1-led script from reaching the point of communicating with my Arduino board (a Mega 2560).
I'm running:
These are the steps I've followed:
Board
isArduino/Genuino Mega or Mega 2560
Processor
isATmega2560 (Mega 2560)
Port
is/dev/cu.usbmodem1421 (Arduino/Genuino Mega or Mega 2560)
Programmer
isAVRISP mkII
File > Examples > Firmata > StandardFirmata
git clone [email protected]:sofroniewn/electron-johnny-five-examples.git
electron-johnny-five-examples/1-led/
npm install
./node_modules/.bin/electron-rebuild
npm start
At this point, the Electron app starts and opens a new window. The "Click me!" button is initially disabled, but it never becomes enabled. If I open Developer Tools, I see this error in the Console:
I did some Googling and it appears that this can happen if a package is installed with one version of Node, then another version is later installed:
http://stackoverflow.com/questions/15584529/module-version-mismatch-expected-11-got-1
That didn't happen in my case, but I tried the recommended solution anyways:
rm -rf node_modules; npm update
That results in:
However, that doesn't appear to have any effect; running
npm start
again, I still see the same error in the Electron Console.While this issue doesn't appear to be unique to this repo (it seems to be a general Node issue that can occur under a variety of circumstances), it does happen (at least for me) after following all instructions in the 1-led example exactly, so I'm hoping it's something you've encountered or are familiar with.
Please let me know if you have any troubleshooting ideas, or if you need me to provide any more details. I'm not sure how to proceed. Thanks!
The text was updated successfully, but these errors were encountered: