I just started a new Project and set up a fresh nodeJs server, installed express and socket.io. No Problem so far, but after i wrote the basic starting code (should not be important here), and started the node js app, the following error occurred:
/var/www/node_modules/engine.io/lib/server.js:231 async handshake(transportName, req) { ^^^^^^^^^ SyntaxError: Unexpected identifier
I think i did nothing wrong, but i hope you can tell me otherwise.
I found out, it was the node version.
Socket.IO needs at least Node.js 10.
I just overlooked that.
1.4m articles
1.4m replys
5 comments
57.0k users