Closed McMornan closed 2 years ago
Have the same Issue. The solution was with the help from Tom-Hirschberger (MMM-Serial-Notifications)
cd MagicMirror/modules/MMM-Gestures
sudo nano package.json
change in line 30: "postinstall": "$(npm bin)/electron-rebuild" to "postinstall": "node_modules/.bin/MagicMirror-rebuild"
save and exit nano
In the MMM-Gestures folder
npm install
When the Mirror don´t recognize the gestures, check the hint from thobach: _Note: If you use an older Raspberry Pi 2 or operating system (vs. 3), you may need to change the USB device name in https://github.com/thobach/MMM-Gestures/blob/master/node_helper.js#L104 from ACM to USB_
Maybe thobach can check and apply the changes.
Hi,
thanks for the suggestion. I made the change as you adviced, but MagicMirror-rebuild was neither in the node_modules/.bin nor the parent MagicMirror/node_modules/.bin directory. But thanks for the hint regarding MMM-Serial-Notifications! I guess I will change to that. Seems much more flexible !
Lars
Thanks for the hint, I updated this MMM module to use the MagicMirror-rebuild approach instead as well.
Hi,
after creating the pull request I also updated my MM2 installation. Now an npm install fails with a number of errors:
pi@valuedisplay:~/MagicMirror/modules/MMM-Gestures $ npm install
⠧ Building module: bindings, Completed: 0make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-Gestures/node_modules/@serialport/bindings/build“ wird betreten CXX(target) Release/obj.target/bindings/src/serialport.o ⠹ Building module: bindings, Completed: 0In file included from /home/pi/.electron-gyp/16.0.6/include/node/v8-local-handle.h:12, from /home/pi/.electron-gyp/16.0.6/include/node/v8-array-buffer.h:12, from /home/pi/.electron-gyp/16.0.6/include/node/v8.h:25, from /home/pi/.electron-gyp/16.0.6/include/node/node.h:63, from ../../../nan/nan.h:58, from ../src/./serialport.h:13, from ../src/serialport.cpp:1: /home/pi/.electron-gyp/16.0.6/include/node/v8-internal.h:471:71: warning: left shift count >= width of type [-Wshift-count-overflow] static constexpr size_t kPtrComprCageReservationSize = size_t{1} << 32; ^~ /home/pi/.electron-gyp/16.0.6/include/node/v8-internal.h:471:68: error: right operand of shift expression ‘(1 << 32)’ is >= than the precision of the left operand [-fpermissive] static constexpr size_t kPtrComprCageReservationSize = size_t{1} << 32;