使用Ionic + Cordova构建Ubuntu应用程序

时间:2016-09-17 05:26:08

标签: cordova ubuntu desktop-application ionic2

我想使用Ionic / Cordova构建一个Ubuntu应用程序。我知道我可以使用命令行添加平台:

ionic platform add ubuntu

但是当我尝试构建时,我收到错误并且无法解决问题:

尝试回退到Cordova-lib执行时发生错误:TypeError:无法读取属性'然后'未定义的     在Object.IonicTask.runCordova(/usr/lib/node_modules/ionic/lib/ionic/cordova.js:261:21)
    at /usr/lib/node_modules/ionic/lib/ionic/cordova.js:127:19
    在_fulfilled(/usr/lib/node_modules/ionic/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done(/usr/lib/node_modules/ionic/node_modules/q/q.js:816:30)
    在Promise.promise.promiseDispatch(/usr/lib/node_modules/ionic/node_modules/q/q.js:749:13)
    at /usr/lib/node_modules/ionic/node_modules/q/q.js:557:44
    在flush(/usr/lib/node_modules/ionic/node_modules/q/q.js:108:17)
    在_combinedTickCallback(内部/进程/ next_tick.js:67:7)
    at process._tickCallback(internal / process / next_tick.js:98:9)
发生错误TypeError:无法读取属性'然后'未定义的     在Object.IonicTask.runCordova(/usr/lib/node_modules/ionic/lib/ionic/cordova.js:261:21)
    at /usr/lib/node_modules/ionic/lib/ionic/cordova.js:127:19
    在_fulfilled(/usr/lib/node_modules/ionic/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done(/usr/lib/node_modules/ionic/node_modules/q/q.js:816:30)
    在Promise.promise.promiseDispatch(/usr/lib/node_modules/ionic/node_modules/q/q.js:749:13)
    at /usr/lib/node_modules/ionic/node_modules/q/q.js:557:44
    在flush(/usr/lib/node_modules/ionic/node_modules/q/q.js:108:17)
    在_combinedTickCallback(内部/进程/ next_tick.js:67:7)
    at process._tickCallback(internal / process / next_tick.js:98:9)
TypeError:无法读取属性'然后'未定义的     在Object.IonicTask.runCordova(/usr/lib/node_modules/ionic/lib/ionic/cordova.js:261:21)
    at /usr/lib/node_modules/ionic/lib/ionic/cordova.js:127:19
    在_fulfilled(/usr/lib/node_modules/ionic/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done(/usr/lib/node_modules/ionic/node_modules/q/q.js:816:30)
    在Promise.promise.promiseDispatch(/usr/lib/node_modules/ionic/node_modules/q/q.js:749:13)
    at /usr/lib/node_modules/ionic/node_modules/q/q.js:557:44
    在flush(/usr/lib/node_modules/ionic/node_modules/q/q.js:108:17)
    在_combinedTickCallback(内部/进程/ next_tick.js:67:7)
    at process._tickCallback(internal / process / next_tick.js:98:9)

请帮忙吗?

0 个答案:

没有答案