Installing Node.js and Docpad on a Raspberry Pi

This is a hodge podge of instructions from various sources. I cannot claim these instructions as my own, but I am going to try and organize them in a way so you can get both of these installed without reading “War and Peace”.

I am using Raspbian “Wheezy” on my Pi.

Installing Node.js on a Raspberry Pi

Start by making a directory for node installation.

 sudo mkdir /opt/nodejs 

Now download and unzip and install the package.



tar xvzf node-v0.10.20-linux-arm-pi.tar.gz


sudo cp -r node-0.10.20-linux-arm-pi/* /opt/nodejs

In /etc/profile you will want to add a path.




I have to thank Aiden Casey for the next part, because I would not of figured this next part out.

Change the owner of the files in your /opt/nodejs folder to the current user ( required when when running npm install -g somepackage)

sudo chown -R $USER /opt/nodejs

Now reboot and we are on to installing docpad.

Installing docpad on a Raspberry Pi

We start off by downloading and installing docpad using the node package manager.

npm install -g npm; npm install -g docpad@6.53

As per docpads instructions, the first time you run docpad you will have to accept the terms and conditions.

Now all you need to do is create a new directory for your website and run.

docpad run

Now all you need is somewhere to host it.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s