Read the statement by Michael Teeuw here.
Installing Magic mirror on windows 10
-
Hi, everyone!
I have a task to install Magic Mirror on Windows. And I am very happy to find here. I tried the steps, but it still has error. My pc is Windows 10.
I also changed package.json from:
“start”: “DISPLAY=”${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js",
to
“start”: “node_modules/.bin/electron js/electron.js”,
I am new to JS, please tell me where I am wrong. Thank you!This is my log:
ssdrive@home MINGW64 ~/MagicMirror
$ npm install --only=prodmagicmirror@2.12.0 install C:\Users\ssdrive\MagicMirror
echo "Installing vendor files …
" && cd vendor && npm install --loglevel=error"Installing vendor files …
magicmirror@2.12.0 postinstall C:\Users\ssdrive\MagicMirror
npm run install-fonts && echo "MagicMirror installation finished successfully!
"magicmirror@2.12.0 install-fonts C:\Users\ssdrive\MagicMirror
echo "Installing fonts …
" && cd fonts && npm install --loglevel=error"Installing fonts …
"MagicMirror installation finished successfully!
audited 1050 packages in 16.723s75 packages are looking for funding
runnpm fund
for detailsfound 3 low severity vulnerabilities
runnpm audit fix
to fix them, ornpm audit
for detailsssdrive@home MINGW64 ~/MagicMirror
$ cd vendorssdrive@home MINGW64 ~/MagicMirror/vendor
$ npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})added 82 packages from 57 contributors and audited 150 packages in 15.029s
found 8 vulnerabilities (7 low, 1 high)
runnpm audit fix
to fix them, ornpm audit
for detailsssdrive@home MINGW64 ~/MagicMirror/vendor
$ cd …\fonts
bash: cd: …fonts: No such file or directoryssdrive@home MINGW64 ~/MagicMirror/vendor
$ cd …ssdrive@home MINGW64 ~/MagicMirror
$ cd fontsssdrive@home MINGW64 ~/MagicMirror/fonts
$ npm install
added 1 package from 1 contributor and audited 1 package in 0.993s
found 0 vulnerabilitiesssdrive@home MINGW64 ~/MagicMirror/fonts
$ cd …ssdrive@home MINGW64 ~/MagicMirror
$ notepad package.jsonssdrive@home MINGW64 ~/MagicMirror
$ npm start
npm ERR! code EJSONPARSE
npm ERR! file C:\Users\ssdrive\MagicMirror\package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token , in JSON at position 209 while parsing near ‘…tron js/electron.js",
npm ERR! JSON.parse “server”: "node …’
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse 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\ssdrive\AppData\Roaming\npm-cache_logs\2020-08-09T20_33_43_328Z-debug.logssdrive@home MINGW64 ~/MagicMirror
$ npm start
npm ERR! code EJSONPARSE
npm ERR! file C:\Users\ssdrive\MagicMirror\package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token , in JSON at position 209 while parsing near ‘…tron js/electron.js",
npm ERR! JSON.parse “server”: "node …’
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse 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\ssdrive\AppData\Roaming\npm-cache_logs\2020-08-09T20_41_40_531Z-debug.logssdrive@home MINGW64 ~/MagicMirror
$ -
@vivian0239 said in Installing Magic mirror on windows 10:
~/MagicMirror/vendor
$ cd …\fonts
bash: cd: …fonts: No such file or directory
ssdrive@home MINGW64 ~/MagicMirror/vendor
$ cd …
ssdrive@home MINGW64 ~/MagicMirror
$ cd fonts
ssdrive@home MINGW64 ~/MagicMirror/fonts
$ npm install
added 1 package from 1 contributor and audited 1 package in 0.993s
found 0 vulnerabilitiesthere are 3 dots in the CD commands change it to 2 dots
do NOT install under min.
just open a command prompt (CMD.exe) and do npm install
-
‘node_moudles’ is not recognized as an internal or external command,
operable program or batch file. -
@sdetweil ‘node_moudles’ is not recognized as an internal or external command,
operable program or batch file.
please help me thank you -
@suqiqi where do u see that?
the folder is node_modules -
Hi all, I am giving this a try and running into the same errors as above, i have followed the advise but i dont get the black screen, after the error fix for display, i get new error:
$ npm startmagicmirror@2.14.0 start C:\Users\Richard\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.14.0 start:electron js/electron.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.14.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\Richard\AppData\Roaming\npm-cache_logs\2021-03-29T19_41_46_132Z-debug.logany help here would be great, thanks
-