在将 phonegap 应用程序构建到 android 和当前问题上几个小时,我已经在这里停留了几天。我正在尝试开始使用 phonegap/cordova。所以面临安装问题。目前正在关注科尔多瓦的这份文档。任何对这个问题有想法的人
c:\Program Files\nodejs>cordova create hello com.example.hello HelloWorld
Creating a new cordova project with name "HelloWorld" and id "com.example.hello"
at location "c:\Program Files\nodejs\hello"
c:\Program Files\nodejs>cordova platform add android
c:\Program Files\nodejs>cd hello
c:\Program Files\nodejs\hello>cordova platform add android
Checking Android requirements...
Creating android project...
Preparing android project
c:\Program Files\nodejs\hello>cordova local run android
[Error: Cordova does not know local; try help for a list of all the available co
mmands.]
---------------------------------------------------------------------------------------
c:\Program Files\nodejs\hello>cordova run android
Generating config.xml from defaults for platform "android"
Preparing android project
Running app on platform "android" via command "cmd" /c c:\Program Files\nodejs\h
ello\platforms\android\cordova\run --device
[Error: n error occurred while running the android project.
module.js:340
throw err;
^
Error: Cannot find module 'c:\Program'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
]
--------------------------------------------------------------------------------------