node为何运行一直报错jscript编译错误800a03ea

node为何运行一直报错jscript编译错误800a03ea

console.log('dddddddd');
const net=require('net');//Net模块提供一个异步API能够创建基于流的TCP服务器
const chatServer=net.createServer()//建立tcp协议的服务
const clientList=[]
chatServer.on('connection',client=>{
    client.write('Hi\n')
    clientList.push(client);
    client.on('data',data=>{
        console.log('receive',data.toString())
        clientList.forEach(v=>{//向每一个链接都广播
            v.write(data)
        })
    })
})
chatServer.listen(3000)

img


https://developer.aliyun.com/article/825272