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, using npm rebuild ornpm install).

    node version: 7.10.0
    npm version 4.2.0 (tried in 4.5.0 too)

    How can i solve it? :/


  • Module Developer

    go to MagicMirror/modules/MMM-Temperature-Humidity dir in a terminal window and type…

    npm install



  • Already did it. Doesnt work.


  • Module Developer

    @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:~ $ 
    
    

  • Module Developer

    @caner Yes I also got an error trying to install that package… not sure why yet.


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.