Getting latest node.js to run on UDOO

General programming questions, usage and tips for the newbies

Moderators: DracoLlasa, Lifeboat_Jim, mkopack, ektor5, ekirei, delba, andcmp, gionji

Getting latest node.js to run on UDOO

Postby jfey » Tue Nov 26, 2013 2:19 pm

Since someone here in our team asked me how i did it i'll answer right here in the forum in case this is of interest for more node fans:

The best way (at least for me) to get the latest version of node.js running on a fresh new UDOO (Ubuntu 11.x) has been:

1.) Download the sources from the node.js site: http://nodejs.org/download/
An alternative is to download the pre-compiled binaries here: https://github.com/pilwon/nodejs-for-linaro-ubuntu

2.) Unzip the source package and cd into it

3.) Compile and install with (i am not root user usually)

Code: Select all
./configure --without-snapshot
make
sudo make install


The make step should take around 40 minutes (Quad UDOO).

4.) The new node and npm binaries are waiting for you in /usr/local/bin/node and /usr/local/bin/npm.
If /usr/local/bin is not yet in your path just add it to your .profile

5,.) Check if you got the latest and greatest version:

Code: Select all
node --version


Should pass back : v0.10.22 (currently)

6.) Done && Coffee && add some requires to your new code.


ANGULAR.JS and METEOR

If someomne is interested in another topic called Angular.JS and/or Meteor:

We have been succesful installing the plain Yeoman toolset (including grunt, bower) but trying to add Angular.JS to the story via
Code: Select all
yo angular
came back with compiling errors. So no luck so far - but it it obvious that an AngularJS app should be done and run on the client- which should not be the UDOO.

The Meteor story is different: Meteor needs to run on the client and the server. Unfortunately Meteor does not support ARM currently.

If anyone has more luck with both frameworks, please let us know :-)

cheers

Juergen
jfey
 
Posts: 5
Joined: Mon Nov 25, 2013 1:36 pm

Re: Getting latest node.js to run on UDOO

Postby Lifeboat_Jim » Tue Nov 26, 2013 8:21 pm

Thanks Juergen

That is a very useful guide to accompany Phuh's node.js UDOO library detailed at viewtopic.php?f=8&t=391
UDOO Community Support Team
-----------------------------------------------------
UDOO FAQ | UDOO Tutorials | UDOO Wiki | Customer Care/Ticket System

RNLB The Edmund and Mary Robinson, historic 1938 ex-RNLI lifeboat
User avatar
Lifeboat_Jim
 
Posts: 400
Joined: Mon Sep 16, 2013 1:17 pm
Location: West Midlands, UK

Re: Getting latest node.js to run on UDOO

Postby Rickor » Sat Jan 25, 2014 8:24 pm

when a problem with install node.js

Code: Select all
sudo apt-get install git-core python libssl-dev build-essential
git clone git://github.com/joyent/node.git node && cd node
git checkout v0.10.22
./configure --without-snapshot
make        (it will take some time - 40min)
sudo make install

without git checkout v0.10.22 installed the last 0.11.11-pre and "npm install serialport" runs not with "pre" versions.
Rickor
 
Posts: 3
Joined: Sat Nov 30, 2013 12:49 pm

Re: Getting latest node.js to run on UDOO

Postby aterocana » Sun Mar 02, 2014 8:38 pm

After cloning the repository, checking out to v0.10.26 (currently the last one), and executing the other commands Node isn't working. If I execute `node -v` it correctly answer with "0.10.26" but if I run `node` I can't access to the node console. Also npm seems it doesn't work. Any advice?
aterocana
 
Posts: 7
Joined: Sat Mar 01, 2014 2:57 pm

Re: Getting latest node.js to run on UDOO

Postby Capstan » Sat Mar 08, 2014 6:35 pm

I didn't bother to compile, I just downloaded the zip file (nodejs-for-linaro-ubuntu-master.zip) and unzipped it. The binaries are working for me, I get the node console, can run node.js programs, and npm works.

node --version reports v0.10.21
Capstan
 
Posts: 18
Joined: Fri Feb 14, 2014 11:59 pm

Re: Getting latest node.js to run on UDOO

Postby aterocana » Sun Mar 09, 2014 11:21 am

If I compile after a checkout to version 0.10.22 it actually works. I think there's a problem with 0.10.26 and arm because I don't have any issue on a 64bit Arch Linux on my computer. I didn't try with any of 23, 24 or 25.
aterocana
 
Posts: 7
Joined: Sat Mar 01, 2014 2:57 pm


Return to General Programming Discussion

Who is online

Users browsing this forum: No registered users and 1 guest