0

每当我尝试在 Linux(Lubuntu 13.04,节点 v0.6.19)中创建 PhoneGap 3.0 项目时,我都会收到以下错误:

devweinre:test kelvin$ phonegap build android
[phonegap] detecting Android SDK environment...
[phonegap] using the remote environment

/usr/local/lib/node_modules/phonegap/node_modules/phonegap-build/lib/common/config/global.js:45
    fs.exists(filepath, function(exists) {
       ^
TypeError: Object #<Object> has no method 'exists'
    at Object.load (/usr/local/lib/node_modules/phonegap/node_modules/phonegap-build/lib/common/config/global.js:45:8)
    at PhoneGapBuild.<anonymous> (/usr/local/lib/node_modules/phonegap/node_modules/phonegap-build/lib/phonegap-build/login.js:60:19)
    at PhoneGapBuild.login (/usr/local/lib/node_modules/phonegap/node_modules/phonegap-build/lib/phonegap-build/login.js:47:13)
    at PhoneGapBuild.<anonymous> (/usr/local/lib/node_modules/phonegap/node_modules/phonegap-build/lib/phonegap-build/build.js:60:10)
    at PhoneGapBuild.build (/usr/local/lib/node_modules/phonegap/node_modules/phonegap-build/lib/phonegap-build/build.js:40:13)
    at RemoteBuildCommand.execute (/usr/local/lib/node_modules/phonegap/lib/phonegap/remote.build.js:74:19)
    at RemoteBuildCommand.run (/usr/local/lib/node_modules/phonegap/lib/phonegap/remote.build.js:54:10)
    at Object.build (/usr/local/lib/node_modules/phonegap/lib/phonegap/util/command.js:28:25)
    at /usr/local/lib/node_modules/phonegap/lib/phonegap/build.js:78:28
    at /usr/local/lib/node_modules/phonegap/node_modules/cordova/src/platform.js:189:9

我一直在寻找答案,但似乎没有太多关于这个问题的内容。我能找到的唯一真正相关的问题是phonegap + Ubuntu 12.04。但这对我不起作用。每次构建(Android/iOS/WP8 等)都会发生这种情况。我知道iOS实际上不会工作,但它肯定会创建一个工作项目——Android应该工作——我已经安装了所有的先决条件。

有人可以帮助我,因为我不确定如何使它工作(我不是 CLI 专家)。

非常感谢!

4

1 回答 1

0

已修复 - 我的应用程序名称中有一个撇号,因此 phonegap 尝试执行的命令无法运行。

于 2013-09-27T09:24:47.147 回答