Read the statement by Michael Teeuw here.
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
Kurtpi@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 $ -
Did you do
npm installin your~/MagicMirrorfolder? -
@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 gotpi@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 $ -
@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 startin the terminal.DISPLAY=:0 npm startis 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
-
@morozgrafix
Thanks for the help
The for me funny thing is, if I do it with SSH and theDISPLAY=: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 thenpm startI 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 -
@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 startfrom 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
Kurt -
@morozgrafix
here that last tryLast 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
-
Hey @kurt !, the last sentence you are run in your Mac not in your Raspberry
-
@roramirez
yes I did it on my mac via SSH -
@kurt No, when you run cd command you are still in your Mac
-bash: cd: /Users/kurt/MagicMirror: No such file or directory -
@roramirez
sorry you are right, butLast login: Wed Jan 25 19:24:58 2017 pi@raspi:~ $ cd ~/MagicMirror -bash: cd: /home/pi/MagicMirror: Datei oder Verzeichnis nicht gefunden pi@raspi:~ $ -
@kurt Ok, is nothing there. Please use the installer script
curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bashIf you using Jessie Lite will need install some packages as say link of @morozgrafix’s post
-
@roramirez
Thank you, that’s what i’ll do.
But do you have any idea, why this happens. Just to avoid to make the same mistake again.
I intend to use Cyber Duck for transfering folders or scripts.
And I also use the VNC Viewer, just to see what happens next door, while I work on my mac in an other room.
And I think I’ll install the full Jessi Version.
So Thank’s once again! without you It engineers, students and helpers in this forum, users like me were just lost and couldn’t be part of this great projekt, which has just started…
Kurt -
if you are comfortable with using
sshandscpyou may not even need any GUI tools to transfer files. -
@kurt Well Jessie Lite dont have X system. X mean desktop system, GUI.
MagicMirror run in Electron and this require a DISPLAY system where show it.
We working in this topic to prevent you when is using in a system like that.
https://github.com/MichMich/MagicMirror/issues/577 -
@morozgrafix
Well I’m absolut not comfortable with transfering files or scripts without the help of an grafical surface.
I´m absolute new to work with commands on a terminal.
So the all the commands I type into the terminal Ijust learned from guys like you just a couple of days ago.
When you change the content, lets say from an config.js via SSH. What kind of tools do you use?
Because when I opened the folders of my Raspberry with the help of FileZilla, changed the content and tried to save, the MM system collapsed somehow.
So my question how do you that?
Thanks a lot for the help -
@roramirez
Well as I explained in the reply to morozgrafik i’m used to GUI and for me it’s fine doing things by drag and drop…
I apreciate your work and input into this projekt a lot!
What is your opinion to run the installer by the sudo command like alostvagabond postet it in https://github.com/MichMich/MagicMirror/issues/577
I’ll start my atempt #3 in the afternoon :)
Thanks a lot for your help -
@kurt I totally understand your point and reasons for you to use GUI tools for file transfers, editing etc. My personal choice is mostly working in the terminal, but it takes some getting used to. The reason why I mentioned SSH and scp, as alternative to using GUI transfer tools, is because they are very reliable and proven to work well. I just wanted to check your comfort level using them, in case that you are suspecting FileZilla, Cyber Duck or some other GUI tool is messing up your MM installation.
To answer your question about text editors that work in terminal. There are plenty of them and they have existed for a very long time in unix/linux world. Most of the time they are available with any *nix flavor. To name a few: nano (probably easiest to learn), vim and emacs
Hope you get everything sorted with your install and if you need assistance we are here to help.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login