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.

    YAPi0 Installer Stretch Lite

    Scheduled Pinned Locked Moved General Discussion
    118 Posts 4 Posters 93.7k 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.
    • S Offline
      sdetweil @bdream
      last edited by sdetweil

      @bdream ok, a few things…

      1. i need to fix the words at the end of install, cause if you said yes to pm2, then don’t do npm start
      2. then u went and did a manual add of another thing for pm2…

      so,

       pm2 stop mm
       pm2 delete mm
      

      then

      pm2  stop MagicMirror
      

      then lets try manually

      cd ~/MagicMirror
      npm start 
      

      you should see the messages from the mirror running

      please advise

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        Thias is you have to work on:
        @sdetweil said in YAPi0 Installer Stretch Lite:

        i need to fix the words at the end of install, cause if you said yes to pm2, then don’t do npm start

        I do

        pi@RasPiZeroW:~ $  pm2 stop mm
        [PM2][ERROR] Process mm not found
        

        not necasarry

        pm2 delete mm
        
        pi@RasPiZeroW:~ $ pm2  stop MagicMirror
        [PM2] Applying action stopProcessId on app [MagicMirror](ids: 0)
        [PM2] [MagicMirror](0) ✓
        ┌────┬────────────────────┬──────────┬──────┬──────────┬──────────┬──────────┐
        │ id │ name               │ mode     │ ↺    │ status   │ cpu      │ memory   │
        ├────┼────────────────────┼──────────┼──────┼──────────┼──────────┼──────────┤
        │ 0  │ MagicMirror        │ fork     │ 223  │ stopped  │ 0%       │ 0b       │
        └────┴────────────────────┴──────────┴──────┴──────────┴──────────┴──────────┘
        
        
        pi@RasPiZeroW:~/MagicMirror $ npm start
        
        > magicmirror@2.9.0 start /home/pi/MagicMirror
        > sh run-start.sh
        
        

        nothing happen

        –
        cheers, bdream

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

          @bdream weird… now have same problem on two systems…

          try this

          cd ~/MagicMirror
          node serveronly
          

          the connection url will be shown

          then connect to that url from a browser on another system

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            another thing to try is

            cd ~/MagicMirror
            export DISPLAY=:0
            node node_modules/.bin/electron
            

            electron should come up on the screen

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              no, it dosn’t

              –
              cheers, bdream

              S 2 Replies Last reply Reply Quote 0
              • S Offline
                sdetweil @bdream
                last edited by

                @bdream did serveronly mode work?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @bdream ok, one more thing to try

                  cd ~/MagicMirror/node_modules
                  mv electron electron.save
                  cd ..
                  npm install electron@latest
                  

                  I am running 6.0.12 on one of my systems

                  then try npm start

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    pi@RasPiZeroW:~/MagicMirror $ npm install electron@latest
                    
                    > electron@6.0.12 postinstall /home/pi/MagicMirror/node_modules/electron
                    > node install.js
                    
                    Downloading tmp-1548-0-electron-v6.0.12-linux-armv6l.zip
                    Error: GET https://github.com/electron/electron/releases/download/v6.0.12/electr                   on-v6.0.12-linux-armv6l.zip returned 404
                    /home/pi/MagicMirror/node_modules/electron/install.js:53
                      throw err
                      ^
                    
                    Error: Failed to find Electron v6.0.12 for linux-armv6l at https://github.com/el                   ectron/electron/releases/download/v6.0.12/electron-v6.0.12-linux-armv6l.zip
                        at Request.<anonymous> (/home/pi/MagicMirror/node_modules/nugget/index.js:16                   9:61)
                        at Request.emit (events.js:189:13)
                        at Request.onRequestResponse (/home/pi/MagicMirror/node_modules/request/requ                   est.js:1066:10)
                        at ClientRequest.emit (events.js:189:13)
                        at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21                   )
                        at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
                        at TLSSocket.socketOnData (_http_client.js:442:20)
                        at TLSSocket.emit (events.js:189:13)
                        at addChunk (_stream_readable.js:284:12)
                        at readableAddChunk (_stream_readable.js:265:11)
                    npm WARN acorn-jsx@5.1.0 requires a peer of acorn@^6.0.0 || ^7.0.0 but none is i                   nstalled. You must install peer dependencies yourself.
                    npm WARN grunt-stylelint@0.11.1 requires a peer of stylelint@^10.0.0 but none is                    installed. You must install peer dependencies yourself.
                    
                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 1
                    npm ERR! electron@6.0.12 postinstall: `node install.js`
                    npm ERR! Exit status 1
                    npm ERR!
                    npm ERR! Failed at the electron@6.0.12 postinstall script.
                    npm ERR! This is probably not a problem with npm. There is likely additional log                   ging output above.
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/pi/.npm/_logs/2019-10-18T13_30_31_697Z-debug.log
                    
                    

                    I would like to attach the log, but it’s missing :pouting_face:

                    pi@RasPiZeroW:~/MagicMirror $ npm start
                    
                    > magicmirror@2.9.0 start /home/pi/MagicMirror
                    > sh run-start.sh
                    
                    run-start.sh: 7: run-start.sh: electron: not found
                    npm ERR! code ELIFECYCLE
                    npm ERR! syscall spawn
                    npm ERR! file sh
                    npm ERR! errno ENOENT
                    npm ERR! magicmirror@2.9.0 start: `sh run-start.sh`
                    npm ERR! spawn ENOENT
                    npm ERR!
                    npm ERR! Failed at the magicmirror@2.9.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!     /home/pi/.npm/_logs/2019-10-18T14_07_43_211Z-debug.log
                    
                    

                    –
                    cheers, bdream

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

                      @sdetweil how interesting.
                      If I reboot the RPi0 I see MagicMirror booting too. After a while of black screen I get usal Pi Desktop.

                      –
                      cheers, bdream

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

                        @bdream sorry, forgot about arm6l

                        Do

                        npm install --arch=arm7l electron@latest
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 7
                        • 8
                        • 9
                        • 10
                        • 11
                        • 12
                        • 9 / 12
                        • 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