Read the statement by Michael Teeuw here.
MMM-Temperature-Humidity NODE_VERSION Error
-
Hello,
I installed MMM-Temperature-Humidity, installed all directions, and run magic mirror but had an error in terminal like this:
WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module ‘/home/pi/MagicMirror/modules/MMM-Temperature-Humidity/node_modules/rpi-dht-sensor/build/Release/node_dht_sensor.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
the module (for instance, usingnpm rebuildornpm install).node version: 7.10.0
npm version 4.2.0 (tried in 4.5.0 too)How can i solve it? :/
-
go to MagicMirror/modules/MMM-Temperature-Humidity dir in a terminal window and type…
npm install
-
Already did it. Doesnt work.
-
@caner Did you get any errors during npm install?
-
@cowboysdude nope. Installed again. Its like this:
pi@ozdemir:~ $ cd ~/MagicMirror/modules/ pi@ozdemir:~/MagicMirror/modules $ git clone https://github.com/prasanthsasikumar/MMM-Temperature-Humidity.git Cloning into 'MMM-Temperature-Humidity'... remote: Counting objects: 11, done. remote: Total 11 (delta 0), reused 0 (delta 0), pack-reused 11 Unpacking objects: 100% (11/11), done. Checking connectivity... done. pi@ozdemir:~/MagicMirror/modules $ cd ~/MagicMirror/modules/MMM-Temperature-Humidity/ pi@ozdemir:~/MagicMirror/modules/MMM-Temperature-Humidity $ npm install > rpi-dht-sensor@0.1.1 install /home/pi/MagicMirror/modules/MMM-Temperature-Humidity/node_modules/rpi-dht-sensor > node-gyp rebuild make: Entering directory '/home/pi/MagicMirror/modules/MMM-Temperature-Humidity/node_modules/rpi-dht-sensor/build' CC(target) Release/obj.target/node_dht_sensor/src/bcm2835.o CXX(target) Release/obj.target/node_dht_sensor/src/node-dht-sensor.o SOLINK_MODULE(target) Release/obj.target/node_dht_sensor.node COPY Release/node_dht_sensor.node make: Leaving directory '/home/pi/MagicMirror/modules/MMM-Temperature-Humidity/node_modules/rpi-dht-sensor/build' mmm-temperature-humidity@0.1.0 /home/pi/MagicMirror/modules/MMM-Temperature-Humidity └─┬ rpi-dht-sensor@0.1.1 ├── bindings@1.2.1 └── nan@2.6.2 pi@ozdemir:~/MagicMirror/modules/MMM-Temperature-Humidity $ -
@cowboysdude but i had an error like this when install rpi-dht-sensor
pi@ozdemir:~ $ sudo apt-get install rpi-dht-sensor Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package rpi-dht-sensor pi@ozdemir:~ $ -
@caner Yes I also got an error trying to install that package… not sure why yet.
-
First you should install rpi-dht-sensor by node:
npm install rpi-dht-sensor
I have the same problem but on module:
https://github.com/bernardpletikosa/MMM-DHT-Sensor2017-06-09 10:30 +02:00: Error: The module ‘/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rpi-dht-sensor/build/Release/node_dht_sensor.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing
the module (for instance, usingnpm rebuildornpm 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-DHT-Sensor/node_modules/bindings/bindings.js:76:44)
at Object. (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rpi-dht-sensor/main.js:3:34)I did npm install and rebuild and the same.
Someone can help? -
Ok for module_version you have to run
npm rebuild --runtime=electron --target=1.3.4 --disturl=https://atom.io/download/atom-shell --abi=49
where 1.3.4 is you current version of electron and 49 is version which is required.
After this i have another problem:
**2017-06-12 11:58 +02:00: bcm2835_init: Unable to open /dev/mem: Access denied** 0|mm | 2017-06-12 11:58 +02:00: TypeError: Failed to initialize 0|mm | at DHT.read (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rpi-dht-sensor/main.js:7:18) 0|mm | at Class.checkTemperature (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_helper.js:36:32) 0|mm | at Timeout._onTimeout (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_helper.js:29:18) 0|mm | at ontimeout (timers.js:365:14) 0|mm | at tryOnTimeout (timers.js:237:5) 0|mm | at Timer.listOnTimeout (timers.js:207:5)When i run sudo npm start in MagicMirror folder i get errors.;/
npm ERR! Linux 4.9.24-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! magicmirror@2.1.1 start: `sh run-start.sh` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.1.1 start script 'sh run-start.sh'. 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! sh run-start.sh 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.logSameone can help now?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login