您好,提示:Error: invalid reporter "mochawesome"
at Mocha.reporter (D:\auto\macaca-test-sample\node_modules\mocha\lib\mocha.js:180:13)
at Object. (D:\auto\macaca-test-sample\node_modules\mocha\bin_mocha:207:7)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
只在 js 脚本路径下的 opts 加了--reporter mochawesome,是不是配置添加的位置不对?每个 mocha.opts 都要加么?好多。。。
"mochawesome" reporter not found
/usr/local/lib/node_modules/mocha/lib/mocha.js:193
throw new Error('invalid reporter "' + reporter + '"');
^
Error: invalid reporter "mochawesome"
at Mocha.reporter (/usr/local/lib/node_modules/mocha/lib/mocha.js:193:13)
at Object. (/usr/local/lib/node_modules/mocha/bin/_mocha:368:7)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
请问是什么原因啊