bernardpletikosa / MMM-DHT-Sensor

MIT License
12 stars 6 forks source link

electron-rebuild failed #2

Open moFries opened 7 years ago

moFries commented 7 years ago

Hi together,

by running npm install it fails with the following message:

> Magic-Mirror-Module-DHT-Sensor@1.0.0 postinstall /home/pi/MagicMirror/modules/MMM-DHT-Sensor
> electron-rebuild -e ../../node_modules/electron-prebuilt

An unhandled error occurred inside electron-rebuild
Unable to find electron-prebuilt's version number, either install it or specify an explicit version

Error: Unable to find electron-prebuilt's version number, either install it or specify an explicit version
    at _callee$ (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/electron-rebuild/lib/cli.js:74:17)
    at tryCatch (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:63:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:337:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:96:21)
    at GeneratorFunctionPrototype.tryCatcher (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/bluebird/js/release/util.js:16:23)
    at PromiseSpawn._promiseFulfilled (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/bluebird/js/release/generators.js:97:49)
    at /home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/bluebird/js/release/generators.js:201:15
    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/electron-rebuild/lib/cli.js:197:4)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:393:7)
    at startup (bootstrap_node.js:150:9)

npm WARN Magic-Mirror-Module-DHT-Sensor@1.0.0 No repository field.
npm WARN Magic-Mirror-Module-DHT-Sensor@1.0.0 No license field.
npm ERR! Linux 4.9.20-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.10.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! Magic-Mirror-Module-DHT-Sensor@1.0.0 postinstall: `electron-rebuild -e ../../node_modules/electron-prebuilt`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the Magic-Mirror-Module-DHT-Sensor@1.0.0 postinstall script 'electron-rebuild -e ../../node_modules/electron-prebuilt'.
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 Magic-Mirror-Module-DHT-Sensor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron-rebuild -e ../../node_modules/electron-prebuilt
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs Magic-Mirror-Module-DHT-Sensor
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls Magic-Mirror-Module-DHT-Sensor
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/modules/MMM-DHT-Sensor/npm-debug.log

Any ideas?

XxXCobraXxX commented 7 years ago

