Read the statement by Michael Teeuw here.
MM on Windows - Updated now get black screen
-
I was running an old version of Magic Mirror on a Windows 10 build and I decided to update my version.
After updating, I got an error because my package.json still referenced display so I changed it to:"main": "js/electron.js", "scripts": { "start": ./node_modules/.bin/electron js/electron.js", "start:dev": ./node_modules/.bin/electron js/electron.js dev",
When I run npm start, I get this:
PS C:\Users\CompName\MagicMirror> npm start npm ERR! code EJSONPARSE npm ERR! path C:\Users\CompName\MagicMirror/package.json npm ERR! JSON.parse Unexpected token "." (0x2E) in JSON at position 172 while parsing near "...pts\": {\r\n\t\t\"start\": ./node_modules/.bin/..." npm ERR! JSON.parse Failed to parse JSON data. npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\CompName\AppData\Local\npm-cache\_logs\2023-04-17T12_59_59_873Z-debug-0.log
Any help is greatly appreciated!
-
@beachjosh77 yes, you STILL have to follow the special windows instructions
package.json is updated and replaced every release…
https://docs.magicmirror.builders/getting-started/installation.html#other-operating-systems
-
@beachjosh77 yes? you have to do all the install steps again
manually npm install in fonts and vendors and change package.json.
see the doc
-
@beachjosh77 also, there is a bug, for windows , so you have to get the next version develop branch
https://forum.magicmirror.builders/topic/14327/testing-new-fixes-or-solving-current-problems-with-next-release-code -
@sdetweil Thank you for replying,
I followed your instructions and ran:cd ~/MagicMirror git checkout develop git pull npm install
but I still get
npm ERR! code EJSONPARSE npm ERR! path C:\Users\CompName\MagicMirror/package.json npm ERR! JSON.parse Unexpected token "." (0x2E) in JSON at position 181 while parsing near "...ts\": {\r\n\t\t\"start\": ./node_modules/.bin/..." npm ERR! JSON.parse Failed to parse JSON data. npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\CompName\AppData\Local\npm-cache\_logs\2023-04-17T18_21_14_409Z-debug-0.log
-
@beachjosh77 yes, you STILL have to follow the special windows instructions
package.json is updated and replaced every release…
https://docs.magicmirror.builders/getting-started/installation.html#other-operating-systems
-
@sdetweil I forgot to mention, I also ran npm install in fonts and vendors and changed package.json to remove the display again
-
@beachjosh77 said in MM on Windows - Updated now get black screen:
EJSONPARSE
maybe you edited, but you messed it up
-
@sdetweil That worked, thank you!