TypeError:Object#<object>没有方法'resume'

时间:2015-06-02 01:12:12

标签: javascript node.js module ejs deployd

您好我正在尝试使用deployd-template https://bitbucket.org/leozero/dpd-template/

我按照说法设置了所有内容并安装了'ejs

但是当我运行dpd.template.post ....我得到这个控制台错误和deployd崩溃

  C:\Program Files (x86)\Deployd\node_modules\deployd\node_modules\doh\lib\handler
.js:42
      req.resume(); // fixes pause causing requests to timeout
          ^
TypeError: Object #<Object> has no method 'resume'
    at C:\Program Files (x86)\Deployd\node_modules\deployd\node_modules\doh\lib\
handler.js:42:11
    at Handler.respond (C:\Program Files (x86)\Deployd\node_modules\deployd\node
_modules\doh\lib\respond.js:61:15)
    at Domain.<anonymous> (C:\Program Files (x86)\Deployd\node_modules\deployd\n
ode_modules\doh\lib\handler.js:37:13)
    at Domain.emit (events.js:95:17)
    at process._fatalException (node.js:255:29)

如果我运行没有ejs代码的模板文件,例如

<%= data %>

它输出了模板,但是一旦我添加了ejs代码就可以将它打包出来

0 个答案:

没有答案