I have it remove and make a new installation, after this it comes errors:
pi@Mirror:~/MagicMirror/modules/MMM-PIR-Sensor $ sudo npm install -g
epoll@0.1.21 install /usr/lib/node_modules/Magic-Mirror-Module-PIR-Sensor/node_modules/epoll
node-gyp rebuild
gyp WARN EACCES user “root” does not have permission to access the dev dir “/root/.node-gyp/6.10.0”
gyp WARN EACCES attempting to reinstall using temporary dev dir “/usr/lib/node_modules/Magic-Mirror-Module-PIR-Sensor/node_modules/epoll/.node-gyp”
make: Entering directory ‘/usr/lib/node_modules/Magic-Mirror-Module-PIR-Sensor/node_modules/epoll/build’
CXX(target) Release/obj.target/epoll/src/epoll.o
SOLINK_MODULE(target) Release/obj.target/epoll.node
COPY Release/epoll.node
make: Leaving directory ‘/usr/lib/node_modules/Magic-Mirror-Module-PIR-Sensor/node_modules/epoll/build’
Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall /usr/lib/node_modules/Magic-Mirror-Module-PIR-Sensor
electron-rebuild -e …/…/node_modules/electron
sh: 1: electron-rebuild: not found
npm ERR! Linux 4.4.50-v7+
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g”
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall: electron-rebuild -e ../../node_modules/electron
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall script ‘electron-rebuild -e …/…/node_modules/electron’.
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-PIR-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
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs Magic-Mirror-Module-PIR-Sensor
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls Magic-Mirror-Module-PIR-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-PIR-Sensor/npm-debug.log