1.安装nodeJs(node-v0.12.2-x64.msi),和git client(Git-1.9.5-preview20150319.exe)
2.命令窗口运行 npm instal -g cordova
安装过程根据网速定,一般会有十几几十分钟很正常
同事总结了下cordova的一些内容,比较全面,放在这里我也好参考,
android sdk download proxy
mirrors.opencas.cn 80
大连东软信息学院镜像服务器地址:
http://mirrors.neusoft.edu.cn 端口:80
北京化工大学镜像服务器地址:
IPv4: http://ubuntu.buct.edu.cn/ 端口:80
IPv4: http://ubuntu.buct.cn/ 端口:80
IPv6: http://ubuntu.buct6.edu.cn/ 端口:80
上海GDG镜像服务器地址:
http://sdk.gdgshanghai.com 端口:8000
中国科学院开源协会镜像站地址:
IPV4/IPV6: http://mirrors.opencas.cn 端口:80
IPV4/IPV6: http://mirrors.opencas.org 端口:80
IPV4/IPV6: http://mirrors.opencas.ac.cn 端口:80
compression01.stkn.mdsg-pacwest.com 80
cordova help
cordova info
npm update -g cordova
npm install -g [email protected]
npm info cordova
cordova platform update android
$ cordova build # build all platforms that were added
$ cordova build android # build debug for only Android
$ cordova build android --debug # build debug for only Android
$ cordova build android --release # build release for only Android
$ cordova emulate android #to deploy the app on a default iOS emulator
$ cordova run android --device #to deploy the app on a connected device
cordova plugin add
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-networkinformation.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git
cordova plugin add https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-device-orientation.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
cordova plugin add cordova-plugin-network-information
cordova plugin add cordova-plugin-battery-status
cordova plugin add cordova-plugin-file-transfer
cordova plugin add cordova-plugin-console cordova-plugin-device
cordova plugin add [email protected]
cordova plugin add [email protected]
cordova plugin add https://github.com/apache/cordova-plugin-console.git#r0.2.0
cordova plugin add https://github.com/someone/aplugin.git#:/my/sub/dir
cordova plugin add https://github.com/someone/aplugin.git#r0.0.1:/my/sub/dir
cordova plugin add ../my_plugin_dir
cordova plugin remove org.apache.cordova.core.file
cordova prepare platform_name
cordova compile android
cordova build android
cordova emulate android
cordova serve android 8080
cordova plugin search bar code
cordova create lunch_menu
cd lunch_menu
cordova platform add blackberry
cordova prepare blackberry
cordova create MAP_1.0 com.zhxjz.map Map
cordova platform add android
cordova platform ls
cordova platform remove platform_name
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>