server.listen(3001, () => {
console.log('Sunucu çalışıyor: http://localhost:3001');
});

portu 3000 yerine 3001 e çekip sonrasında

npm install express socket.io http

node server.js