Same errors here :-(

Can anyone help us please?

XxXCobraXxX commented 7 years ago

@moFries i have the solution:

Go to the "modules/MMM-DHT-Sensor/" Folder and edit the "package.json" file as follow

replace the line #14

"postinstall": "node_modules/.bin/electron-rebuild -e ../../node_modules/electron-prebuilt"

with this line:

"postinstall": "node_modules/.bin/electron-rebuild -e ../../node_modules/electron"

and then do npm install

Another problem was that the module don't have permissions to read the values from dev/mem.

The solution for this is that you have to run MagigMirror as root

I use pm2 and have only changed the mm.sh script (added sudo command) as follows:

cd ~/MagicMirror DISPLAY=:0 sudo npm start

moFries commented 7 years ago

@XxXCobraXxX

Thx, it also works for me. But I didn't do sudo for the MM. I think it's better to do this to give the MM access to the GPIO: sudo usermod -a -G gpio pi

XxXCobraXxX commented 7 years ago

@moFries that's right. MM with root permission are sure not a good solution.

I have deleted the sudo again from mm.sh, entered your line in the terminal and pm2 fails again with the permission from dev/mem.

Do you or anyone else have any idea?

Thx in advance

ezar commented 7 years ago

Same here! Help please. Regards,

ezar commented 7 years ago

https://github.com/roland-vachter/rpi-dht-sensor/issues/2

qwqoffice commented 6 years ago

@XxXCobraXxX I have added sudo to mm.sh, but the MagicMirror is no longer start success

1|mm       | Invalid MIT-MAGIC-COOKIE-1 key
1|mm       | npm
1|mm       |  ERR! Linux 4.9.59-v7+
1|mm       | npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
1|mm       | npm
1|mm       |  ERR! node v6.13.0
1|mm       | npm ERR! npm  v3.10.10
1|mm       | npm ERR! code ELIFECYCLE
1|mm       | npm ERR! magicmirror@2.2.2 start: `sh run-start.sh`
1|mm       | npm ERR!
1|mm       |  Exit status 1
1|mm       | npm ERR!
1|mm       | npm ERR! Failed at the magicmirror@2.2.2 start script 'sh run-start.sh'.
1|mm       | npm
1|mm       |  ERR! Make sure you have the latest version of node.js and npm installed.
1|mm       | npm ERR! If you do, this is most likely a problem with the magicmirror package,
1|mm       | npm ERR!
1|mm       |  not with npm itself.
1|mm       | npm ERR! Tell the author that this fails on your system:
1|mm       | npm ERR!     sh run-start.sh
1|mm       | npm
1|mm       |  ERR! You can get information on how to open an issue for this project with:
1|mm       | npm ERR!     npm bugs magicmirror
1|mm       | npm ERR! Or if that isn't available, you can get their info via:
1|mm       | npm ERR!     npm owner ls magicmirror
1|mm       | npm ERR! There is likely additional logging output above.
1|mm       | npm ERR! Please include the following file with any support request:
1|mm       | npm ERR!     /home/pi/MagicMirror/npm-debug.log
ArnoStrasbourg commented 3 years ago

Hi there,

I had the same issue (electron-rebuild) After changing in package.json electron-rebuild with electron I had another issue :

electron-rebuild -e ../../node_modules/electron

✖ Rebuild Failed

An unhandled error occurred inside electron-rebuild make : on entre dans le répertoire « /home/pi/MagicMirror/modules/MMM-DHT-Sensor/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 In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:8923:75: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations] void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); ^ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:8931:78: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations] void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); ^ ../src/node-dht-sensor.cpp: In function ‘int initialize()’: ../src/node-dht-sensor.cpp:189:23: error: too few arguments to function ‘int bcm2835_init(int)’ if (!bcm2835_init()) ^ In file included from ../src/node-dht-sensor.cpp:21: ../src/bcm2835.h:1008:16: note: declared here extern int bcm2835_init(int); ^~~~ ../src/node-dht-sensor.cpp: In function ‘void Read(const Nan::FunctionCallbackInfo&)’: ../src/node-dht-sensor.cpp:228:83: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’ readout->Set(Nan::New("humidity").ToLocalChecked(), Nan::New(humidity)); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate expects 3 arguments, 2 provided /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate expects 3 arguments, 2 provided ../src/node-dht-sensor.cpp:229:89: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’ readout->Set(Nan::New("temperature").ToLocalChecked(), Nan::New(temperature)); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate expects 3 arguments, 2 provided /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate expects 3 arguments, 2 provided ../src/node-dht-sensor.cpp:230:86: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’ readout->Set(Nan::New("isValid").ToLocalChecked(), Nan::New(result == 0)); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate expects 3 arguments, 2 provided /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate expects 3 arguments, 2 provided ../src/node-dht-sensor.cpp:231:82: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’ readout->Set(Nan::New("errors").ToLocalChecked(), Nan::New(2 - retry)); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate expects 3 arguments, 2 provided /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate expects 3 arguments, 2 provided ../src/node-dht-sensor.cpp: In function ‘void ReadSpec(const Nan::FunctionCallbackInfo&)’: ../src/node-dht-sensor.cpp:242:43: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] int sensorType = args[0]->Uint32Value(); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:2818:47: note: declared here V8_DEPRECATED("Use maybe version") uint32_t Uint32Value() const; ^~~ ../src/node-dht-sensor.cpp:256:37: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] int gpio = args[1]->Uint32Value(); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:2818:47: note: declared here V8_DEPRECATED("Use maybe version") uint32_t Uint32Value() const; ^~~ ../src/node-dht-sensor.cpp:266:83: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’ readout->Set(Nan::New("humidity").ToLocalChecked(), Nan::New(humidity)); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate expects 3 arguments, 2 provided /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate expects 3 arguments, 2 provided ../src/node-dht-sensor.cpp:267:89: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’ readout->Set(Nan::New("temperature").ToLocalChecked(), Nan::New(temperature)); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate expects 3 arguments, 2 provided /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate expects 3 arguments, 2 provided ../src/node-dht-sensor.cpp:268:86: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’ readout->Set(Nan::New("isValid").ToLocalChecked(), Nan::New(result == 0)); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate expects 3 arguments, 2 provided /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate expects 3 arguments, 2 provided ../src/node-dht-sensor.cpp:269:82: error: no matching function for call to ‘v8::Object::Set(v8::Local, Nan::imp::FactoryBase::return_t)’ readout->Set(Nan::New("errors").ToLocalChecked(), Nan::New(2 - retry)); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate expects 3 arguments, 2 provided /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, ^~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate expects 3 arguments, 2 provided ../src/node-dht-sensor.cpp: In function ‘void Initialize(const Nan::FunctionCallbackInfo&)’: ../src/node-dht-sensor.cpp:286:43: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] int sensorType = args[0]->Uint32Value(); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:2818:47: note: declared here V8_DEPRECATED("Use maybe version") uint32_t Uint32Value() const; ^~~ ../src/node-dht-sensor.cpp:294:37: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] GPIOPort = args[1]->Uint32Value(); ^ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h:2818:47: note: declared here V8_DEPRECATED("Use maybe version") uint32_t Uint32Value() const; ^~~ ../src/node-dht-sensor.cpp: At global scope: ../src/node-dht-sensor.cpp:299:11: error: variable or field ‘Init’ declared void void Init(Handle exports) { ^~ ../src/node-dht-sensor.cpp:299:11: error: ‘Handle’ was not declared in this scope ../src/node-dht-sensor.cpp:299:11: note: suggested alternative: ‘rand_r’ void Init(Handle exports) { ^~ rand_r ../src/node-dht-sensor.cpp:299:24: error: expected primary-expression before ‘>’ token void Init(Handle exports) { ^ ../src/node-dht-sensor.cpp:299:26: error: ‘exports’ was not declared in this scope void Init(Handle exports) { ^~~ In file included from ../src/node-dht-sensor.cpp:1: ../src/node-dht-sensor.cpp:307:30: error: ‘Init’ was not declared in this scope NODE_MODULE(node_dht_sensor, Init); ^~~~ /home/pi/.electron-gyp/8.5.3/include/node/node.h:566:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~ ../src/node-dht-sensor.cpp:307:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(node_dht_sensor, Init); ^~~ ../src/node-dht-sensor.cpp:307:30: note: suggested alternative: NODE_MODULE(node_dht_sensor, Init); ^~~~ /home/pi/.electron-gyp/8.5.3/include/node/node.h:566:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~ ../src/node-dht-sensor.cpp:307:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(node_dht_sensor, Init); ^~~ /home/pi/.electron-gyp/8.5.3/include/node/node.h:221:18: note: ‘node::Init’ NODE_EXTERN void Init(int argc, ^~~~ In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63, from ../src/node-dht-sensor.cpp:1: /home/pi/.electron-gyp/8.5.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: /home/pi/.electron-gyp/8.5.3/include/node/node_object_wrap.h:84:78: required from here /home/pi/.electron-gyp/8.5.3/include/node/v8.h:10579:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~ /home/pi/.electron-gyp/8.5.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: ../../nan/nan_object_wrap.h:65:61: required from here /home/pi/.electron-gyp/8.5.3/include/node/v8.h:10579:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] ../src/node-dht-sensor.cpp: In function ‘int initialize()’: ../src/node-dht-sensor.cpp:187:23: warning: control reaches end of non-void function [-Wreturn-type] sched_setscheduler(0, SCHED_FIFO, &schedp);


make: *** [node_dht_sensor.target.mk:108: Release/obj.target/node_dht_sensor/src/node-dht-sensor.o] Error 1
make : on quitte le répertoire « /home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rpi-dht-sensor/build »
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.83-v7+
gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/.bin/node-gyp" "rebuild" "--target=8.5.3" "--arch=arm" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rpi-dht-sensor
gyp ERR! node -v v10.23.2
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok

Failed with exit code: 1

Error: make : on entre dans le répertoire « /home/pi/MagicMirror/modules/MMM-DHT-Sensor/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
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:8923:75: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
   void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback);
                                                                           ^
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:8931:78: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
   void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback);
                                                                              ^
../src/node-dht-sensor.cpp: In function ‘int initialize()’:
../src/node-dht-sensor.cpp:189:23: error: too few arguments to function ‘int bcm2835_init(int)’
     if (!bcm2835_init())
                       ^
In file included from ../src/node-dht-sensor.cpp:21:
../src/bcm2835.h:1008:16: note: declared here
     extern int bcm2835_init(int);
                ^~~~~~~~~~~~
../src/node-dht-sensor.cpp: In function ‘void Read(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/node-dht-sensor.cpp:228:83: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)’
     readout->Set(Nan::New("humidity").ToLocalChecked(), Nan::New<Number>(humidity));
                                                                                   ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note:   candidate expects 3 arguments, 2 provided
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note:   candidate expects 3 arguments, 2 provided
../src/node-dht-sensor.cpp:229:89: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)’
     readout->Set(Nan::New("temperature").ToLocalChecked(), Nan::New<Number>(temperature));
                                                                                         ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note:   candidate expects 3 arguments, 2 provided
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note:   candidate expects 3 arguments, 2 provided
../src/node-dht-sensor.cpp:230:86: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)’
     readout->Set(Nan::New("isValid").ToLocalChecked(), Nan::New<Boolean>(result == 0));
                                                                                      ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note:   candidate expects 3 arguments, 2 provided
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note:   candidate expects 3 arguments, 2 provided
../src/node-dht-sensor.cpp:231:82: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)’
     readout->Set(Nan::New("errors").ToLocalChecked(), Nan::New<Number>(2 - retry));
                                                                                  ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note:   candidate expects 3 arguments, 2 provided
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note:   candidate expects 3 arguments, 2 provided
../src/node-dht-sensor.cpp: In function ‘void ReadSpec(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/node-dht-sensor.cpp:242:43: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     int sensorType = args[0]->Uint32Value();
                                           ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:2818:47: note: declared here
   V8_DEPRECATED("Use maybe version") uint32_t Uint32Value() const;
                                               ^~~~~~~~~~~
../src/node-dht-sensor.cpp:256:37: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     int gpio = args[1]->Uint32Value();
                                     ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:2818:47: note: declared here
   V8_DEPRECATED("Use maybe version") uint32_t Uint32Value() const;
                                               ^~~~~~~~~~~
../src/node-dht-sensor.cpp:266:83: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)’
     readout->Set(Nan::New("humidity").ToLocalChecked(), Nan::New<Number>(humidity));
                                                                                   ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note:   candidate expects 3 arguments, 2 provided
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note:   candidate expects 3 arguments, 2 provided
../src/node-dht-sensor.cpp:267:89: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)’
     readout->Set(Nan::New("temperature").ToLocalChecked(), Nan::New<Number>(temperature));
                                                                                         ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note:   candidate expects 3 arguments, 2 provided
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note:   candidate expects 3 arguments, 2 provided
../src/node-dht-sensor.cpp:268:86: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)’
     readout->Set(Nan::New("isValid").ToLocalChecked(), Nan::New<Boolean>(result == 0));
                                                                                      ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note:   candidate expects 3 arguments, 2 provided
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note:   candidate expects 3 arguments, 2 provided
../src/node-dht-sensor.cpp:269:82: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)’
     readout->Set(Nan::New("errors").ToLocalChecked(), Nan::New<Number>(2 - retry));
                                                                                  ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3611:37: note:   candidate expects 3 arguments, 2 provided
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:3614:37: note:   candidate expects 3 arguments, 2 provided
../src/node-dht-sensor.cpp: In function ‘void Initialize(const Nan::FunctionCallbackInfo<v8::Value>&)’:
../src/node-dht-sensor.cpp:286:43: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     int sensorType = args[0]->Uint32Value();
                                           ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:2818:47: note: declared here
   V8_DEPRECATED("Use maybe version") uint32_t Uint32Value() const;
                                               ^~~~~~~~~~~
