Author Topic: RasPi home automation gateway -- nodejs install failing  (Read 940 times)

sulterry

  • Newbie
  • *
  • Posts: 17
RasPi home automation gateway -- nodejs install failing
« on: January 31, 2015, 06:11:43 PM »
Building Gateway and it looks good until now.  I can run PHP info fine.  I tried to install nodejs with apt-get.  nodejs.org had link to "Installing from package managers" and it seemed to me that a year had elapsed since Felix installed from binaries so it might work.  It seemed to install properly, first in /usr/bin/nodejs.    Since /usr/bin was already in PATH I thought it would work.  When I ran node -v I got a command not found message.  That was with sudo or without.  I moved nodejs to /opt/node, changed the path, logged out, then in and tried again.  Same result. I've read the forums.  No one else seems to have had this problem.

I have no problem with purging the install and re-installing via binary but it seems like that might be overkill.  Anybody got any hints for me?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6335
  • Country: us
    • LowPowerLab
Re: RasPi home automation gateway -- nodejs install failing
« Reply #1 on: February 01, 2015, 07:30:48 PM »
Hmmm... these types of errors are very rarely too verbose to actually know what they mean and get around them. Others have reported many install issues and it's always some small detail unfortunately. It's definitely a (steep) learning experience with linux. I actually revisited the gateway install steps and updated them with new versions of the software that I re-verified are working and installing properly, also fixed all the minor glitches that were causing steps to fail. I would say that following those exact steps should get you to a good working point. I'm afraid it's hard to guess what some of these errors can mean.
The main link to follow the install starts here and will link to the next part at the end: http://lowpowerlab.com/blog/2013/10/07/raspberrypi-home-automation-gateway-setup/

sulterry

  • Newbie
  • *
  • Posts: 17
Re: RasPi home automation gateway -- nodejs install failing
« Reply #2 on: February 02, 2015, 11:31:57 AM »
Thanks Felix,

I will get to this today.  Starting over using your instructions. :)

Terry S

sulterry

  • Newbie
  • *
  • Posts: 17
Re: RasPi home automation gateway -- nodejs install failing
« Reply #3 on: February 02, 2015, 04:28:54 PM »
Finished RasPi Gateway.  Followed Felix's instructions and all went very well.

Awesome sense of Satisfaction.  I celebrated with a handful of mini Hershey bars.

Now I can get the new ATXRasPi, pushbutton, moteino gateway all hooked up and into an enclosure.

Thank you Felix, You are amazing.

Terry S


Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6335
  • Country: us
    • LowPowerLab
Re: RasPi home automation gateway -- nodejs install failing
« Reply #4 on: February 02, 2015, 04:41:30 PM »
Hey Terry,
Glad it worked out for you. It does feel awesome when it all just works :)