[phonegap]安装phonegap
2015-09-15 23:21
351 查看
下载nodejs,安装,单nodejs4.0.0 x64编译时,还需要python2.6 or python2.7;
参考怎么安装python2.7: http://jingyan.baidu.com/article/19192ad8399a62e53e5707e0.html参考怎么安装nodejs v4.0.0 x64: http://jingyan.baidu.com/article/a948d6515d4c850a2dcd2e18.html
安装了nodejs后可以写一个test.js测试文件:
var http=require("http"); http.createServer(function(request,response){ response.writeHead(200,{"Content-Type":"text/plain"}); response.write("test nodejs"); response.end(); }).listen(8899); console.log("nodejs start listen 8899 port!");
在浏览器中输入http://localhost:8899,回车;
好了,nodejs已经安装好了,感觉nodejs还是挺简单的。
安装了nodejs后,可以在cmd中使用npm命令安装phonegap:
Install PhoneGap
To Install, ensure that you have NodeJS installed, then open your command-line and run the following:C:\> npm install -g phonegap[/code]
Once installation completes, you can invoke
phonegapon command line for further help.
Usage
$ phonegap create my-app $ cd my-app $ phonegap run android[/code]
Learn more at docs.phonegap.com
Looking for an easier way to get started? Try the new PhoneGap Desktop App (in beta)!
别人写的团购开源app,收藏下:http://www.cnblogs.com/archy_yu/p/4811600.html
相关文章推荐
- 那些年我们追过的网络库(PartI)
- ugly number
- 基于深层神经网络的命名实体识别技术
- 前端优化
- 模板 高精度 转自郭爷
- hdu5437 Alisha’s Party 优先队列
- CoffeeScript入门
- Android studio中正确引入so文件的方法
- 【leetcode】Valid Parentheses
- jni中文字符串乱码的处理方法
- CodeForces 576A - Vasya and Petya's Game
- FP_growth算法
- 求List集合的并集、交集、差集
- Thinkphp 几个调试配置,常量设置项
- 关于JavaScript中的事件代理
- Nacl开发
- java线程中断和终止线程运行
- MyBatis学习手记(二)MyBatis缓存机制
- java学习记录之——泛型
- c++主函数输出圆柱体的半径和高,然后调用函数输出其体积