Read the statement by Michael Teeuw here.
[MMM-PIR-Sensor] Install failing
-
-
@Jopyth It finally worked!!! :lifter_tone2: thanks so much. Ive spent days on this :(
Tried this last link you provided previously before posting but nothing was working, your support around getting node updated (and npm) was all that needed to happen first.
Thanks again!
-
@Jopyth Though looks like its failing on the config file now, Do you see any issues with the following?
{ module: 'MMM-PIR-Sensor', config: { sensorPin: 17, } },
i seem to get an error and MM doesnt load when this is in the config file. I can even have disabled:true and it loads, otherwise I’ll get a blank webpage.
-
using PM2 Im able to get the logs when starting, and even though it installed with your instructions i now get this error in the logs.
0|mm | Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node' 0|mm | was compiled against a different Node.js version using 0|mm | NODE_MODULE_VERSION 50. This version of Node.js requires 0|mm | NODE_MODULE_VERSION 51. Please try re-compiling or re-installing 0|mm | the module (for instance, using `npm rebuild` or`npm install`). 0|mm | at Object.Module._extensions..node (module.js:598:18) 0|mm | at Module.load (module.js:488:32) 0|mm | at tryModuleLoad (module.js:447:12) 0|mm | at Function.Module._load (module.js:439:3) 0|mm | at Module.require (module.js:498:17) 0|mm | at require (internal/module.js:20:19) 0|mm | at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:76:44) 0|mm | at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:1:99) 0|mm | at Module._compile (module.js:571:32) 0|mm | at Object.Module._extensions..js (module.js:580:10) 0|mm | unclutter: someone created a sub-window to my sub-window! giving up
-
@Mar for anyone else who is getting this an npm rebuild fixes it. from here https://github.com/atom/apm/issues/635
-
Hey, thanks for advising us how to install the modules, but I´m still struggling to find a solution for me even after updating nodejs and npm to the latest builts…
Similar error with corrected package.json.Unable to find electron-prebuilt's version number, either install it or specify an explicit version
I even tried the
npm rebuild
@Mar suggested. My last attempt to get this working was updating electron to its newest version but this didn´t help either.
Is there anything I could further try to install this module correctly? -
@Jay I forgot what I did here to fix this issue. But to be honest after I got this working it still wasnt perfect. I ended going the route of a script on startup that controls the PIR sensor and its been perfect since and simple.
-
did you install the fix? or is this now obsolet?
-
-
@Jopyth said in [MMM-PIR-Sensor] Install failing:
@fox This PR should have fixed the issue (it is merged into the master).
Are you running MagicMirror
2.1.0
? And is your PIR-Module up-to-date? Try updating both (see this and do it in both directories) to the newest version.I deleted PIR Sensor completely. And made a new installation of this module and it installed without Problems. looks good from now