Gulp Cordova构建android错误-node_模块-Gulp jscs-index.js:99:-RangeError:无效字符串长度

Gulp Cordova构建android错误-node_模块-Gulp jscs-index.js:99:-RangeError:无效字符串长度,android,cordova,build,gulp,hybrid-mobile-app,Android,Cordova,Build,Gulp,Hybrid Mobile App,RangeError:字符串长度无效 this.emit('error', new gutil.PluginError('gulp-jscs', out.join('\n\n'), { ^ at Array.join(本机) 在DestroyableTransform.\u flush(C:\ABC\node\u modules\gulp jscs\index.j (s:99:62) 在一次彻底的变革中。(C:\ABC\node\u modules\gulp jscs\no deu mo

RangeError:字符串长度无效

this.emit('error', new gutil.PluginError('gulp-jscs', out.join('\n\n'), {

  ^
at Array.join(本机)
在DestroyableTransform.\u flush(C:\ABC\node\u modules\gulp jscs\index.j
(s:99:62)
在一次彻底的变革中。(C:\ABC\node\u modules\gulp jscs\no
deu modules\through2\node\u modules\readable stream\lib\\u stream\u transform.js:135:12
)

添加try&catch块 ,功能(cb){

 at Array.join (native)
    at DestroyableTransform._flush (C:\ABC\node_modules\gulp-jscs\index.j
s:99:62)
    at DestroyableTransform.<anonymous> (C:\ABC\node_modules\gulp-jscs\no
de_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:135:12
)
    if (out.length > 0) {
        try {
            console.log('out is: ', out[1]);
            this.emit('error', new gutil.PluginError('gulp-jscs', out.join('\n\n'), {
                showStack: false
            }));
        } catch (e) {
            console.log('exception: ', e);
        }
    }

    cb();
})