npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
Those look like very old versions of npm and node. Can you please run following commands in your terminal and post output?
node --version
and
npm --version
Thanks.
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
Those look like very old versions of npm and node. Can you please run following commands in your terminal and post output?
node --version
and
npm --version
Thanks.
@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
, but npm start
worked just fine
Here 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 start
Not sure if this will help. You can always try to run verbose mode npm start --verbose
to 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.
@cowboysdude I will try to reproduce on my machine in a few hours when I get home and will report back.
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?
Are you running electron app on RasPi or testing in a browser? I had this problem in Chrome when one of the extensions that I had enabled was interfering with MM js
Hi,
Are you running Automatic installation from README.md or following Manual Installation guide? It may be helpful to get some more information on steps that you did prior to this and exact command that you are executing. Also what version of node
and npm
are you running? You can find that by running following commands in your terminal:
node --version
and
npm --version
Thanks.
This can now be closed, I believe that improvements by @paviro have resolved this issue.
https://forum.magicmirror.builders/topic/1407/you-can-officially-call-me-stupid
I would vote for Slack, but I’m biased since I work at Slack.
Edit:
P.S. I can help set it up if needed.
I realize that this topic is about 2 months old, but I’m going to add some possible troubleshooting steps for anyone who may run into this problem. Hopefully OP already has this resolved.
@Jeff while on RasPi terminal can you try to execute this command ping localhost
? you should see output similar to this:
$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.253 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.268 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.257 ms
...
...
as you can see hostname localhost
resolves to ip address 127.0.0.1
which is very common. you can also try to enter http://127.0.0.1:8080
in your browser.
if the above works and after node serveronly
is running, can you please try to execute following command curl -I http://localhost:8080
? your output should be similar to this:
$ curl -I http://localhost:8080
HTTP/1.1 200 OK
X-Powered-By: Express
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Wed, 21 Dec 2016 06:49:47 GMT
ETag: W/"8da-15920249be6"
Content-Type: text/html; charset=UTF-8
Content-Length: 2266
Date: Sun, 15 Jan 2017 23:09:37 GMT
Connection: keep-alive
if it’s not double check your config.js
to make sure your server is running on port 8080
I would like to offer help with forum moderation as well. While I’m new to this forum I have spent last 7+ years of my career building products evolving around user community and collaboration (Yahoo Groups, Flickr and now Slack). Clear communication, empathy, courtesy and respect are some of the things on top of my list to keep building healthy and thriving community.
I’ve been following MichMich and his wonderful projects on Tumblr for a while, always wanted to build a mirror since his very initial build out. I didn’t have much time to play around with it. Then v2 came out and I kept saying to myself that I have to try it out. I finally joined community about a month ago, started to play around with core code and modules. And I got hooked. This is a really nice project with so many wonderful additions developed by people from all over the world.
My first module that I’ve built was based on a request that I found in this forum. I have a few more ideas for building modules. This forum helped me find information that I needed to understand and build things for MM. I just want to give back and help.
Thanks.