Centos 5 ships with a pretty old version of tar, that’s incapable of unpacking one of the socket.io dependencies: websocket-client-1.0.0.
If you try to npm install socket.io, you’ll hit a bunch of errors like:
npm ERR! tar "-mvxpf" "-" "-o" "-C"
"/tmp/npm-1313157472906/1313157485167-0.7352736354805529/contents/package.npm" tar:
Ignoring unknown extended header keyword LIBARCHIVE.creationtime
The recommended solution to this problem is to “build a newer tar from source”, but why dirty up your box if you don’t have to?
npm install websocket-client-1.0.0.tar.gznpm install socket.ioSince the websocket-client dependency is now installed, this should install cleanly.
npm install socket.io --verbose/tmp/npm-1316407706414/1316407706414-0.07840410759672523/tmp.tgz.http://registry.npmjs.org/websocket-client/-/websocket-client-1.0.0.tgztar zcvf websocket-client-1.0.0.tar *