ionic + phonegap(不是cordova)在安装时会出错,它是否支持phonegap?

时间:2014-11-29 16:01:08

标签: cordova window ionic

我安装了phonegap + nodejs +使其工作所需的一切,并且效果很好 现在我想安装离子框架并在phonegap项目中使用它但没有成功 我认为它还在寻找cordova 如果我喜欢在phonegap中使用它,我会做什么? 这是我在尝试Scaffold my First Ionic App时遇到的错误

D:\dev\Mobile\PhoneGap>ionic start myFirstIonicApp
Creating Ionic app in folder D:\dev\Mobile\PhoneGap\myFirstIonicApp based on tabs project

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================]  100%  0.0s

Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================]  100%  0.0s

Update config.xml
Initializing cordova project
'cordova' is not recognized as an internal or external command,
operable program or batch file.
Unable to add plugins. Perhaps your version of Cordova is too old. Try updating (npm install -g cordova), removing this project folder, and trying again. (CLI v1.2.8)

1 个答案:

答案 0 :(得分:1)

您将需要使用Cordova,因为Cordova是具有Phonegap使用的API的库。 Phonegap仅添加了Phonegap构建和Phonegap服务等功能。

您必须下载Cordova:     npm install -g cordova并检查您是否可以在命令提示符/终端中使用cordova命令。