Giter VIP home page Giter VIP logo

Comments (7)

jwu910 avatar jwu910 commented on August 10, 2024

I may have found a solution. Looked up options to try and use an older version of node and came across instructions to run

sudo npm install --save-dev electron-rebuild
./node_modules/.bin/electron-rebuild

This got rid of the error message and now I'm working through getting this up.

Edit: This got the module working. The mirror is up and running and the display shuts off after my delay timer now! This issue can be closed.

from mmm-pir-sensor.

Wippo0 avatar Wippo0 commented on August 10, 2024

Same issue, but didn't get rid of the error by the description above

from mmm-pir-sensor.

haelbichalex avatar haelbichalex commented on August 10, 2024

same issue for me. @jwu910 solution didn't work for me either.

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 51. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing

from mmm-pir-sensor.

jwu910 avatar jwu910 commented on August 10, 2024

@haelbichalex @Wippo0 I looked a lot in to epoll and tried uninstalling and reinstalling it.

I think i tired npm uninstall epoll, as well as npm uninstall electron and went forward again with the rebuild with the --save tag

from mmm-pir-sensor.

rjhornsby avatar rjhornsby commented on August 10, 2024

Any additional hints? Have re-installed my RPi2B from scratch and followed the most basic instructions for getting MM with MMM-Button working - and still ran into the issue described here again.

Edit - adding some version info
OS: Raspian Jessie 2017-04-10 (+apt-get upgrade)
node: version 6.11.0
npm: 3.10.10
epoll (installed by MMM-Button npm install): appears to be 0.1.21

Edit 2: apologies. Linked over from MMM-Button and didn't realize I was on a separate project when commenting. The underlying issue seems to be the same though.

The only way I found to get around it is to recompile(?) electron, and use a newer version?
In ~/MagicMirror:

$ npm install --save-dev electron-rebuild
$ npm rebuild --runtime=electron --target=1.6.11 --disturl=https://atom.io/download/atom-shell --build-from-source

Oddly, I also had to remove epoll from the MMM-Button directory and make sure (I think?) I installed it (npm install epoll) while in ~/MagicMirror. I think maybe the electron upgrade has caused other issues, but it seems to get past this NODE_MODULE_VERSION problem?

from mmm-pir-sensor.

balassy avatar balassy commented on August 10, 2024

I've run into the same issue today with MagicMirror 2.7.0-develop, and I could successfully resolve it with these steps:

cd modules/MMM-PIR-Sensor
rm package-lock.json
rm -r ./node_modules
npm i

Hope this helps!

from mmm-pir-sensor.

manufunk avatar manufunk commented on August 10, 2024

For me none of the solutions worked. However I solved it now

  1. Navigate to the MMM-PIR-Sensor folder
  2. Run npm install --save-dev electron-rebuild
  3. Remove the node-modules folder, as well as the packages-lock.json file.
  4. Run npm install
  5. Run ./node_modules/.bin/electron-rebuild to rebuild everything

Now it is working. Hope this helps ;)

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.