npm install failed on pi zero
[email protected] postinstall /home/pi/MagicMirror/modules/MMM-PIR-Sensor electron-rebuild -e ../../node_modules/electron
/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:81 depKeys.push(...Object.keys(rootPackageJson.dependencies || {})); ^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.
npm ERR! Linux 4.14.50+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: electron-rebuild -e ../../node_modules/electron
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'electron-rebuild -e ../../node_modules/electron'.
npm ERR! 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 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