starter problem # 2

  • 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

    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 $ 

  • Module Developer

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

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

  • @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 $ 

  • Moderator

    @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

  • @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?
    Any ideas?

  • Moderator

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

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

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

  • Core Contributors

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

Log in to reply

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.