I was trying to install socket.io on my linux server using NPM
root@camdev01-dev:# npm install socket.io
(npm:22742): Gtk-WARNING **: cannot open display:
OS:ubuntu.11.10 server
Here is a quick how to for installing npm on Ubuntu, or any variant of UNIX for that matter
$ `curl http://npmjs.org/install.sh | sh`
It is that simple!
So you want to check out the code from git and compile it yourself? Then follow these steps:
$ `git clone https://github.com/isaacs/npm`
$ `cd npm`
$ sudo make install
Now you can install interesting stuff like socket.io
$ npm install socket.io
X-server is not a dependency package of Socket.io...