下载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            

Once installation completes, you can invoke phonegap on command line for further help.


Usage

$ phonegap create my-app
$ cd my-app
$ phonegap run android

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

最新文章

  1. 探索c#之Async、Await剖析
  2. IOS之Objective-C学习 工厂模式
  3. express中的路由
  4. 如何牢记C/C++中const的用法?
  5. Android --ToggleButton的使用
  6. BugFixed
  7. WAP网页输入框的默认键盘类型控制
  8. SET GLOBAL slow_query_log=1
  9. cpio备份命令
  10. 一个简单的appium脚本
  11. MyBatis的学习总结三:优化MyBatis配置文件中的配置
  12. UESTC_敢说就敢做 CDOJ 631
  13. linux 查看某进程或程序的网卡流量(转)
  14. 【方法】Oracle用户密码含特殊字符时的登陆问题
  15. C#版 - Leetcode 215. Kth Largest Element in an Array-题解
  16. 使用gitflow流程完成功能时报错
  17. OS模块学习
  18. python之旅七【第七篇】面向对象之类成员
  19. vmware中的linux虚拟机配置以nat模式上网,并用xshell连接该虚拟机
  20. 性感天才黑客乔治·霍兹George Hotz 17岁打脸乔布斯20岁搞疯索尼

热门文章

  1. Error when loading the SDK:
  2. 一看就懂的Android APP开发入门教程
  3. xinwajueji
  4. 搭建C语言开发环境
  5. ::after,::before使用
  6. Delphi XE5 与其他版本共存
  7. 【Android开发学习笔记】【高级】【随笔】插件化——资源加载
  8. 规则html表单对象赋值
  9. webView、scrollView、TableView,为了防止滚动时出现偏移,底部黑框问题等
  10. sqlserver 中含有某字符串