当我做决赛时,按照教程链接https://github.com/share/ShareJS/wiki/Tutorial%3A-The-Basics
$节点索引.js
我收到以下错误。
/home/devilz/Project/lib/index.js:20
ShareJS.attach(server, ShareJSOpts);
^
TypeError: Object #<Object> has no method 'attach'
at Object.<anonymous> (/home/devilz/Project/lib/index.js:20:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
devilz@devilz-pc:~/Project/lib$
任何人都可以帮忙吗