@sdetweil said in Errors installing MMM-FlightTracker:

~/MagicMirror/node_modules/.bin/electron-rebuild

Thank you for the help. I was able to install electron-rebuild, but running the second command gets me this:

pi@raspberrypi:~/MagicMirror/modules/MMM-FlightTracker $ ~/MagicMirror/node_modules/.bin/electron-rebuild ⠦ Building module: rtl-sdr, Completed: 0make: Entering directory '/home/pi/MagicMirror/modules/MMM-FlightTracker/node_modules/rtl-sdr/build' CXX(target) Release/obj.target/rtlsdr/src/binding.o ⠋ Building module: rtl-sdr, Completed: 0In file included from /home/pi/.electron-gyp/13.5.1/include/node/node.h:67, from ../../nan/nan.h:54, from ../src/binding.cc:1: /home/pi/.electron-gyp/13.5.1/include/node/v8.h:1670:79: warning: ‘ResolveCallback’ is deprecated [-Wdeprecated-declarations] ResolveCallback callback); ^ ⠦ Building module: rtl-sdr, Completed: 0/home/pi/.electron-gyp/13.5.1/include/node/v8.h:8652:51: warning: ‘HostImportModuleDynamicallyCallback’ is deprecated [-Wdeprecated-declarations] HostImportModuleDynamicallyCallback callback); ^ ⠏ Building module: rtl-sdr, Completed: 0In file included from ../src/binding.cc:1: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^ ⠙ Building module: rtl-sdr, Completed: 0In file included from ../../nan/nan.h:2884, from ../src/binding.cc:1: ../../nan/nan_typedarray_contents.h: In constructor ‘Nan::TypedArrayContents<T>::TypedArrayContents(v8::Local<v8::Value>)’: ../../nan/nan_typedarray_contents.h:34:43: error: ‘class v8::ArrayBuffer’ has no member named ‘GetContents’; did you mean ‘IsContext’? data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset; ^~~~~~~~~~~ IsContext ⠼ Building module: rtl-sdr, Completed: 0In file included from ../../nan/nan.h:54, from ../src/binding.cc:1: ../src/binding.cc: At global scope: /home/pi/.electron-gyp/13.5.1/include/node/node.h:770:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /home/pi/.electron-gyp/13.5.1/include/node/node.h:804:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~~~~~~~~~ ../src/binding.cc:319:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(rtlsdr, Init) ^~~~~~~~~~~ ⠼ Building module: rtl-sdr, Completed: 0make: *** [rtlsdr.target.mk:111: Release/obj.target/rtlsdr/src/binding.o] Error 1 make: Leaving directory '/home/pi/MagicMirror/modules/MMM-FlightTracker/node_modules/rtl-sdr/build' ✖ Rebuild Failed An unhandled error occurred inside electron-rebuild node-gyp failed to rebuild '/home/pi/MagicMirror/modules/MMM-FlightTracker/node_modules/rtl-sdr'. For more information, rerun with the DEBUG environment variable set to "electron-rebuild". Error: `make` failed with exit code: 2 Error: node-gyp failed to rebuild '/home/pi/MagicMirror/modules/MMM-FlightTracker/node_modules/rtl-sdr'. For more information, rerun with the DEBUG environment variable set to "electron-rebuild". Error: `make` failed with exit code: 2 at NodeGyp.rebuildModule (/home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/module-type/node-gyp.js:109:19) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async ModuleRebuilder.rebuildNodeGypModule (/home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/module-rebuilder.js:94:9) at async Rebuilder.rebuildModuleAt (/home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/rebuild.js:226:9) at async Rebuilder.rebuild (/home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/rebuild.js:184:17) at async /home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/cli.js:154:9