Read the statement by Michael Teeuw here.
Need some help installing on Win10
-
I’m in the process of installing the MM software on my daughter’s laptop as an interim solution until I can build her a proper mirror.
I followed the following instructions:
https://forum.magicmirror.builders/topic/4089/complete-walkthrough-install-magicmirror-on-a-pc-windows-7-10
I completed the npm install step and then ran npm start. I then got this error:
> magicmirror@2.20.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 'DISPLAY' is not recognized as an internal or external command, operable program or batch file.
Based upon the guidance in this thread:
https://forum.magicmirror.builders/topic/12543/installing-magic-mirror-on-windows-10?lang=en-US&page=1
I edited out the “DISPLAY” entries. I re-ran npm start and got this:
> magicmirror@2.20.0 start > node_modules/.bin/electron js/electron.js 'node_modules' is not recognized as an internal or external command, operable program or batch file.
I’m stuck. Can anyone help?
-
@CheapDad yes npm screwed it up for windows.
change each / to \\
on the start clause unedited the display off of
-
@sdetweil Sam, add the display entries back in? Otherwise, is this correct?
"start": "node_modules\\.bin/electron js\\electron.js", "start:dev": "node_modules\\.bin/electron js\\electron.js dev",
-
@CheapDad said in Need some help installing on Win10:
“start”: “node_modules\\.bin/electron js\\electron.js”,
all of the \
u missed the bin/electron
-
@sdetweil Sam, I made those corrections and edited the config.js. I commented out all of the modules except the clock. (My intent is to only have one module, not yet installed, running.)
When I did an npm start with only the sample config.js present, I got a black screen. I could press “alt” to get to the “File” menu and close MM.
When I ran MM from Git BASH, I got another black screen, except this time “alt” did not do anything. “alt” and “esc” would minimize MM, but that’s it. Here’s what GIT BASH displays when I ran npm start with my edited config.js:
$ npm start npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. > magicmirror@2.20.0 start > node_modules\.bin\electron js\electron.js [09.08.2022 20:50.32.077] [LOG] Starting MagicMirror: v2.20.0 [09.08.2022 20:50.32.082] [LOG] Loading config ... [09.08.2022 20:50.32.091] [LOG] Loading module helpers ... [09.08.2022 20:50.32.092] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: TypeError: Cannot read properties of undefined (reading 'split') [09.08.2022 20:50.32.093] [LOG] Loading module helpers ... [09.08.2022 20:50.32.094] [ERROR] App threw an error during load [09.08.2022 20:50.32.095] [ERROR] TypeError: Cannot read properties of undefined (reading 'split') at loadModule (C:\Users\Hannah\magicmirror\js\app.js:108:27) at loadNextModule (C:\Users\Hannah\magicmirror\js\app.js:165:5) at loadModules (C:\Users\Hannah\magicmirror\js\app.js:176:3) at C:\Users\Hannah\magicmirror\js\app.js:225:4 at loadConfig (C:\Users\Hannah\magicmirror\js\app.js:81:4) at App.start (C:\Users\Hannah\magicmirror\js\app.js:212:3) at Object.<anonymous> (C:\Users\Hannah\magicmirror\js\electron.js:159:7) at Module._compile (node:internal/modules/cjs/loader:1118:14) at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) at Module.load (node:internal/modules/cjs/loader:988:32) [09.08.2022 20:50.32.097] [ERROR] Whoops! There was an uncaught exception... [09.08.2022 20:50.32.101] [ERROR] TypeError: Cannot read properties of undefined (reading 'split') at loadModule (C:\Users\Hannah\magicmirror\js\app.js:108:27) at loadNextModule (C:\Users\Hannah\magicmirror\js\app.js:165:5) at loadModules (C:\Users\Hannah\magicmirror\js\app.js:176:3) at C:\Users\Hannah\magicmirror\js\app.js:225:4 at loadConfig (C:\Users\Hannah\magicmirror\js\app.js:81:4) at App.start (C:\Users\Hannah\magicmirror\js\app.js:212:3) at Object.<anonymous> (C:\Users\Hannah\magicmirror\js\electron.js:159:7) at Module._compile (node:internal/modules/cjs/loader:1118:14) at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) at Module.load (node:internal/modules/cjs/loader:988:32) [09.08.2022 20:50.32.103] [ERROR] MagicMirror┬▓ will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [09.08.2022 20:50.32.104] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [09.08.2022 20:50.32.201] [LOG] Launching application. [11036:0809/205232.493:ERROR:gpu_init.cc(481)] Passthrough is not supported, GL is disabled, ANGLE is
-
@CheapDad usually this is a bad position string
-
@sdetweil said in Need some help installing on Win10:
@CheapDad usually this is a bad position string
Sam, my apologies but I have no idea what this means. A google search didn’t reveal anything that appeared to be on point either.
-
{ module: ",,,,,,", position: "xxx_yyy", <----- that thing (the 'position' string
or mis-spelling ‘position’
-
@sdetweil Thank you! Two other questions:
-
I assume that since this latest black screen occurred after I used my edited config.js, that’s where I need to look for the error. Correct?
-
Once that correction is made, should I then see the MM running in a window? I ask because I had received a black screen previously using the sample config.js
-
-
@CheapDad you did the two extra steps to install in fonts and vendor , right?
the sample config should work unchanged
it should be the same as on linux… full screen…