Read the statement by Michael Teeuw here.
Npm start...
-
I set up the mirror on unbuntu 14.04 and when I type in
npm start
it gets as far as this:Starting MagicMirror: v2.1.0 Loading config ... Loading module helpers ... No helper found for module: alert. Initializing new module helper ... No helper found for module: clock. Initializing new module helper ... No helper found for module: compliments. No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper ... All module helpers loaded. Starting server op port 8080 ... Server started ... Connecting socket for: updatenotification Connecting socket for: calendar Starting node helper for: calendar Connecting socket for: newsfeed Starting module: newsfeed Sockets connected & modules started ... Launching application. Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000 Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000Then just sits there … doesn’t load the mirror. Has anyone had this issue and if so how does one fix that? :)
–
Edit by moderator: Added Markdown on code snippets for easier reading! -
I don’t know what is going on there, but I have Ubuntu Desktop 16.04 (I think) at home and will give it a shot.
Did you use manual install or script from the repo?
-
@morozgrafix I manually installed it… because I got an error about not having a pi LOL
I’m not using a pi for this… this is a mini-itx :)Looks like it’s loading it fine just not showing up…
-
this doesn’t really help you, but this guy has the same issue on a PI :
https://forum.magicmirror.builders/topic/1464/launching-application-nothing-happens
-
@cowboysdude I will try to reproduce on my machine in a few hours when I get home and will report back.
-
@morozgrafix said in Npm start...:
@cowboysdude I will try to reproduce on my machine in a few hours when I get home and will report back.
Thank you!
-
@cowboysdude I managed to get it up and running locally on a super old system running Ubuntu 16.04.1 LTS. I had some trouble starting electron via SSH when running
DISPLAY=:0 npm start, butnpm startworked just fineHere is a list of steps that got it running (i’m running node v6.9.4 and npm v4.1.1):
sudo apt-get install git git clone https://github.com/MichMich/MagicMirror.git curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs node --version curl -sL https://www.npmjs.com/install.sh | sudo -E bash - npm --version cd MagicMirror/ cp config/config.js.sample config/config.js npm install npm startNot sure if this will help. You can always try to run verbose mode
npm start --verboseto see if there is any information that may lead you to finding a reason why it doesn’t start. It was very sluggish on my system, but this is a very old computer.P.S. Sorry it took me a while to get to try it out and get back to you. It has been a very long and exhausting day.
Good luck.
-
@morozgrafix Thank you so much for this. I finally got it up and running following your method.
I did it on a Raspberry pi 3 and after adding in a few more sudo’s it worked!sudo apt-get install git sudo git clone https://github.com/MichMich/MagicMirror.git sudo curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs node --version sudp curl -sL https://www.npmjs.com/install.sh | sudo -E bash - npm --version cd MagicMirror/ sudo cp config/config.js.sample config/config.js sudo npm install npm start -
@morozgrafix Thank you!! Going to have one coffee then try it LOL
No need to apologize I know how you feel… Long days will do that :)
I appreciate the help!!!
-
@morozgrafix said in Npm start...:
@cowboysdude I managed to get it up and running locally on a super old system running Ubuntu 16.04.1 LTS. I had some trouble starting electron via SSH when running
DISPLAY=:0 npm start, butnpm startworked just fineHere is a list of steps that got it running (i’m running node v6.9.4 and npm v4.1.1):
sudo apt-get install git git clone https://github.com/MichMich/MagicMirror.git curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs node --version curl -sL https://www.npmjs.com/install.sh | sudo -E bash - npm --version cd MagicMirror/ cp config/config.js.sample config/config.js npm install npm startNot sure if this will help. You can always try to run verbose mode
npm start --verboseto see if there is any information that may lead you to finding a reason why it doesn’t start. It was very sluggish on my system, but this is a very old computer.P.S. Sorry it took me a while to get to try it out and get back to you. It has been a very long and exhausting day.
Good luck.
When i follow these steps it says i have node V4.0.0 installed
-
No go. It is loading and it opens a seperate tab on the side panel but does not display…
So I’m trying to figure it out… has to be something in the output of the mirror… it’s launching just not on the TV… which I have hooked up to HDMI…
-
I’m replying from my phone at the moment and will post full reply to all later when I’m in front of my computer.
When I said “but
npm startworked just fine” I meant I was running it from terminal on Ubuntu box and not through SSH from my MacBook. -
@LincolnClay I’m glad it all worked out for you. But I would be careful adding
sudocommand to everything. You may run into permissions issues. The reason why you need to usesudowhen installing packages withapt-getis because you need to have elevated privileges as you are making system wide changes. Cloning MM repository in your home directory shouldn’t requiresudo, if you usesudoto clone all files will belong torootuser and your user (usuallypi) will not have permissions to create or modify files in MagicMirror directory (which opens a whole different can of worms).TL;DR version: try to use
sudoonly when necessary.@cowboysdude Do you have only one monitor (your TV through HDMI) to your Ubuntu box? Also you may want to attempt to run https://github.com/electron/electron-quick-start just to see electron app running on your rig completely outside of MM codebase.
@cianoo45 are you still having problems starting the MM? That writeup was specifically for @cowboysdude who was trying to get MM setup on his Ubuntu system. You should be fine with npm v4.0.0 (on my RasPi I’m running node v6.9.2 and npm v3.10.9 if that matters)
-
@morozgrafix Thanks for all the help!! I figured it out!!
Since I’m running on a mini-itx it has two display options… they were both running and the mirror was loading on option 1 that’s great but I’m using option 2.
SO I went into the settings and disabled option 1 in Unbuntu and BOOM… now it works ;)
-
@cowboysdude sweet I’m glad you got it working.
-
@morozgrafix Me too! :) BUT HUGE Thank you for the help!!!
NOW to install Strawberry’s voice module!!!
This thing runs so fast!! I can’t wait to get the touch panel! :)
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