运行socket.io程序时出错
我下载了这个程序
https://github.com/DanBUK/bejesus-socket-io-demo
但是当我这样做时
node socket-demo.js
它给了我这个错误
node socket-demo.js
node.js:50
throw e; // process.nextTick error, or 'error' event on first tick
^
WideCharToMultiByte: The data area passed to a system call is too small.
TypeError: Bad argument
at Object.stat (fs.js:328:11)
at Server.<anonymous> (net.js:1093:19)
at Server.listen (/usr/local/lib/node/.npm/express/1.0.7/package/lib/express
/server.js:101:35)
at Object.<anonymous> (/home/Administrator/socket-io-demo/socket-demo.js:15:
5)
at Module._compile (node.js:329:23)
at Object..js (node.js:337:12)
at Module.load (node.js:260:25)
at Array.<anonymous> (node.js:351:24)
at EventEmitter._tickCallback (node.js:42:22)
I downloaded this program
https://github.com/DanBUK/bejesus-socket-io-demo
but when i do
node socket-demo.js
It gives me this error
node socket-demo.js
node.js:50
throw e; // process.nextTick error, or 'error' event on first tick
^
WideCharToMultiByte: The data area passed to a system call is too small.
TypeError: Bad argument
at Object.stat (fs.js:328:11)
at Server.<anonymous> (net.js:1093:19)
at Server.listen (/usr/local/lib/node/.npm/express/1.0.7/package/lib/express
/server.js:101:35)
at Object.<anonymous> (/home/Administrator/socket-io-demo/socket-demo.js:15:
5)
at Module._compile (node.js:329:23)
at Object..js (node.js:337:12)
at Module.load (node.js:260:25)
at Array.<anonymous> (node.js:351:24)
at EventEmitter._tickCallback (node.js:42:22)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应用程序需要环境变量
app_port
和app_host
。尝试The application expects the environment variables
app_port
andapp_host
. Try