平台列表在最新的phonegap中不起作用

时间:2014-08-02 02:28:40

标签: ios cordova

%phonegap版本 3.5.0-0.20.10

这只是用npm

安装的

%npm --version 1.4.21

所以list命令给出了这个

% phonegap platform list
   [error] 'platform list' is not a phonegap command. See 'phonegap help'

然后,

% phonegap platform help

Usage: phonegap platform [command]

Description:

  Update a platform to the latest version.

Commands:

  update <platform>    update platform to the latest version

Examples:

  $ phonegap platform update android

好的,也许&#34;列表&#34;命令已弃用。检查:

% phonegap platform update ios
[phonegap] npm
[phonegap] phonegap
[phonegap] module
[phonegap] updating iOS platform using PhoneGap CLI version 3.5.0-0.20.10
{ [CordovaError: Platform "ios" is not installed. See `cordova platform list`.]
  name: 'CordovaError',
  message: 'Platform "ios" is not installed. See `cordova platform list`.' }
   [error] Platform "ios" is not installed. See `cordova platform list`.

1 个答案:

答案 0 :(得分:1)

在底部清楚地提到了你需要使用哪个命令

cordova platform list