在Debian 6.0上安装node.js [英] Installing node.js on Debian 6.0

查看:112
本文介绍了在Debian 6.0上安装node.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很好,我有一个vserver与Debian 6.0。

So well, I have a vserver with Debian 6.0.

现在我想安装Node.js,但是网络上没有一个教程似乎工作。
我尝试了所有的结果谷歌给我,当我输入安装node.js在linux
我大部分失败,因为我不知道如何安装依赖项(我是新的linux btw )

Now I would like to install Node.js, but none of the tutorials on the web seem to work. I have tried all of the results google gives me when I enter "install node.js on linux" I mostly failed because I had no idea how to install the dependencies (I'm new to linux btw)

如何在刚安装的Debian系统上安装node.js(因此没有安装程序等)?

How to install node.js on a Debian system that was just setup (so no programs already installed on it and such)?

推荐答案

尽管如ArjunShankar所说,您通常应该使用预先构建的包。对于Debian软件包来说,Node.js的移动速度相当快。我强烈建议您自己进行安装,直到节点停止运行为止。例如,最近有一个意外的更新修复了一个重要的安全漏洞 - 当事情需要快速移动时,您不希望依赖于一个适用于Debian过期版本的软件包。

Although, as ArjunShankar says, you should normally use a pre-built package. Node.js is rather too fast moving for Debian packages to keep up. I would strongly recommend that you do your own installs until such a time as Node settles down. For example, there was an unexpected update recently that fixes an important security loophole - you do not want to be dependent on a package that is for an out-of-date version of Debian when things need to move fast.

相反,您应该从源代码安装。

Instead, you should install from source.

您可以将源文件下载直接解包成临时文件夹,并按照说明进行操作在节点Github页面上。或者,如果您对GIT有信心,您可以使用它来获取源 - 再次到临时文件夹&请按照安装说明进行操作。

You can download the source archive direct unpack it into a temporary folder and follow the instructions on the Node Github page. Alternatively, if you are confident with GIT, you can use that to grab the source - again to a temporary folder & follow the installation instructions.

有很多软件依赖进行编译,所以你需要先确定它们 - 都应该在Debian apt包中。请参阅 http:// blog.timmattison.com/archives/2011/04/26/installing-nodejs-couchdb-and-npm-on-debian-the-easy-way/ http://sekati.com/etc/install-nodejs-on-debian-squeeze 了解更多信息。

There are a number of software dependencies for compiling so you need to make sure that you have them first - they should all be in the Debian apt packages. See http://blog.timmattison.com/archives/2011/04/26/installing-nodejs-couchdb-and-npm-on-debian-the-easy-way/ or http://sekati.com/etc/install-nodejs-on-debian-squeeze for further information.

需要几分钟的时间编写才能耐心。

It will take a few minutes to do the compile so be patient.

一旦你完成了一次,升级也很简单 - 只是重复下载/编译过程。

Once you've done it once, upgrades are also easy - just repeat the download/compile process.

Node.js安装现在包括npm工具,因此安装库和其他代码非常简单。

Node.js installations now include the npm tool so installing libraries and other code is extremely simple.

这篇关于在Debian 6.0上安装node.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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