Skip to content
Jason Charney edited this page Feb 4, 2015 · 10 revisions

Node.js, or just Node, is an open source, cross-platform runtime environment for server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on most operating systems.

Installing Node

Node requires GCC, Make, and Python. If you are using Linux, you should already have these things.

cd ~/Software
curl -SL http://nodejs.org/dist/v0.10.36/node-v0.10.36.tar.gz | tar xzv
cd node-v0.10.36/
./configure --without-snapshot --dest-cpu=arm --with-arm-float-abi=hard --prefix=/opt && make && sudo make install && sudo  ldconfig

The arguments for the ./compile step are required to compile it and not get a segmentation fault when you run node in the shell on Odroid, although --prefix is optional. I just chose to put it in the /opt directory.

So what is Node?

Node is basically JavaScript which you can run like any other programming lanugage that uses a REPL shell. It's actually written in C++ but is programmed to behave like JavaScript. Basically, if you have ever used the text console inside of Google Chrome to debug a webpage or to tinker with JavaScript elements, that's pretty much what Node does, only without the browser.

See Also

External Links

Clone this wiki locally