0
每当我试图在Linux中创建(Lubuntu 13.04,节点v0.6.19)我收到以下错误的PhoneGap 3.0项目:的PhoneGap构建<platform> - fs.exists错误
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的专家)。
非常感谢!