@sdetweil I have the same error, tried your commands but running into another issue:
⠼ Building module: epoll, Completed: 0make: Verzeichnis „/home/pi/MagicMirror/mo dules/MMM-PIR-Sensor/node_modules/epoll/build“ wird betreten
CXX(target) Release/obj.target/epoll/src/epoll.o
⠴ Building module: epoll, Completed: 0In file included from ../../nan/nan.h:288 ,
from ../src/epoll.cc:15:
../../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: epoll, Completed: 0make: *** [epoll.target.mk:117: Release/ob j.target/epoll/src/epoll.o] Fehler 1
make: Verzeichnis „/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epol l/build“ wird verlassen
✖ Rebuild Failed
An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_mod ules/epoll'.
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-PIR-Sensor/n ode_modules/epoll'.
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_mod ules/electron-rebuild/lib/src/module-rebuilder.js:94:9)
at async Rebuilder.rebuildModuleAt (/home/pi/MagicMirror/node_modules/electr on-rebuild/lib/src/rebuild.js:226:9)
at async Rebuilder.rebuild (/home/pi/MagicMirror/node_modules/electron-rebui ld/lib/src/rebuild.js:184:17)
at async /home/pi/MagicMirror/node_modules/electron-rebuild/lib/src/cli.js:1 54:9
Do you have an idea how to solve it?
//edit: Just removed the MMM-PIR-Sensor directory, cloned it again from GitHub and made a fresh installation worked. Seems like I messed up the node_modules folder.