Read the statement by Michael Teeuw here.
Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10
-
@sdetweil said in Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10:
“start”:“node_modules/.bin/electron js/electron.js”,
I did that sam still doesn’t work sorry to be a bother
-
-
@sdetweil said in Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10:
@swvalenti and what is the message?
what npm version are u running?
npm -v
this is what i get and below is version
C:\Users\Svale\MagicMirror>npm start > magicmirror@2.18.0 start C:\Users\Svale\MagicMirror > electron js\electron.js 'electron' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! magicmirror@2.18.0 start: `electron js\electron.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.18.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Svale\AppData\Roaming\npm-cache\_logs\2022-03-21T22_10_23_329Z-debug.log C:\Users\Svale\MagicMirror>npm -v 6.14.0 C:\Users\Svale\MagicMirror> -
@swvalenti said in Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10:
electron js\electron.js
u still have it wrong
“node_modules/.bin/electron electron.js”
electron is not in the path, so you have to give it the path to the executable
once again different versions of node and npm require slightly different solutions…
this is not an MM problem… they keep messing it up (in my opinion) -
@sdetweil oh well I give up I tried all the steps, thanks for all the help and patience
-
This post is deleted! -
@sdetweil the only thing that isn’t working now is when I run npm init-y in each module folder the module in the dev window is still asking for replace instead of request
-
@swvalenti you don’t run npm init unless u need to. only if u need to install a library that mm doesn’t reference anymore
-
@swvalenti said in Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10:
is still asking for replace instead of request
what?
words not clear
-
@sdetweil said in Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10:
@swvalenti said in Complete Walkthrough - Install MagicMirror on a PC - Windows 7/10:
is still asking for replace instead of request
what?
words not clear
Uncaught TypeError: Cannot read properties of undefined (reading 'replace') at cmpVersions (module.js:525) at Function.Module.register (module.js:502) at MMM-OpenWeatherForecast.js:41I did what you said but still get this error for some reason
-
@swvalenti ok, sometimes this is because of a typo in the config position for the module
-
This post is deleted! -
This post is deleted! -
-
Is there a way to make a desktop shortcut to start MagicMirror?
-
@DanClarkCBET3 sure. create a batch file
mm.cmd
in the installers folder, and then use that for the shortcut
mm.cmd should do
@npm start
-
My apologies if the answer to my question is located somewhere in this long thread. As a quick method of bringing some MM functionality to my kids in college, I’d like to install MM onto their laptops and have it autorun at start (like a batch file) and run in a small window.
I see that I can install it on their laptops and I know how to create a batch file, but what I don’t know is how to ensure that a linux program starts in a windows batch file and how to get it to autosize to a small window.
Has anyone done that?
-
@CheapDad use PM2 to auto launch
this is a node application
-
@sdetweil Don’t think it is an easy straight forward setup for PM2 on Windows to launch the mirror or am I mistaken? Would he have to setup
pm2-windows-serviceand then perform some other setups to get PM2 to work to launch MM on Windows at startup? -
@mumblebaj pm2 setup does all that …
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