yanglq2276 发表于 2014-2-24 18:03:12

安装phonegap有warn,phonegap run android时候报错

我是win7系统,安装了nodejs 0.10.5版本
安装phonegap的时候(npm install -g phonegap),有下面的几个WARN:(我把WARN单独copy出来了)
npm WARN engine ncallbacks@1.0.0: wanted: {"node":"~0.6.7"} (current: {"node":"v0.10.5","npm":"1.2.18"})
npm WARN package.json methods@0.0.1 No README.md file found!
npm WARN package.json connect-xcors@0.5.2 No README.md file found!
npm WARN package.json uid2@0.0.3 No README.md file found!

npm WARN unmet dependency C:\Users\xxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova\node_modules\npm\node_modules\npm-registry-client requires semver@'^2.2.1' but will load
npm WARN unmet dependency C:\Users\xxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova\node_modules\npm\node_modules\semver,
npm WARN unmet dependency which is version 2.2.1

这个是否有影响呢?

我再运行phonegap create my-app是正常的
但phonegap run android时,就报错了:

detecting Android SDK environment...
using the local environment
adding the Android platform...
    An error occured during creation of android sub-project.

C:\Users\xxx\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:126
                  throw e;
                        ^
Error: An error occurred while listing Android targets
    at C:\Users\xxx\.cordova\lib\android\cordova\3.3.0\bin\lib\check_reqs.js:87:29
    at _rejected (C:\Users\xxx\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:808:24)
    at C:\Users\xxx\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:834:30
    at Promise.when (C:\Users\xxx\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:1079:31)
    at Promise.promise.promiseDispatch (C:\Users\xxx\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:752:41)
    at C:\Users\xxx\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:574:44
    at flush (C:\Users\xxx\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:108:17)
    at process._tickCallback (node.js:415:13)

要怎么处理呢?

yanglq2276 发表于 2014-2-24 18:15:41

安装了最新版本的nodejs(0.10.26),除了下面的这个WARN有变化,其他错误提示都一样...

npm WARN engine ncallbacks@1.0.0: wanted: {"node":"~0.6.7"} (current: {"node":"v0.10.26","npm":"1.4.3"})

admin 发表于 2014-2-25 08:51:33

学习阶段 先用2.9吧可能网络等乱起八糟的原因引起的安装失败

″用眼睛、素描 发表于 2014-3-7 11:07:40

我安装的时候也是这样的安装官网的步骤来的也是报错。。。什么烂玩意,还换了新框架呢
页: [1]
查看完整版本: 安装phonegap有warn,phonegap run android时候报错