Read the statement by Michael Teeuw here.
Error with npm run config:check (noob)
-
I don’t have any clue how I should resolve this error. I’ve tried checking the file it refers to, but don’t see how I could fix anything. I don’t have any prior programming knowledge, so I’m resolving problems as I go about. Any help would be appreciated.
pi@raspberrypi:~/MagicMirror $ npm run config:check > magicmirror@2.12.0 config:check /home/pi/MagicMirror > node js/check_config.js [2020-08-06 14:57:35.794] [INFO] Checking file... /home/pi/MagicMirror/config/config.js [2020-08-06 14:57:36.054] [LOG] Line 1 col 1 Definition for rule 'prettier/prettier' was not found. /home/pi/MagicMirror/js/check_config.js:66 throw new Error("Wrong syntax in config file!"); ^ Error: Wrong syntax in config file! at /home/pi/MagicMirror/js/check_config.js:66:10 at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! magicmirror@2.12.0 config:check: `node js/check_config.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.12.0 config:check 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! /home/pi/.npm/_logs/2020-08-06T12_57_36_107Z-debug.log -
@Joeritn config check is broken on the release.
-
So does this mean there’s nothing I can do about this, and wait for an update to resolve the issue?
-
@Joeritn u can ask for help. fix won’t be for a couple months more than likely
what is the problem?
-
@sdetweil I just want to fix the error “Wrong syntax in the config file!”. I thought I might be able to fix this myself, but you’re saying that it’s broken on release.
-
@Joeritn do this,
hopefully it won’t mess up.more than it fixes
cd ~/MagicMirror npm installthey changed how checking is done, but put all the code to DO the checking in the development tree, which I don’t load to save space on the SD card. you don’t need all the test cases and testing infrastructure, cause u will never run it
-
@Joeritn but what is the error shown?
if it’s unexpected symbol, then 95% of the time I missed a trailing comma on the line before the reported error
-
@sdetweil this is the error:
Error: Wrong syntax in config file! at /home/pi/MagicMirror/js/check_config.js:66:10 at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 -
@Joeritn not check config. that is broken
the error from npm start
-
@sdetweil I did npm start in the MM folder. Is this what you mean? The mirror starts as it should, but on the bottom, there’s an error indeed. I have an internet connection.
pi@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.12.0 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [2020-08-06 15:32:13.341] [LOG] Starting MagicMirror: v2.12.0 [2020-08-06 15:32:13.356] [LOG] Loading config ... [2020-08-06 15:32:13.367] [LOG] Loading module helpers ... [2020-08-06 15:32:13.706] [LOG] Initializing new module helper ... [2020-08-06 15:32:13.708] [LOG] Module helper loaded: MMM-Remote-Control [2020-08-06 15:32:13.711] [LOG] No helper found for module: alert. [2020-08-06 15:32:13.713] [LOG] No helper found for module: clock. [2020-08-06 15:32:14.458] [LOG] Initializing new module helper ... [2020-08-06 15:32:14.459] [LOG] Module helper loaded: calendar [2020-08-06 15:32:14.460] [LOG] No helper found for module: compliments. [2020-08-06 15:32:14.461] [LOG] No helper found for module: currentweather. [2020-08-06 15:32:14.462] [LOG] No helper found for module: weatherforecast. [2020-08-06 15:32:15.232] [LOG] Initializing new module helper ... [2020-08-06 15:32:15.233] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [2020-08-06 15:32:16.144] [LOG] Initializing new module helper ... [2020-08-06 15:32:16.145] [LOG] Check MagicMirror version for node helper 'MMM-Strava' - Minimum version: 2.2.0 - Current version: 2.12.0 [2020-08-06 15:32:16.147] [LOG] Version is ok! [2020-08-06 15:32:16.148] [LOG] Module helper loaded: MMM-Strava [2020-08-06 15:32:18.042] [LOG] Initializing new module helper ... [2020-08-06 15:32:18.044] [LOG] Module helper loaded: MMM-GoogleAssistant [2020-08-06 15:32:18.103] [LOG] Initializing new module helper ... [2020-08-06 15:32:18.104] [LOG] Module helper loaded: newsfeed [2020-08-06 15:32:18.104] [LOG] All module helpers loaded. [2020-08-06 15:32:18.299] [LOG] Starting server on port 8080 ... [2020-08-06 15:32:18.303] [INFO] You're using a full whitelist configuration to allow for all IPs [2020-08-06 15:32:18.315] [LOG] Server started ... [2020-08-06 15:32:18.316] [LOG] Connecting socket for: MMM-Remote-Control [2020-08-06 15:32:18.318] [LOG] Starting node helper for: MMM-Remote-Control [2020-08-06 15:32:18.336] [LOG] Connecting socket for: calendar [2020-08-06 15:32:18.338] [LOG] Starting node helper for: calendar [2020-08-06 15:32:18.339] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify [2020-08-06 15:32:18.340] [LOG] Connecting socket for: MMM-Strava [2020-08-06 15:32:18.341] [LOG] Starting module helper: MMM-Strava [2020-08-06 15:32:18.343] [LOG] Connecting socket for: MMM-GoogleAssistant [2020-08-06 15:32:18.344] [LOG] Connecting socket for: newsfeed [2020-08-06 15:32:18.346] [LOG] Starting node helper for: newsfeed [2020-08-06 15:32:18.346] [LOG] Sockets connected & modules started ... [2020-08-06 15:32:18.360] [ERROR] Whoops! There was an uncaught exception... [2020-08-06 15:32:18.361] [ERROR] Error: listen EADDRINUSE: address already in use 0.0.0.0:8080 at Server.setupListenHandle [as _listen2] (net.js:1226:14) at listenInCluster (net.js:1274:12) at doListen (net.js:1413:7) at processTicksAndRejections (internal/process/task_queues.js:84:9) { code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '0.0.0.0', port: 8080 } [2020-08-06 15:32:18.373] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [2020-08-06 15:32:18.373] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [2020-08-06 15:32:18.501] [LOG] Launching application. -
@Joeritn cause pm2 started the 1st instance
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