简体   繁体   中英

Node.js - Error trying to run server.js

Trying to get AjaxIM working on my site with Node.js. I get an error however when I try to initiate server.js Does anyone know what I am doing wrong and how to fix it??

The following output is produced when running this file:

-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)

Try changing 'tcp' to 'net'

might work.

also in any case you were using the old version of AjaxIM > http://groups.google.com/group/ajaxim/browse_thread/thread/151beb1881f36209 ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM