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.
Read the statement by Michael Teeuw here.
Posts
-
RE: Electron CPU usage
-
RE: Electron CPU usage
@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.
-
RE: Electron CPU usage
@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. -
RE: Electron CPU usage
@Reotch2 hmmm can you try this: npm install npm@latest -g
-
RE: Electron CPU usage
@Reotch2 Hello I think this happened because electron was not successfully installed using npm as a global variable. It happened to me too and i had to reinstall electron as a global variable which is the -g at the end is for. Can you confirm that you have successfully install electron ?
-
RE: Electron CPU usage
OK, I can here by confirm that using MM 2.1.0 + Electron 1.4.15 improved performance massively. Each new transition now only uses 10-13% of CPU power (and very, very smooth). Even better than earlier report of 40%. For the specs of my pi 3 b
hardware = BCM2835
Revision = a02082
micro sd card - 16gb - class 4 (that’s right, only 4)
mouse + keyboard currently plugged in - no lag
OS = RASPBIAN STRETCH WITH DESKTOP
Thank you so much @Mykle1 for sharing your finding. Otherwise, I would be still trying to narrow down a potential work around.For those who not sure how to do this:
- Create a fresh install of RASPBIAN STRETCH WITH DESKTOP, connect to wifi, then run sudo apt-get update.
- sudo apt-get install npm
- sudo npm install electron@1.4.15 -g
- WAIT PATIENTLY FOR ELECTRON TO LOAD IN THE BACKGROUND
- a new line appear indicate electron has finished installing
- Go to your download folder, exact Magic Mirror 2.1.0
- Go to the newly exacted forlder, open another folder named config
- Change the file name Config.js.example to Config.js inside the config folder
- open terminal , cd Download/, cd MagicMirror-2.1.0, (OR whatever your location for the Magic Mirror 2.1.0 package is), npm install && npm start
9.5 If encounter error “404”, try “npm install npm@latest -g” (NOTE: some users experienced issues since they do not have the latest npm as global variable) @Reotch2 @EventHorizon - DONE!
Hopefully I will be able to return my pi 3 for a better hardware version to use with the latest Magic Mirror package but here is an acceptable work around for the time being.
-
RE: Electron CPU usage
@TiemenMoesker HOLY MOLLY, I am having this exact problem you guys are having. I double checked my hardware and revision. which are
hardware =BCM2835
Revision= a02082
and I DO have this problem, it seems nothing you guys tried work except downgrade , so I’m going to ask arrow to send me a replacement since i actually ordered BCM2837 not BCM2835. Let’s hope it work out! (mean while I will try the downgrade option, seemed to improve performance drastically for others)