1

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

1 Answer 1

1

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...

Dependency packages

1
  • X11Forwarding is On Commented Apr 9, 2013 at 6:58

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.