Read the statement by Michael Teeuw here.
MMM-usonic Problems
-
@sdetweil
So i tried redownloading the module andi get this error when inpm install
> electron-rebuild -e ../../node_modules/electron-prebuilt An unhandled error occurred inside electron-rebuild Unable to find electron's version number, either install it or specify an explicit version Error: Unable to find electron's version number, either install it or specify an explicit version at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/electron-rebuild/lib/src/cli.js:86:19 at Generator.next (<anonymous>) at fulfilled (/home/pi/MagicMirror/modules/MMM-Swipe/node_modules/electron-rebuild/lib/src/cli.js:6:58) npm ERR! code ELIFECYCLE npm ERR! errno 255 npm ERR! MMM-Swipe@1.1.1 postinstall: `electron-rebuild -e ../../node_modules/electron-prebuilt` npm ERR! Exit status 255 npm ERR! npm ERR! Failed at the MMM-Swipe@1.1.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
it says it cant find the electron version number, but idk how to fix it
-
@sdetweil
Any ideas? -
@sgarg15 maybe can look tomorrow, not home now
-
@sdetweil that module (mmm-usonic) is not for magic mirror, but a library for a potential module to use to talk to the hardware…
sadly has same labeling and same verbiage (module)
he wrote MMM-Swipe, which uses his library (mmm-usonic)
-
@sgarg15 to fix the electron rebuild problem,
the package.json file in MMM-Swipe and change
this
"postinstall": "node_modules/.bin/electron-rebuild -e ../../node_modules/electron-prebuilt"
to this
"postinstall": "node_modules/.bin/electron-rebuild"
-
@sdetweil So the install worked properly but then when i ran
sudo npm start
it gave this error[1580:0329/130746.224199:FATAL:electron_main_delegate.cc(211)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Any idea what that means?
-
@sgarg15 what version of electron are u running?
-
@sgarg15 do NOT use sudo, just npm start
-
@sdetweil I am pretty sure i updated the electron yesterday using
npm install --save-dev electron@latest
-
@sgarg15 do not use sudo