../src/node-dht-sensor.cpp:294:37: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     GPIOPort = args[1]->Uint32Value();
                                     ^
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:2818:47: note: declared here
   V8_DEPRECATED("Use maybe version") uint32_t Uint32Value() const;
                                               ^~~~~~~~~~~
../src/node-dht-sensor.cpp: At global scope:
../src/node-dht-sensor.cpp:299:11: error: variable or field ‘Init’ declared void
 void Init(Handle<Object> exports) {
           ^~~~~~
../src/node-dht-sensor.cpp:299:11: error: ‘Handle’ was not declared in this scope
../src/node-dht-sensor.cpp:299:11: note: suggested alternative: ‘rand_r’
 void Init(Handle<Object> exports) {
           ^~~~~~
           rand_r
../src/node-dht-sensor.cpp:299:24: error: expected primary-expression before ‘>’ token
 void Init(Handle<Object> exports) {
                        ^
../src/node-dht-sensor.cpp:299:26: error: ‘exports’ was not declared in this scope
 void Init(Handle<Object> exports) {
                          ^~~~~~~
In file included from ../src/node-dht-sensor.cpp:1:
../src/node-dht-sensor.cpp:307:30: error: ‘Init’ was not declared in this scope
 NODE_MODULE(node_dht_sensor, Init);
                              ^~~~
/home/pi/.electron-gyp/8.5.3/include/node/node.h:566:36: note: in definition of macro ‘NODE_MODULE_X’
       (node::addon_register_func) (regfunc),                          \
                                    ^~~~~~~
../src/node-dht-sensor.cpp:307:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(node_dht_sensor, Init);
 ^~~~~~~~~~~
../src/node-dht-sensor.cpp:307:30: note: suggested alternative:
 NODE_MODULE(node_dht_sensor, Init);
                              ^~~~
/home/pi/.electron-gyp/8.5.3/include/node/node.h:566:36: note: in definition of macro ‘NODE_MODULE_X’
       (node::addon_register_func) (regfunc),                          \
                                    ^~~~~~~
../src/node-dht-sensor.cpp:307:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(node_dht_sensor, Init);
 ^~~~~~~~~~~
/home/pi/.electron-gyp/8.5.3/include/node/node.h:221:18: note:   ‘node::Init’
 NODE_EXTERN void Init(int* argc,
                  ^~~~
In file included from /home/pi/.electron-gyp/8.5.3/include/node/node.h:63,
                 from ../src/node-dht-sensor.cpp:1:
/home/pi/.electron-gyp/8.5.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/home/pi/.electron-gyp/8.5.3/include/node/node_object_wrap.h:84:78:   required from here
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:10579:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                reinterpret_cast<Callback>(callback), type);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/.electron-gyp/8.5.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61:   required from here
/home/pi/.electron-gyp/8.5.3/include/node/v8.h:10579:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
../src/node-dht-sensor.cpp: In function ‘int initialize()’:
../src/node-dht-sensor.cpp:187:23: warning: control reaches end of non-void function [-Wreturn-type]
     sched_setscheduler(0, SCHED_FIFO, &schedp);
     ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
make: *** [node_dht_sensor.target.mk:108: Release/obj.target/node_dht_sensor/src/node-dht-sensor.o] Error 1
make : on quitte le répertoire « /home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rpi-dht-sensor/build »
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.83-v7+
gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/.bin/node-gyp" "rebuild" "--target=8.5.3" "--arch=arm" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rpi-dht-sensor
gyp ERR! node -v v10.23.2
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok

Failed with exit code: 1
    at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/spawn-rx/lib/src/index.js:267:84)
    at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:205:16)
    at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:156:26)
    at Subscriber._error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:92:26)
    at Subscriber.error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:72:18)
    at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:92:26)
    at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:72:18)
    at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/spawn-rx/lib/src/index.js:242:65)
    at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:205:16)
    at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rxjs/internal/Subscriber.js:143:22)
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! Magic-Mirror-Module-DHT-Sensor@1.0.0 postinstall: `electron-rebuild -e ../../node_modules/electron`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the Magic-Mirror-Module-DHT-Sensor@1.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2021-02-01T23_46_52_871Z-debug.log

Very big log !!
Any idea ? Thanks in advance.
mariosgouros commented 3 years ago

I also had the same problem after renaming package.json "electron-rebuild" to "electron". It seems I can't make it work no matter how many times I tried or searchd for a "google" solution.