install node.js on debian

喜夏-厌秋 提交于 2019-12-13 04:42:09

问题


How to install node.js on Debian Wheezy

Have followed instructions but it doesn't work

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

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 #

回答1:


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.



来源:https://stackoverflow.com/questions/21198936/install-node-js-on-debian

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!