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.

    starter problem # 2

    Scheduled Pinned Locked Moved Troubleshooting
    27 Posts 4 Posters 14.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.
    • K Offline
      kurt
      last edited by

      Hi
      ( I guess I put the Raspberry too quick away from the electricity, which caused a total colapse of the Raspberry- so all you newbies like me, beware of that step!).
      I open this new topic, because after the new installation of the MM I get this message below and this has nothing to do with the problems in my older topic.
      Also tried to google a solution for the npm bugs magicmirror, but couldn’t find a right solution for me.
      I just installed MM and only changed the url in the newsfeed and the weather destination in the config.js
      So I hope someone here can help me to do the next step.

      Thanks a lot
      Kurt

      pi@raspi:~ $ cd ~/MagicMirror
      pi@raspi:~/MagicMirror $ DISPLAY=:O npm start
      
      > magicmirror@2.1.0 start /home/pi/MagicMirror
      > electron js/electron.js
      
      
      npm ERR! Linux 4.4.38-v7+
      npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
      npm ERR! node v6.9.4
      npm ERR! npm  v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! magicmirror@2.1.0 start: `electron js/electron.js`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the magicmirror@2.1.0 start script 'electron js/electron.js'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the magicmirror package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     electron js/electron.js
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs magicmirror
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls magicmirror
      npm ERR! There is likely additional logging output above.
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/pi/MagicMirror/npm-debug.log
      pi@raspi:~/MagicMirror $ 
      
      1 Reply Last reply Reply Quote 0
      • tosti007T Offline
        tosti007 Module Developer
        last edited by

        Did you do npm install in your ~/MagicMirror folder?

        If there is anything don't hesitate to contact me!
        ProfileSwitcher, TouchNotifications

        K 2 Replies Last reply Reply Quote 0
        • K Offline
          kurt @tosti007
          last edited by

          @tosti007
          No, I just followed the complete setup tutorial by KirAsh4
          so do I have to install it?
          Thank you

          1 Reply Last reply Reply Quote 0
          • K Offline
            kurt @tosti007
            last edited by

            @tosti007
            That’s what I got

            pi@raspi:~ $ cd ~/MagicMirror
            pi@raspi:~/MagicMirror $ npm install
            npm WARN grunt-yamllint@0.2.0 requires a peer of grunt@~0.4.0 but none was installed.
            pi@raspi:~/MagicMirror $ 
            
            morozgrafixM 1 Reply Last reply Reply Quote 0
            • morozgrafixM Offline
              morozgrafix Moderator @kurt
              last edited by morozgrafix

              @kurt are you running raspbian jessie or Jessie lite?

              If you are running regular jessie with graphical interface then I believe you need to run npm start in the terminal. DISPLAY=:0 npm start is used when you are connected over SSH from remote system, if I’m not mistaken.

              If you are running jessie lite then make sure you have minimal X window GUI installed. Full guide is here https://github.com/MichMich/MagicMirror/wiki/Jessie-Lite-Installation-Guide

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                kurt @morozgrafix
                last edited by

                @morozgrafix
                Thanks for the help
                The for me funny thing is, if I do it with SSH and the DISPLAY=:0 npm startthe MM starts (exept the rss fees and the amer. calender…both loading), but when I try to start it from the Raspberry with the npm start I get some error messages.
                When I reboot,the MM routine starts but does not finish and i’m back in The PIXEL surface.
                Do you think I should try the Auto Starting Mirror tool?
                https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror
                Any ideas?
                Thanks

                morozgrafixM 1 Reply Last reply Reply Quote 0
                • morozgrafixM Offline
                  morozgrafix Moderator @kurt
                  last edited by

                  @kurt said in starter problem # 2:

                  from the Raspberry with the npm start I get some error messages.

                  What error messages are you getting when you running npm start from the RasPi terminal? (I’m assuming that you still have PIXEL loaded at that time)

                  I would hold off on auto starting for now, until you can start it cleanly from the shell.

                  K 2 Replies Last reply Reply Quote 0
                  • K Offline
                    kurt @morozgrafix
                    last edited by

                    @morozgrafix
                    hey by now the MM startet without error massages! kind of strange, but I get used to it.
                    Then I copied the confi.js file to send it to you, maybe you can find a mistake.
                    But after that all of my MM folder is gone ! this what happened to me 3 days ago.
                    Can#t believe, but that’s how it is . everything gone.
                    I can only blame FileZilla for that. Iguess I have to go to the Install routine for the third time. and I’m thru with Filzilla…
                    What do you think about it? can I restore something? I searched in all folders but coudn’t find anything.
                    Man I expected a hard way to go, but this is boring. What to do?
                    Thanks for waiting
                    Kurt

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      kurt @morozgrafix
                      last edited by

                      @morozgrafix
                      here that last try

                      Last login: Wed Jan 25 19:03:13 on ttys000
                      Kurt-Matyuss-iMac:~ kurt$ cd ~/MagicMirror
                      -bash: cd: /Users/kurt/MagicMirror: No such file or directory
                      Kurt-Matyuss-iMac:~ kurt$ `
                      

                      too bad

                      R 1 Reply Last reply Reply Quote 0
                      • R Offline
                        roramirez Core Contributors @kurt
                        last edited by

                        Hey @kurt !, the last sentence you are run in your Mac not in your Raspberry

                        Easy module development with MagicMirror Module Template

                        K 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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