Read the statement by Michael Teeuw here.
MMM Remote Controle - starting issus
-
@ernst-jan said in MMM Remote Controle - starting issus:
npm/logs
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’, ‘dev’ ]
2 info using npm@5.6.0
3 info using node@v9.11.2
4 verbose stack Error: missing script: start
4 verbose stack at run (/usr/lib/node_modules/npm/lib/run-script.js:151:19)
4 verbose stack at /usr/lib/node_modules/npm/lib/run-script.js:61:5
4 verbose stack at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:115:5
4 verbose stack at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:402:5
4 verbose stack at checkBinReferences (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:357:45)
4 verbose stack at final (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:400:3)
4 verbose stack at then (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:160:5)
4 verbose stack at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:348:12
4 verbose stack at /usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16
4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:525:3)
5 verbose cwd /home/pi/.local/share/Trash/files/MMM-Remote-Control/MMM-Remote-Control
6 verbose Linux 4.14.79-v7+
7 verbose argv “/usr/bin/node” “/usr/bin/npm” “start” “dev”
8 verbose node v9.11.2
9 verbose npm v5.6.0
10 error missing script: start
11 verbose exit [ 1, true ] -
@sdetweil said in MMM Remote Controle - starting issus:
npm start dev
/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js
-
@ernst-jan don’t understand your reply.
From the MagicMirror folder do
npm start dev
Then as per my previous instructions
-
Starting MagicMirror: v2.6.0
Loading config …
WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
Loading module helpers …
Initializing new module helper …
Module helper loaded: updatenotification
No helper found for module: helloworld.
All module helpers loaded.
Starting server on port 8080 …
Server started …
Connecting socket for: updatenotification
Sockets connected & modules started …
Whoops! There was an uncaught exception…
{ Error: listen EADDRINUSE 127.0.0.1:8080
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at Server.setupListenHandle [as _listen2] (net.js:1351:14)
at listenInCluster (net.js:1392:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1501:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:97:10)
code: ‘EADDRINUSE’,
errno: ‘EADDRINUSE’,
syscall: ‘listen’,
address: ‘127.0.0.1’,
port: 8080 }
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
Launching application.main.js:343 Config file is missing! Please create a config file.
loadConfig @ main.js:343
19:03:05.148 -
@ernst-jan it is already running. Need to stop it before starting again
-
@ernst-jan and syntax errors
From mm folder do
node tests/configs/check_config.js
Start at the top and correct errors reported, rerun til no errors, then do the npm start again
-
@ernst-jan said in MMM Remote Controle - starting issus:
{ module: ‘MMM-Remote-Control’ // uncomment the following line to show the URL of the remote control on the mirror position: ‘bottom_left’ // you can hide this module afterwards from the remote control itself } },
i am missing a semilicon
type this
, position: ‘bottom_left’ -
@robiv8 two close brace, only one open
Comma Missing after the module line
-
@robiv8 said in MMM Remote Controle - starting issus:
You are right! 1 close brace are to muchAnd comma missing:
This{ module: ‘MMM-Remote-Control’ , position: ‘bottom_left’ },
or this
{ module: ‘MMM-Remote-Control’, position: ‘bottom_left’ },
is the same.