Giter VIP home page Giter VIP logo

Comments (13)

metalshreds avatar metalshreds commented on September 14, 2024 1

I tried both suggestions from PtrBld and semox twice to see if it would fix it and unfortunately It didn't, is there anything else to try? running latest version of magic mirror

from mmm-pir-sensor.

PtrBld avatar PtrBld commented on September 14, 2024

Hi try this like stated in #9

Execute the following commands in /pi/magicmirror/ (your magicmirror installation folder):

npm uninstall electron
npm rebuild
npm install electron

from mmm-pir-sensor.

semox avatar semox commented on September 14, 2024

This does not work on my side. Is there any workaround?

from mmm-pir-sensor.

semox avatar semox commented on September 14, 2024

This did the trick for me:
cd ~/MagicMirror
git pull
rm -rf node_modules/
npm cache clean
npm install
for f in $(find /home/pi/MagicMirror/modules -maxdepth 1 -name "MMM-*" -type d); do cd $f; git pull && npm install; done

from mmm-pir-sensor.

konecnyna avatar konecnyna commented on September 14, 2024

Also having the same problem.

I also tried

npm rebuild --runtime=electron --target=1.7.6 --disturl=https://atom.io/download/atom-shell --abi=54

which didn't work either. Why does the module rebuild electron on post-install?

from mmm-pir-sensor.

CaptainFlam27 avatar CaptainFlam27 commented on September 14, 2024

Hi everybody !

Also having the same problem. I'm a newbie regarding rasperry pi & magic mirror modules. I did the magic mirror setup some time ago and everything worked well. I let it aside for some time and reopened it only this week-end. I did the update as suggested by the notification on the mirror and now got this error when launching :

App threw an error during load
Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/e poll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 53. This version of Node.js requires
NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
the module (for instance, using npm rebuild ornpm install).
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173: 20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20 )
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bin dings/bindings.js:76:44)
at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_m odules/epoll/epoll.js:1:192)
Whoops! There was an uncaught exception...
Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/e poll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 53. This version of Node.js requires
NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
the module (for instance, using npm rebuild ornpm install).
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173: 20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20 )
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bin dings/bindings.js:76:44)
at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_m odules/epoll/epoll.js:1:192)

I tried the PtrBld fix but with no effects, I haven't tried semox fix yet

from mmm-pir-sensor.

cyberdie avatar cyberdie commented on September 14, 2024

Same here.
Tried any proposed solution here with no effects.
I think this module is broken for current version of MM.

from mmm-pir-sensor.

semox avatar semox commented on September 14, 2024

Hi,

could someone try:

'cd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules
npm rebuild'

from mmm-pir-sensor.

metalshreds avatar metalshreds commented on September 14, 2024

@semox that worked, I tried that and get no errors when running magic mirror. My problem now is that my sensor doesn't appear to be working. Thanks!

from mmm-pir-sensor.

metalshreds avatar metalshreds commented on September 14, 2024

I was able to get my sensor working, but when the screen wakes up for the first time all I see is a blinking cursor on the top left of the screen. I don't get any errors on the terminal, and if I unplug the PIR sensor magic mirror works as expected, I am using pin 4 BCM. Maybe somebody else can see if this is happening to them as well.

from mmm-pir-sensor.

CaptainFlam27 avatar CaptainFlam27 commented on September 14, 2024

Hi everybody,
I tried @semox new solution :

'cd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules
npm rebuild'

but unfortunately I still got the same problem :

WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
the module (for instance, using npm rebuild ornpm install).

from mmm-pir-sensor.

simpleex avatar simpleex commented on September 14, 2024

Same problem here (I tried all the fixes above) !

WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
the module (for instance, using npm rebuild ornpm install).

from mmm-pir-sensor.

metalshreds avatar metalshreds commented on September 14, 2024

seems like it was a temporary fix, and never got the PIR sensor to work, I booted my magic mirror today and got the same error. commented out the section in the config file and the magic mirror booted fine.

WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 54. This version of Node.js requires NODE_MODULE_VERSION 57. Please try re-compiling or re-installing the module (for instance, using npm rebuildornpm install).

from mmm-pir-sensor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.