Technical info.

Wednesday, January 28, 2015

How to install Node.js on Raspberry Pi.

I found powerful and easy way to develop server program. That is node.js.
So I think it's better off using node.js for server instead of Apache + PHP.
If you want to get more information about node.js, please find following link first.

[node.js official webpage]

Let's start to install node.js on my Raspberry Pi.

Officially, node.js do not support Raspbian. So I can't find installation guide in node.js official site.
But thanks to "node-arm" I can install it on my Raspberry Pi.

Step 1 : download node.js for Raspberry Pi.

$ wget http://node-arm.herokuapp.com/node_latest_armhf.deb
--2015-01-29 02:08:03--  http://node-arm.herokuapp.com/node_latest_armhf.deb
Resolving node-arm.herokuapp.com (node-arm.herokuapp.com)... 184.72.254.125
Connecting to node-arm.herokuapp.com (node-arm.herokuapp.com)|184.72.254.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5745294 (5.5M) [application/x-debian-package]
Saving to: `node_latest_armhf.deb'

100%[======================================>] 5,745,294   1.21M/s   in 4.5s    

2015-01-29 02:08:08 (1.21 MB/s) - `node_latest_armhf.deb' saved [5745294/5745294]

Step 2 : Install node.js

$ sudo dpkg -i node_latest_armhf.deb
Selecting previously unselected package node.
(Reading database ... 76082 files and directories currently installed.)
Unpacking node (from node_latest_armhf.deb) ...
Setting up node (0.10.36-1) ...
Processing triggers for man-db ...

Step 3 : Check installation.

$ node -v
v0.10.36
That's all. Now, I have cool and fast web server!!



No comments:

Post a Comment