[~]# node node.js Error: Cannot find module \'socket.io\' [~]# node -v v0.10.10
socket.io installed:
npm install socket.io npm W
Looks like you have installed socket.io in a different location to your current path. Either install globally like below:
socket.io
npm install -g socket.io
Or reference the location you've installed to:
var io = require('../lib/socket.io');