Read the statement by Michael Teeuw here.
Need some help installing on Win10
-
@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' stringor 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… -
@sdetweil I didn’t do the extra steps. I was hoping to get the confirmation that I needed a working config.js that the walkthrough speaks about. I’ll run those extra steps.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login