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.

    npm start problem ELIFECYCLE

    Scheduled Pinned Locked Moved Troubleshooting
    12 Posts 4 Posters 3.8k Views 4 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 Offline
      sdetweil
      last edited by

      we fixed this offline. he had to edit the DISPLAY stuff out of the start script in package.json

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      I 1 Reply Last reply Reply Quote 0
      • E Offline
        emrah_asl
        last edited by

        Yes, thank you very much for your small adjustment.

        1 Reply Last reply Reply Quote 0
        • I Offline
          iNeusch @sdetweil
          last edited by

          @sdetweil Hey there, do you remember what the fix was exactly ? have the same issue… thanks !

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

            @iNeusch edit the package.json, change the start line. remove the DISPLAY stuff…

            leaving
            ./node_modules…

            not near my computer, phone is terrible for cut & paste

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            I 1 Reply Last reply Reply Quote 0
            • I Offline
              iNeusch @sdetweil
              last edited by

              @sdetweil ok thanks :)

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

                @iNeusch change

                	"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
                

                to this

                	"start": "./node_modules/.bin/electron js/electron.js",
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bert269
                  last edited by

                  I have exacthly the same problem Trying to install MM on Windows 10.
                  Followed the instructions, and got the DISPLAy errror. Followed the earlier instructions in this thread to clean it up. - no difference.
                  Followed these last instructions to remove the display, and new I get:
                  C:\Users\PC\MagicMirror>npm start
                  npm ERR! code EJSONPARSE
                  npm ERR! file C:\Users\PC\MagicMirror\package.json
                  npm ERR! JSON.parse Failed to parse json
                  npm ERR! JSON.parse Unexpected token . in JSON at position 172 while parsing near ‘…pts": {
                  npm ERR! JSON.parse “start”: ./node_modules/.bin/…’
                  npm ERR! JSON.parse Failed to parse package.json data.
                  npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.

                  Any help is appreciated, thanks.

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

                    @bert269 said in npm start problem ELIFECYCLE:

                    npm ERR! code EJSONPARSE
                    npm ERR! file C:\Users\PC\MagicMirror\package.json

                    u have a typ0… quotes are required around things in json

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bert269
                      last edited by

                      Thank - that did the trick.
                      Appreciated!

                      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 Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy