如何使用Brew安装最新版本的Node [英] How to install latest version of Node using Brew

查看:95
本文介绍了如何使用Brew安装最新版本的Node的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NodeJs的最新版本是0.4.1

The latest version of NodeJs right now is 0.4.1

命令brew install node现在安装0.2.6-这不是理想的选择.我想要0.4.1

The command brew install node right now, installs 0.2.6 - which is not ideal. I would like 0.4.1

我查看了此命令列表,用于brew和尝试过brew install --HEAD node

I've looked at this list of commands for brew and tried brew install --HEAD node

但这将安装节点0.5-pre.

But that installs node 0.5-pre.

为什么brew没有安装正确的版本,我怎么能强迫它获得正确的版本?

Why isn't brew installing the right version and how can I force it to get the right one?

在这个阶段,看起来似乎实际上更容易下载src并手动安装它.但是我想知道Brew发生了什么.

At this stage, it looks like it would actually be easier just to download the src and install it manually. But I would like to know what's going on with Brew.

推荐答案

您是否先运行brew update?如果您不这样做,Homebrew将无法更新其公式,并且如果不更新其公式,那么它将不知道如何安装最新版本的软件.

Have you run brew update first? If you don't do that, Homebrew can't update its formulas, and if it doesn't update its formulas it doesn't know how to install the latest versions of software.

这篇关于如何使用Brew安装最新版本的Node的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