Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    npm start problem ELIFECYCLE

    Troubleshooting
    3
    9
    123
    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
      emrah_asl last edited by

      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 Reply Quote 0
      • S
        sdetweil @emrah_asl last edited by

        @emrah_asl finish install ( not supported on windows)

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

        then restart mm

        E 1 Reply Last reply Reply Quote 0
        • E
          emrah_asl @sdetweil last edited by

          @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
            sdetweil last edited by

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

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

              Yes, thank you very much for your small adjustment.

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

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

                    @sdetweil ok thanks 🙂

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