【问题标题】:jasmine-node error TypeError: undefined is not a function茉莉花节点错误类型错误:未定义不是函数
【发布时间】:2014-07-09 10:51:18
【问题描述】:

我从前两天收到此错误,因为代码相同并且安装过程也相同,这是因为 jasmine-node 中的任何新更新

            /var/www/jasmine-node# jasmine-node --verbose --junitreport --noColor spec

            /usr/local/lib/node_modules/jasmine-node/lib/jasmine-node/reporter.js:336
              jasmineNode.TeamcityReporter.prototype = new jasmine.TeamcityReporter;
                                                       ^
            TypeError: undefined is not a function
                at /usr/local/lib/node_modules/jasmine-node/lib/jasmine-node/reporter.js:336:44
                at Object.<anonymous> (/usr/local/lib/node_modules/jasmine-node/lib/jasmine-node/reporter.js:342:3)
                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 Module.require (module.js:364:17)
                at require (module.js:380:17)
                at Object.<anonymous> (/usr/local/lib/node_modules/jasmine-node/lib/jasmine-node/index.js:34:21)
                at Module._compile (module.js:456:26)

【问题讨论】:

  • 您的 Teamcity Reporter 启用了吗?
  • 我如何检查它是否启用
  • 对不起,我没听懂
  • 我会检查 jasmine 节点的支持。
  • node --version v0.10.23 给了我这个....和 ​​jasmine-node --version ....给了我同样的错误

标签: javascript jasmine-node


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-01-15
  • 1970-01-01
  • 2012-08-15
相关资源
最近更新 更多