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

npm start problem ELIFECYCLE

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 4 Posters 3.5k 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.
  • E Offline
    emrah_asl
    last edited by Sep 6, 2020, 9:35 AM

    Yes, thank you very much for your small adjustment.

    1 Reply Last reply Reply Quote 0
    • I Offline
      iNeusch @sdetweil
      last edited by Jan 3, 2021, 7:23 PM

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

      S 1 Reply Last reply Jan 3, 2021, 7:26 PM Reply Quote 0
      • S Offline
        sdetweil @iNeusch
        last edited by sdetweil Jan 3, 2021, 7:30 PM Jan 3, 2021, 7:26 PM

        @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 Jan 3, 2021, 7:30 PM Reply Quote 0
        • I Offline
          iNeusch @sdetweil
          last edited by Jan 3, 2021, 7:30 PM

          @sdetweil ok thanks :)

          S 1 Reply Last reply Jan 3, 2021, 7:45 PM Reply Quote 0
          • S Offline
            sdetweil @iNeusch
            last edited by Jan 3, 2021, 7:45 PM

            @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 Oct 4, 2021, 4:34 PM

              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 Oct 4, 2021, 4:36 PM Reply Quote 0
              • S Offline
                sdetweil @bert269
                last edited by sdetweil Oct 4, 2021, 4:47 PM Oct 4, 2021, 4:36 PM

                @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 Oct 4, 2021, 4:45 PM

                  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