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时,就报错了:
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
[error] 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)