Phonegap を Ubuntu 12.04 で動作させようとしています。これまでのところ、このガイドを使用して (まあまあ) インストールに成功しました: http://perrymitchell.net/article/install_phonegap_ubuntu_12.04
Android SDK と PATH 変数も追加しました。
「phonegap create」コマンドは成功しましたが、「phonegap run android」または「phonegap build android」を実行すると、次のようになります。
rok@localhost:~/myapp$ phonegap run 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 RemoteRunCommand.execute (/usr/local/lib/node_modules/phonegap/lib/phonegap/remote.run.js:71:26)
at RemoteRunCommand.run (/usr/local/lib/node_modules/phonegap/lib/phonegap/remote.run.js:54:10)
これを実行しようとしても成功しませんでした:
rok@localhost:~/myapp$ phonegap local plugin add org.apache.cordova.core.console
[phonegap] adding the plugin: org.apache.cordova.core.console
[error] Error fetching plugin: Error: connect ECONNREFUSED
私は何を間違っていますか