Blog

Blog

PHODAL

io.js 安装

引用一些之前的故事:

Node.js作为服务器编程语言的后起之秀,常用来构建和运行Web应用,近日却爆出其社区出现分裂。由于对官方运营商Joyent公司在Node.js管理上的长期不满,多位核心开发者另立门户,创建了分支Io.js。

IO.js

Io.js是基于Node.js的npm兼容平台。

Mac OS Homebrew 下安装

在Homebrew安装

 brew install iojs

然而安装完后我们并不能直接使用iojs

==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/iojs-1.1.0.yosemite.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/iojs-1.1.0.yosemite.bottle.tar.gz
==> Pouring iojs-1.1.0.yosemite.bottle.tar.gz
==> Caveats
iojs was installed without npm.

iojs currently requires a patched npm (i.e. not the npm installed by node).

This formula is keg-only, which means it was not symlinked into /usr/local.

iojs conflicts with node (which is currently more established)

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/iojs/lib
    CPPFLAGS: -I/usr/local/opt/iojs/include

==> Summary
🍺  /usr/local/Cellar/iojs/1.1.0: 46 files, 12M

于是简单地使用这个来启动server

 /usr/local/Cellar/iojs/1.1.0/bin/iojs diaonan.js

看上去似乎没有不兼容,难道从今天起我们就要用io.js了?


或许您还需要下面的文章:

关于我

Github: @phodal     微博:@phodal     知乎:@phodal    

微信公众号(Phodal)

围观我的Github Idea墙, 也许,你会遇到心仪的项目

QQ技术交流群: 321689806
comment

Feeds

RSS / Atom

最近文章

关于作者

Phodal Huang

Engineer, Consultant, Writer, Designer

ThoughtWorks 技术专家

工程师 / 咨询师 / 作家 / 设计学徒

开源深度爱好者

出版有《前端架构:从入门到微前端》、《自己动手设计物联网》、《全栈应用开发:精益实践》

联系我: h@phodal.com

微信公众号: 最新技术分享

标签