A chat room application of nodejs plus express plus jade downloaded from the Internet,
Run after deployment, prompting object is not a function error, as shown in the following figure:
The nodejs version is as follows:
That’s because of the version problem. The most likely reason is that the source code you downloaded uses socket.io below version 0.9. The socket. IO above version 1.0 has changed greatly and is incompatible.
It is recommended that you enter when installing
npm install email@example.com