Node.js - 尝试运行server.js时出错

Jim*_*med 5 ajax vps node.js

尝试使用Node.js在我的站点上运行AjaxIM.我得到一个错误但是当我尝试启动server.js有谁知道我做错了什么以及如何解决它?

运行此文件时会生成以下输出:

-bash-3.2# /usr/src/node-v0.4.6/node /home/colleg60/public_html/development/ajaxim/server/server.js

node.js:134
       throw e; // process.nextTick error, or 'error' event on first tick
       ^
Error: Cannot find module 'tcp'
   at Function._resolveFilename (module.js:320:11)
   at Function._load (module.js:266:25)
   at require (module.js:348:19)
   at Object.<anonymous> (/home/colleg60/public_html/development/ajaxim/server/server.js:32:11)
   at Module._compile (module.js:404:26)
   at Object..js (module.js:410:10)
   at Module.load (module.js:336:31)
   at Function._load (module.js:297:12)
   at Array.<anonymous> (module.js:423:10)
   at EventEmitter._tickCallback (node.js:126:26)
Run Code Online (Sandbox Code Playgroud)

nee*_*ebz 3

尝试将“tcp”更改为“net”

可能会起作用。

无论如何,您使用的是旧版本的 AjaxIM > http://groups.google.com/group/ajaxim/browse_thread/thread/151beb1881f36209