windows系统下的istanbul指令
时间:2015-04-11 14:31:03
收藏:0
阅读:1060
linux系统里,正常的指令是istanbul cover _mocha,但在Windows系统执行该指令会报错SyntaxError: Unexpected token ILLEGAL,在查看了stackoverflow的相关解答后才发现是istanbul找不到_mocha这个指令,所以命令应该这样:istanbul cover {your_npm_path}\npm\node_modules\mocha\bin\_mocha。
ps: 有条件的情况下要用google找问题,百度在这方面就是个渣啊
原文:http://www.cnblogs.com/ublue/p/4417632.html
评论(0)