简体   繁体   English

Gulp Cordova构建android错误-node_modules-gulp-jscs-index.js:99:-RangeError:无效的字符串长度

[英]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.

相关问题 Phonegap / Cordova构建android node_modules / q / q.js throw e; - Phonegap/Cordova build android node_modules/q/q.js throw e; 忽略cordova构建上的node_modules - ignore node_modules on cordova build 在Ubuntu上安装Cordova会显示“…cordova / node_modules / q / q.js:126:错误 - Installation of Cordova on Ubuntu gives "…cordova/node_modules/q/q.js:126: error 使用Cordova的Ionic 3构建失败:cordova \\ node_modules \\ cordova-common \\ src \\ superspawn.js:169:23 - Ionic 3 BUILD FAILED with Cordova: cordova\node_modules\cordova-common\src\superspawn.js:169:23 Gaxios._request 中的值无效 (/srv/node_modules/googleapis-common/node_modules/gaxios/build/src/gaxios.js:89:23) - Invalid Value at Gaxios._request (/srv/node_modules/googleapis-common/node_modules/gaxios/build/src/gaxios.js:89:23) 资产和node_modules(Phonegap / Cordova) - assets and node_modules (Phonegap/Cordova) 本地存储index.js cordova - local storage index.js cordova phonegap运行android执行“adb devices”时出错:**守护进程仍未运行node_modules \\ q \\ q.js:126 throw e; - phonegap run android Error executing “adb devices”: ** daemon still not running node_modules\q\q.js:126 throw e; 找不到模块 node_modules\@react-native-community\cli\build\bin.js' - Cannot find module node_modules\@react-native-community\cli\build\bin.js' 无法从“node_modules\@firebase\app\dist\esm\index.esm2017.js”解析“idb” - Unable to resolve "idb" from "node_modules\@firebase\app\dist\esm\index.esm2017.js"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM