• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Config error

Scheduled Pinned Locked Moved Solved Troubleshooting
13 Posts 5 Posters 2.9k Views 3 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.
  • J Offline
    justjim1220 Module Developer @Cr4z33
    last edited by Feb 11, 2019, 11:46 AM

    @cr4z33
    try: npm run config:check

    "Life's Too Short To Dance With Ugly People"
    Jim Hallock - 1995

    C 2 Replies Last reply Feb 11, 2019, 11:49 AM Reply Quote 0
    • C Offline
      Cr4z33 @justjim1220
      last edited by Feb 11, 2019, 11:49 AM

      @justjim1220 thanks didn’t know about that. :)

      Will run it as soon as I get home.

      1 Reply Last reply Reply Quote 1
      • B Offline
        BKeyport Module Developer
        last edited by Feb 11, 2019, 11:54 AM

        You have to be in the MM directory, FWIW.

        I have a script set up in my root directory:
        cd ~/MagicMirror
        npm run config:check
        cd ~

        The "E" in "Javascript" stands for "Easy"

        C 1 Reply Last reply Feb 11, 2019, 12:03 PM Reply Quote 1
        • C Offline
          Cr4z33 @BKeyport
          last edited by Feb 11, 2019, 12:03 PM

          @bkeyport I know it. 😜

          1 Reply Last reply Reply Quote 0
          • C Offline
            Cr4z33 @justjim1220
            last edited by Feb 11, 2019, 2:21 PM

            @justjim1220 the command stopped already at line 8 so I couldn’t find out where the error was.

            pi@raspberrypi:~/MagicMirror $ npm run config:check
            
            > magicmirror@2.6.0 config:check /home/pi/MagicMirror
            > node tests/configs/check_config.js
            
            Checking file...  /home/pi/MagicMirror/config/config.js
            Line 1 col 2 Expected an assignment or function call and instead saw an expression.
            Line 1 col 7 Missing semicolon.
            Line 1 col 8 Expected an assignment or function call and instead saw an expression.
            Line 1 col 14 Missing semicolon.
            Line 1 col 15 Expected an assignment or function call and instead saw an expression.
            Line 1 col 21 Missing semicolon.
            Line 2 col 2 Misleading line break before '*'; readers may interpret this as an expression boundary.
            Line 3 col 2 Expected an identifier and instead saw '*'.
            Line 3 col 2 Expected an assignment or function call and instead saw an expression.
            Line 3 col 3 Missing semicolon.
            Line 3 col 4 Expected an assignment or function call and instead saw an expression.
            Line 3 col 6 Missing semicolon.
            Line 3 col 7 Expected an assignment or function call and instead saw an expression.
            Line 3 col 14 Missing semicolon.
            Line 3 col 15 Expected an assignment or function call and instead saw an expression.
            Line 3 col 20 Missing semicolon.
            Line 4 col 2 Label 'http' on * statement.
            Line 4 col 2 Expected an identifier and instead saw '*'.
            Line 4 col 2 Expected an assignment or function call and instead saw an expression.
            Line 4 col 3 Missing semicolon.
            Line 4 col 4 Expected an assignment or function call and instead saw an expression.
            Line 4 col 7 Missing semicolon.
            Line 5 col 2 Expected an identifier and instead saw '*'.
            Line 5 col 2 Expected an assignment or function call and instead saw an expression.
            Line 5 col 3 Missing semicolon.
            Line 6 col 2 Expected an identifier and instead saw '*'.
            Line 6 col 2 Expected an assignment or function call and instead saw an expression.
            Line 6 col 3 Missing semicolon.
            Line 6 col 4 Expected an assignment or function call and instead saw an expression.
            Line 6 col 7 Missing semicolon.
            Line 6 col 8 Expected an assignment or function call and instead saw an expression.
            Line 6 col 12 Missing semicolon.
            Line 6 col 13 Expected an assignment or function call and instead saw an expression.
            Line 6 col 24 Missing semicolon.
            Line 6 col 25 Expected an assignment or function call and instead saw an expression.
            Line 6 col 28 Missing semicolon.
            Line 6 col 29 Expected an assignment or function call and instead saw an expression.
            Line 6 col 32 Missing semicolon.
            Line 6 col 33 Expected an assignment or function call and instead saw an expression.
            Line 6 col 36 Missing semicolon.
            Line 6 col 37 Expected an assignment or function call and instead saw an expression.
            Line 6 col 48 Missing semicolon.
            Line 6 col 49 Expected an assignment or function call and instead saw an expression.
            Line 6 col 53 Missing semicolon.
            Line 7 col 2 Misleading line break before '*'; readers may interpret this as an expression boundary.
            Line 7 col 4 Expected an assignment or function call and instead saw an expression.
            Line 7 col 7 Missing semicolon.
            Line 8 col 2 Label 'https' on * statement.
            Line 9 col 2 Unbegun comment.
            Line 8 col 2 Expected an identifier and instead saw '*'.
            Line 8 col 2 Too many errors. (1% scanned).
            
            J 2 Replies Last reply Feb 11, 2019, 2:27 PM Reply Quote 0
            • J Offline
              justjim1220 Module Developer @Cr4z33
              last edited by Feb 11, 2019, 2:27 PM

              @cr4z33

              line 1 needs a /* at the very top left

              the output you posted tells you where to look for the errors

              "Life's Too Short To Dance With Ugly People"
              Jim Hallock - 1995

              C 1 Reply Last reply Feb 11, 2019, 2:41 PM Reply Quote 0
              • J Offline
                justjim1220 Module Developer @Cr4z33
                last edited by Feb 11, 2019, 2:33 PM

                @cr4z33

                looks like the missing /* is causing all the rest of the error, fix that one and you should be good to go.

                "Life's Too Short To Dance With Ugly People"
                Jim Hallock - 1995

                C 1 Reply Last reply Feb 11, 2019, 2:59 PM Reply Quote 0
                • C Offline
                  Cr4z33 @justjim1220
                  last edited by Feb 11, 2019, 2:41 PM

                  @justjim1220 good catch there thanks, but unfortunately I still get the config error. :disappointed_face:

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Cr4z33 @justjim1220
                    last edited by Feb 11, 2019, 2:59 PM

                    @justjim1220 sorry didn’t read properly your suggestion and missed that forward slash! :smiling_face:

                    Everything is sorted now thanks again!

                    J B 2 Replies Last reply Feb 11, 2019, 5:43 PM Reply Quote 1
                    • J Offline
                      justjim1220 Module Developer @Cr4z33
                      last edited by Feb 11, 2019, 5:43 PM

                      @cr4z33 glad to hear and you are fery welcome! :smiling_face_with_sunglasses:

                      "Life's Too Short To Dance With Ugly People"
                      Jim Hallock - 1995

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        6/13
                        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