MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Error with npm run config:check (noob)

    Scheduled Pinned Locked Moved Troubleshooting
    11 Posts 2 Posters 1.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Do not disturb
      sdetweil @Joeritn
      last edited by sdetweil

      @Joeritn do this,

      hopefully it won’t mess up.more than it fixes

      cd ~/MagicMirror
      npm install
      

      they 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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Joeritn
        last edited by sdetweil

        @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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          Joeritn @sdetweil
          last edited by

          @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
          
          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Joeritn
            last edited by

            @Joeritn not check config. that is broken

            the error from npm start

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              Joeritn @sdetweil
              last edited by

              @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.
              
              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Joeritn
                last edited by

                @Joeritn cause pm2 started the 1st instance

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy