npm install -g gulp
使用gulp(在要检测JS文件所属目录下执行)
gulp check
gulp check > D:\js_error.txt
JS代码检查工具:gulp
原文:http://my.oschina.net/lhplj/blog/333242