我正在尝试在这个 git hub 站点上测试节点/骨干教程$ git clone git://github.com/antoviaque/backbone-relational-tutorial.git
。当我启动节点服务器(通过运行 command node app
)时,我收到一个错误,即方法 create 在 restify 模块中不存在。服务器似乎启动后立即触发错误
restify listening at http://0.0.0.0:3001
我对 node 一点经验都没有,如果你能提供任何帮助,我将不胜感激。
node_modules/restify/lib/server.js:724
d = domain.create();
Object function Domain(options){
...lots of code ommitted....
has no method 'create'
at Server._run (/Users/mm/Sites/backboneforum/node_modules/restify/lib/server.js:724:20)
at onRoute (/Users/mm/Sites/backboneforum/node_modules/restify/lib/server.js:592:38)
at Router.find (/Users/mm/Sites/backboneforum/node_modules/restify/lib/router.js:372:17)
at _route (/Users/mm/Sites/backboneforum/node_modules/restify/lib/server.js:532:29)
at Server._handle (/Users/mm/Sites/backboneforum/node_modules/restify/lib/server.js:617:17)
at Server.onRequest (/Users/mm/Sites/backboneforum/node_modules/restify/lib/server.js:201:22)
at Server.emit (events.js:70:17)
at HTTPParser.onIncoming (http.js:1514:12)
at HTTPParser.onHeadersComplete (http.js:102:31)
at Socket.ondata (http.js:1410:22)