I\'ve followed the exact same steps which have always previously worked for me, create application through express, place the module dependencies in the node_modules folder.
On the client, did you do:
before you set the socket variable?
socket