• 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 5, 2020, 12:29 PM

    Hi Guys,

    I’m trying to work MagicMirror on my Windows 10
    I did try all way , (cpm clear cache, npm install, eletcron install, deletenode_modeules directory, and re-install, delete package.json.lock etc)
    But when I call npm start server (or only npm start)
    It shows :

    magicmirror@2.12.0 start C:\Users\Emrah Aslan\Desktop\SmartWall\smartwall
    DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “server”

    ‘DISPLAY’ is not recognized as an internal or external command,
    operable program or batch file.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! magicmirror@2.12.0 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "server"
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the magicmirror@2.12.0 start 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! C:\Users\Emrah Aslan\AppData\Roaming\npm-cache_logs\2020-09-05T00_05_52_349Z-debug.log

    How can I run this, on my browser ? I need your supervisor

    S 1 Reply Last reply Sep 5, 2020, 12:33 PM Reply Quote 0
    • S Offline
      sdetweil @emrah_asl
      last edited by Sep 5, 2020, 12:33 PM

      @emrah_asl finish install ( not supported on windows)

      cd MagicMirror
      cd vendor
      npm install
      cd ..\fonts
      npm install
      cd ..
      

      then restart mm

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      E 1 Reply Last reply Sep 5, 2020, 1:08 PM Reply Quote 0
      • E Offline
        emrah_asl @sdetweil
        last edited by Sep 5, 2020, 1:08 PM

        @sdetweil said in npm start problem ELIFECYCLE:

        cd MagicMirror
        cd vendor
        npm install
        cd …\fonts
        npm install
        cd …

        Sorry, the same Issue. I tried fix this, doe not sleep 25 hours. but no result ?

        I have also Internet Information server, is this something relaeted with this ?

        5753ce5f-4096-4dde-bab1-82231c278ff5-image.png

        Please help me and we may make zoom meeting.

        Config Js:

        76ea4039-70e8-41c1-8324-a390e11c865d-image.png

        package.json

        5c0ec4a4-1d6d-4cf7-9822-80f132eb21ed-image.png

        localhost via browser

        93b0f99b-5c65-4db9-9d10-c7af98e4a8ec-image.png

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil
          last edited by Sep 5, 2020, 2:55 PM

          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 Jan 3, 2021, 7:23 PM Reply Quote 0
          • 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
                      • 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