MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    Error with npm run config:check (noob)

    Troubleshooting
    2
    11
    382
    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.
    • J
      Joeritn last edited by

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

        @Joeritn config check is broken on the release.

        Sam

        Create a working config
        How to add modules

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

          So does this mean there’s nothing I can do about this, and wait for an update to resolve the issue?

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

            @Joeritn u can ask for help. fix won’t be for a couple months more than likely

            what is the problem?

            Sam

            Create a working config
            How to add modules

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

              @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.

              S 2 Replies Last reply Reply Quote 0
              • S
                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

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • S
                  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

                  Create a working config
                  How to add modules

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

                      @Joeritn not check config. that is broken

                      the error from npm start

                      Sam

                      Create a working config
                      How to add modules

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        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
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy