@sdetweil I renamed the folder and reinstalled the module, this is the result:
pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm install
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated electron-rebuild@1.11.0: Please use @electron/rebuild moving forward. There is no API change, just a package name change
npm ERR! code 7
npm ERR! path /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@6.1.0
npm ERR! gyp info using node@20.8.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp ERR! UNCAUGHT EXCEPTION
npm ERR! gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#<Object>'
npm ERR! gyp ERR! stack at createConfigFile (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/configure.js:118:21)
npm ERR! gyp ERR! stack at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/configure.js:85:9
npm ERR! gyp ERR! stack at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/mkdirp/index.js:30:20
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:189:23)
npm ERR! gyp ERR! System Linux 6.1.21-v7+
npm ERR! gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
npm ERR! gyp ERR! node -v v20.8.0
npm ERR! gyp ERR! node-gyp -v v6.1.0
npm ERR! gyp ERR! This is a bug in `node-gyp`.
npm ERR! gyp ERR! Try to update node-gyp and file an Issue if it does not help:
npm ERR! gyp ERR! <https://github.com/nodejs/node-gyp/issues>
npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2023-10-03T13_57_09_313Z-debug-0.log