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.
wget http://nodejs.org/dist/latest/node-v0.10.20-linux-arm-pi.tar.gz
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.
NODE_JS_HOME="/opt/nodejs"
PATH="$PATH:$NODE_JS_HOME/bin"
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.