我一直在这里停留了几天,在android中构建phonegap应用程序,并在当前问题上花费了几个小时。我正在尝试开始phonegap/cordova的工作。所以在安装时遇到问题。目前正在关注科尔多瓦的this文件。任何人有关于这个问题的想法Cordova/Phonegap安装:n运行Android项目时发生错误
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
]
--------------------------------------------------------------------------------------
安装phonegap没有任何错误:http://www.markupjavascript.com/2014/07/installing-phonegap-in-windows.html –