Read the statement by Michael Teeuw here.
Electron CPU usage
-
@Reotch2 hmmm can you try this: npm install npm@latest -g
-
@loctruong96 Yup… that did the trick. odd… seems like I’ve done the same steps 10 times, but it worked on the 11th.
I can’t seem to find electron under MagicMirror/node_modules/ to verify the version. Where else can I look?
-Rich
-
@Reotch2 wow… it seems different people have different version of npm installed and you need the latest one. I will add that into the steps. Thank you for verifying. Good luck on your project!
As for electron version you can confirm by trying “npm list -g” or “npm list” depend on global variable settings of your packages. -
@Reotch2 said in Electron CPU usage:
I keep getting the same issue as @EventHorizon but none of his fixes seem to work (sudo npm install -g electron --unsafe-perm=true) or (nom @latest -g).
I’m starting with a fresh STRETCH install, and get to step 9 (npm install && npm start) where I get the (types/node) fault.
Any ideas?Personally, I had some troubles with Stretch, so I went back to Jessie, July release I believe. I’m guessing that most are using Jessie as well. Also, I think that with an installation of MM 2.1.0 you get Electron 1.4.15 by default. That combination is what we have found to work best regarding the CPU usage issue.
sudo npm install electron@1.4.15
has worked for everyone. I don’t know why it wasn’t working for you. Perhaps there is something else going on there -
@loctruong96 said in Electron CPU usage:
it seems different people have different version of npm installed and you need the latest one.
With regards to this topic only, you do NOT need or want the latest version of npm.
You can also find the version of npm here MagicMirror/node_modules/electron/dist/version
-
This post is deleted! -
@Mykle1 Agree, i was thinking the same thing. But some users are experiencing the problem where their npm failed to run install and start which i can only think of updating it which turned out to get it to work so far. I have also indicated a note in the install guide to have people aware of it.
-
This post is deleted! -
@cowboysdude said in Electron CPU usage:
my bathroom mirror is a pi and it’s updated and I’m not having any of these issues…
Would you please post your results, as everyone has above, for comparison? Raspbian version, MM version, Electron version and Pi version, and your nmon results
-
Yeah, many didn’t update npm and have no problem whatsoever, only two users reported having 404 problem and only 1 user tried to npm install npm@latest -g and it worked for him. I made a note in my guide up in the thread in regard of this issue.