在debian上安装node.js [英] install node.js on debian

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

问题描述

如何在Debian Wheezy上安装node.js

How to install node.js on Debian Wheezy

遵循说明,但不起作用

https://github.com/joyent/node/wiki/Installation

# wget http://nodejs.org/dist/v0.10.24/node-v0.10.24-linux-x64.tar.gz
# tar -zxf node-v0.10.24-linux-x64.tar.gz && cd node-v0.10.24-linux-x64
# ./configure && make && make install

前两行很好,但是当运行第三行时,返回错误

The first two lines turn out well, but when running the third line this error is returned

-bash: ./configure: No such file or directory



node.js dir



node.js dir

root@dyntest-amd-6000-8gb ~/node-v0.10.24-linux-x64 # ls
bin  ChangeLog  include  lib  LICENSE  README.md  share
root@dyntest-amd-6000-8gb ~/node-v0.10.24-linux-x64 #


推荐答案

看起来你下载了二进制分发,但你正在运行命令,就像您正在尝试从源代码构建一样。您不需要配置 make 。它已经是可执行的准备好了。只需运行〜/ node-v0.10.24-linux-x64 / bin / node 并且repl应该启动。

Looks like you downloaded a binary distribution but you are running commands as if you are trying to build from source. You don't need configure or make. It's already an executable ready to go. Just run ~/node-v0.10.24-linux-x64/bin/node and the repl should start up.

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

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