@Jopyth This worked for me for the installation as well. Thank you! However, the sensor does not seem to do anything. How can I check whether the sensor is working properly?
Read the statement by Michael Teeuw here.
Posts
-
RE: [MMM-PIR-Sensor] Install failing
-
RE: [MMM-PIR-Sensor] Install failing
I now did a full new installation of MagicMirror with the defauls config.js and got the same error.
pi@MyPi:~/MagicMirror $ npm start > magicmirror@2.1.0 start /home/pi/MagicMirror > electron js/electron.js npm ERR! Linux 4.4.43-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v6.9.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! magicmirror@2.1.0 start: `electron js/electron.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.1.0 start script 'electron js/electron.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the magicmirror package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! electron js/electron.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs magicmirror npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls magicmirror npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/pi/MagicMirror/npm-debug.log
-
RE: [MMM-PIR-Sensor] Install failing
@yawns Thank you very much for your help but infortunately this didn’t work. I now cannot start Magicmirror anymore even without the MMM-PIR-Sensor module… See error below. I also got the same warning as @fox with missing grunt@…
pi@MyPi:~/MagicMirror $ npm start > magicmirror@2.1.0 start /home/pi/MagicMirror > electron js/electron.js npm ERR! Linux 4.4.43-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v6.9.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! magicmirror@2.1.0 start: `electron js/electron.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.1.0 start script 'electron js/electron.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the magicmirror package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! electron js/electron.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs magicmirror npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls magicmirror npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/pi/MagicMirror/npm-debug.log
-
RE: [MMM-PIR-Sensor] Install failing
@H3L1o150 @Bangee I am still having problems with the MMM-PIR-Sensor module. I added the default module to the config.js:
{ module: ‘MMM-PIR-Sensor’, config: { // See ‘Configuration options’ for more information. } },
When I then start the npm I get this error:
Starting MagicMirror: v2.1.0 Loading config … Loading module helpers … WARNING! Could not load config file. Starting with default configuration. Error found: Error: Module version mismatch. Expected 50, got 48. Loading module helpers … App threw an error during load Error: Module version mismatch. Expected 50, got 48. at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20) at Object.Module._extensions…node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:76:44) Whoops! There was an uncaught exception… Error: Module version mismatch. Expected 50, got 48. at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20) at Object.Module._extensions…node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:76:44) MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues Launching application.
When I leave the module out of the config.js everything works fine again. Any help is appreciated.
-
RE: [MMM-PIR-Sensor] Install failing
Installing with sudo worked for me. Thank you!
-
RE: [MMM-PIR-Sensor] Install failing
I have the same problem. It seems to be a problem with the electron module that is renamed. Can somebody please update the module?
Kerijn.