mac os install node.js
来源:互联网 发布:网络大型单机游戏大全 编辑:程序博客网 时间:2024/05/17 20:34
原文地址:http://howtonode.org/how-to-install-nodejs
如果你使用 homebrew 包管理工具的话,可以直接brew install node
或者用另外一种安装方式:
- Install Xcode.
- Install git.
- 运行下面的代码:
git clone git://github.com/ry/node.gitcd node./configuremakesudo make install
测试时候成功:
写一个Hello Node.js!
var http = require('http');http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello Node.js\n');}).listen(8124, "127.0.0.1");console.log('Server running at http://127.0.0.1:8124/');
输入以下命令:
> node hello_node.jsServer running at http://127.0.0.1:8124/
如果安装成功访问 http://127.0.0.1:8124/ 是可以看到nodejs安装成功的界面。
附:git 安装url:http://help.github.com/mac-set-up-git/
- mac os install node.js
- mac os install node.js
- Mac Os 安装 node.js
- mac os 10.12.5安装node.js
- mac os install tunnelblick
- Mac OS install mongodb
- Node.js安装及常用命令(Mac OS )
- Mac OS X 下Node.js开发环境的搭建
- phantomjs install:`node install.js`
- Centos install node.js
- Install Node.js
- install mac os in vmware
- Mac OS X install mongodb
- VirtualBox: Install Mac OS X
- Install Docker Mac OS X
- Mac OS X Install Docker
- node.js os模块
- node.js os模块
- 特征选择算法之开方检验
- SEO优化如何让蜘蛛黏上你的站进行快照
- 1.3.6.1.4.1(SNMP-MIB库)
- 利用SSLStrip & Ettercap ARP欺骗嗅探密码
- IIS7.0 HttpModule 不可用
- mac os install node.js
- PKI体系及常见证书
- mongodb replica sets功能
- Magento外部Add to cart操作(广告需要)
- android:drawSelectorOnTop含义
- “弈动九州·智惠华夏”:首届全国网络智力运动会火热进行中
- boot.ini文件解密
- eclipse中java代码格式化设置方法
- 让DIV块保持在浏览器窗口中央位置