简体   繁体   中英

jasmine-node error TypeError: undefined is not a function

i am getting this error from last two days where as the code is same and installation procedure is also same , is this because of any new update in 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)

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