首页 文章

Windows 7上的伊斯坦布尔茉莉花节点问题

提问于
浏览
-1

试图用茉莉花节点运行伊斯坦布尔

正在运行:节点C:\ myproject \ project1 \ node_modules.bin \ jasmine-node.CMD test没有收集覆盖信息,退出时没有编写覆盖率信息C:\ myproject \ project1 \ merg \ node_modules.bin \ jasmine-node.CMD :1(函数(exports,require,module,__ filename,__ dirname){@IF EXIST“%~dp0 \ node.exe”(^ SyntaxError:Object.exports.runInThisContext中的无效或意外的标记(vm.js:76:16)在Module._compile(module.js:528:28)的Object.Module._extensions..js(module.js:565:10)处于Object.Module._extensions . (匿名函数)[as .js](C :\ myproject \ project1 \ merg \ node_modules \ istanbul \ lib \ hook.js:109:37)在Module.load(module.js:473:32)的tryModuleLoad(module.js:432:12)处于Function.Module位于runFn的Function.Module.runMain(module.js:590:10)的._load(module.js:424:3)(C:\ myproject \ project1 \ merg \ node_modules \ istanbul \ lib \ command \ common \ run- with-cover.js:122:16)在C:\ myproject \ project1 \ merg \ node_modules \ istanbul \ lib \ command \ common \ run-with-cover.js:251:17 npm ERR!Windows_N T 6.1.7601 npm ERR! argv“C:\ Program Files \ nodejs \ node.exe”“C:\ Users \ itsme \ AppData \ Roaming \ npm \ node_modules \ npm \ bin \ npm-cli.js”“run”“test-cov”npm ERR !节点v6.6.0 npm ERR! npm v3.10.7 npm ERR!代码ELIFECYCLE npm ERR! Merg@0.4.0 test-cov:istanbul cover --report cobertura --include-all-sources jasmine-node test npm ERR!退出状态1 npm ERR!错误的ERR!在Merg@0.4.0 test-cov脚本'istanbul cover --report cobertura --include-all-sources jasmine-node test'失败 . 错误的ERR!确保安装了最新版本的node.js和npm . 错误的ERR!如果你这样做,这很可能是Merg包的问题,npm ERR!不是与npm本身 . 错误的ERR!告诉作者你的系统失败了:npm ERR!伊斯坦布尔封面 - 报告cobertura --include-all-sources jasmine-node test npm ERR!您可以使用以下命令获取有关如何为此项目打开问题的信息:npm ERR! npm bugs Merg npm ERR!或者,如果没有,您可以通过以下方式获取他们的信息:npm ERR! npm owner ls Merg npm ERR!上面可能有额外的日志记录输出 . 错误的ERR!请在任何支持请求中包含以下文件:npm ERR! C:\ MyProject的\ Project1的\ MERG \ NPM-的debug.log

1 回答

  • 0

    试试 "node_modules/mocha/bin/_mocha" 而不是 "_mocha" .

相关问题