I have an Intel Compute Stick which runs Windows 10 that I am planning to use for my mirror. Getting Magic Mirror running was really easy as the manual steps outlined in the README.md file are mostly cross-platform.
But I wanted to create modules and debug them using VS Code. There are a couple hurdles there.
- You can launch Magic Mirror using VS Code. You will have to create a launch.json file as outlined here. Make sure to read the comments as they are helpful. I will put my final file in a reply to this.
- You may run into an exception:
TypeError: Cannot read property 'name' of undefined
inMagicMirror\modules\default\updatenotification\node_helper.js:35:43
. The root cause of this is someError: spawn git ENOENT
messages that you may see further up in the log. I think this is an effort to check GitHub for updates…anyways it seems to do something with git and this error means it can’t find git in your path. (Basically if you opened a command prompt and typed git it would tell you that it is an unrecognized command.) Install Git from git-scm.com and that should solve it (must restart VS Code though). The installer has an option about the Windows path–choose to add Git to the path. I had GitHub Desktop installed and it apparently uses its own portable version of Git which it doesn’t add to the path.
These should get you a good running setup. Debugging works for the main code base but doesn’t seem to work for modules. That is next on my list.