从CLI插件执行命令期间发生错误(@ ionic / cli-plugin-cordova)

时间:2017-08-04 05:53:23

标签: cordova ionic2

当我尝试做'离子cordova运行android'时,我收到以下错误。有人可以建议一个解决方案?请注意,该应用程序之前已成功运行,我想在更新到最新的Ionic CLI和插件后,我已经开始出现此错误

[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova).
Error: Non-whitespace before first tag.
Line: 0
Column: 1
Char:

我使用--verbose运行后出现以下错误:

C:\MAPP\wemartmobile\WeMartMobile>ionic cordova run android --verbose
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'C:\\MAPP\\wemartmobile\\WeMartMobile', local: true, binPath:
        'C:\\Users\\d.dutta.chowdhury\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath:
        'C:\\MAPP\\wemartmobile\\WeMartMobile\\node_modules\\ionic\\dist\\index.js' }
[DEBUG] Loading local plugin @ionic/cli-plugin-proxy
[DEBUG] Throwing PLUGIN_NOT_INSTALLED for local @ionic/cli-plugin-proxy
[DEBUG] Loading local plugin @ionic/cli-plugin-cordova
[DEBUG] Loading local plugin @ionic/cli-plugin-ionic-angular
[DEBUG] New daemon pid: 13020
[DEBUG] Getting plugin info for ionic
[DEBUG] Checking for latest plugin version of ionic@latest.
[DEBUG] Getting plugin info for @ionic/cli-plugin-cordova
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-cordova@latest.
[DEBUG] Getting plugin info for @ionic/cli-plugin-ionic-angular
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-ionic-angular@latest.
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova).
Error: Non-whitespace before first tag.
Line: 0
Column: 1
Char:
[DEBUG] Error: Non-whitespace before first tag.
        Line: 0
        Column: 1
        Char:
        at error (C:\MAPP\wemartmobile\WeMartMobile\node_modules\elementtree\node_modules\sax\lib\sax.js:666:10)
        at strictFail (C:\MAPP\wemartmobile\WeMartMobile\node_modules\elementtree\node_modules\sax\lib\sax.js:692:7)
        at beginWhiteSpace
        (C:\MAPP\wemartmobile\WeMartMobile\node_modules\elementtree\node_modules\sax\lib\sax.js:965:7)
        at Object.write (C:\MAPP\wemartmobile\WeMartMobile\node_modules\elementtree\node_modules\sax\lib\sax.js:1006:11)
        at XMLParser.feed (C:\MAPP\wemartmobile\WeMartMobile\node_modules\elementtree\lib\parsers\sax.js:48:15)
        at ElementTree.parse (C:\MAPP\wemartmobile\WeMartMobile\node_modules\elementtree\lib\elementtree.js:271:10)
        at Object.parse (C:\MAPP\wemartmobile\WeMartMobile\node_modules\elementtree\lib\elementtree.js:584:8)
        at Function.<anonymous>
        (C:\MAPP\wemartmobile\WeMartMobile\node_modules\@ionic\cli-plugin-cordova\dist\lib\utils\configXml.js:28:28)
        at next (native)
        at fulfilled (C:\MAPP\wemartmobile\WeMartMobile\node_modules\tslib\tslib.js:93:62)

C:\MAPP\wemartmobile\WeMartMobile>

1 个答案:

答案 0 :(得分:0)

检查 config.xml 文件,因为有问题,我遇到了与sax.js类似的问题 git conflict markup &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;在config.xml中