[英]Gulp Cordova build android error - node_modules - gulp-jscs - index.js:99 :- RangeError: Invalid string length
this.emit('error', new gutil.PluginError('gulp-jscs', out.join('\n\n'), {
^
RangeError: Invalid string length RangeError:无效的字符串长度
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
)
Add try & catch block , function (cb) { 添加try&catch块 ,函数(cb){
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();
})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.