V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Livid
V2EX  ›  Node.js

通过 PPA 在 Ubuntu 上安装最新版本的 node.js

  •  
  •   Livid · 2013-03-18 19:29:43 +08:00 · 4996 次点击
    这是一个创建于 4049 天前的主题,其中的信息可能已经有所发展或是发生改变。
    sudo apt-get install python-software-properties python g++ make
    sudo add-apt-repository ppa:chris-lea/node.js
    sudo apt-get update
    sudo apt-get install nodejs
    7 条回复    1970-01-01 08:00:00 +08:00
    meteor
        1
    meteor  
       2013-03-18 20:00:53 +08:00
    我一直用的是这个PPA源。
    这个作者做了2个源,一个是稳定版,一个是不稳定版。

    stable
    https://launchpad.net/~chris-lea/+archive/node.js
    unstable
    https://launchpad.net/~chris-lea/+archive/node.js-devel

    另外这步其实一般不需要
    sudo apt-get install python-software-properties python g++ make
    一般的桌面版Ubuntu都支持直接添加PPA源的。
    这步只是给服务器版Ubuntu增加PPA源用的。
    因为add-apt-repository这个命令在python-software-properties这个包里。
    imcj
        2
    imcj  
       2013-03-18 20:33:39 +08:00
    vagrant一般都是用server版 @meteor
    meteor
        3
    meteor  
       2013-03-18 20:51:48 +08:00
    @imcj vagrant挺坑爹的。不过比VMware省内存。
    Mac上用vagrant挺好的。保证开发环境和部署环境一致。
    http://www.vagrantup.com/

    不过我感觉这个有点扯远了。
    另外vagrant一般配chef使用。
    imcj
        4
    imcj  
       2013-03-18 21:04:18 +08:00
    @meteor 看个人,chef什么的我都不喜欢。我的环境很简单,直接用shell.
    duhastmich
        5
    duhastmich  
       2013-03-19 10:40:03 +08:00
    我猜Livid 开始折腾express 了
    Livid
        6
    Livid  
    MOD
    OP
       2013-07-03 11:37:41 +08:00
    @duhastmich 一些轻量级的 server(不一定是 HTTP 协议),很适合用 nodejs 来做。
    duhastmich
        7
    duhastmich  
       2013-07-03 21:02:36 +08:00
    我猜Livid忘记怎么装最新版的nodejs了,其实我想整理个开发者常用ppa集合,然后写两行shell一键选择安装
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1178 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 23:10 · PVG 07:10 · LAX 16:10 · JFK 19:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.