Add the needed -g option to Socket.io install command line.