Read the statement by Michael Teeuw here.
Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10
-
@aab142 u need to change the startstring to
"start":"node_modules/.bin/electron js/electron.js"
-
@sdetweil Perfect timing…thanks! I was trying “npm start” and “npm serveronly” with no luck. I’ll give it a go.
-
Just for clarity, I enter (without starting/ending quotes), npm “start”:“node_modules/.bin/electron js/electron.js”???
-
@dwburger you have to change the “start”: line in package.json to the text I provided
-
OK…I’ll work on that.
-
@dwburger then npm start will work…
npm ???, executes the script next to ??? in package.json
-
@sdetweil Yep, it works…thanks!
-
Sam, is there something that I need to change in the original post that is causing problems?
-
@Mykle1 May I butt in here. I was the one who started the question. I had to change the “start:” string in the package.json file to:
“start”:“node_modules/.bin/electron js/electron.js”
As Sam instructed. Once I did that, the “npm start” command got my MM2 running.
Thanks, BTW, for creating the walkthrough. I’m thrilled to have MM2 running on my old Acer laptop!
-
Oh, I thought perhaps something in the tutorial was wrong. I did not know that MM changed in a way that caused the tutorial to fail. :-(
Thanks, BTW, for creating the walkthrough. I’m thrilled to have MM2 running on my old Acer laptop!
You’re welcome. When I wrote this I was thrilled as well and have since moved to strictly laptop boards, However, I moved from Windows to ubuntu and I’ve never been happier. MM loves linux (ubuntu) and runs beautifully under it, without jumping through any hoops for Windows. It also uses far less resources than Windows. Consider it. You won’t be sorry.
And here it is.
https://forum.magicmirror.builders/topic/6994/mm-and-ubuntu-made-for-each-other