Install NodeJS on Ubuntu 12.10
2013-08-29 19:17
507 查看
Installing Node.js via package manager
The packages on this page are maintained and supported by their respective packagers, not the node.js core team. Please report any issues you encounter to the package maintainer. If itturns out your issue is a bug in node.js itself, the maintainer will report the issue upstream.
Gentoo
Node.js is available in the portage tree.[code]# emerge nodejs
Debian,
LMDE
Node.js is available in official repo for Debian Sid(unstable).For Debian Wheezy, your best bet is to compile node by yourself:
[code]sudo apt-get install python g++ make checkinstall mkdir ~/src && cd $_ wget -N http://nodejs.org/dist/node-latest.tar.gz tar xzvf node-latest.tar.gz && cd node-v* ./configure checkinstall #(remove the "v" in front of the version number in the dialog) sudo dpkg -i node_*
Uninstall:
[code]sudo dpkg -r node
In case you get a permission denied on the
nodeexecutable,
an alternative path might be:
[code]umask 0022 ./configure make checkinstall -D --umask 0022 --reset-uids --install=no dpkg -i node_*.deb
Ubuntu,
Mint, Elementary OS
Example install:[code]sudo apt-get update 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
It installs current stable Node on the current stable Ubuntu. Quantal (12.10) users may need to install the software-properties-commonpackage for the
add-apt-repositorycommand
to work:
sudo apt-get install software-properties-common
As of Node.js v0.10.0, the nodejs package from Chris
Lea's repo includes both npm and nodejs-dev.
There is a naming conflict with the node package (Amateur Packet Radio Node Program), and the nodejs binary has been renamed from
nodeto
nodejs.
You'll need to symlink
/usr/bin/nodeto
/usr/bin/nodejsor
you could uninstall the Amateur Packet Radio Node Program to avoid that conflict.
openSUSE
& SLE
Node.js stable repos list.Also node.js is available in openSUSE:Factory repository.
Available RPM packages for: openSUSE 11.4, 12.1, Factory and Tumbleweed; SLE 11 (with SP1 and SP2 variations).
Example install on openSUSE 12.1:
[code]sudo zypper ar http://download.opensuse.org/repositories/devel:/languages:/nodejs/openSUSE_12.1/ NodeJSBuildService sudo zypper in nodejs nodejs-devel
Fedora
Node.js and npm areavailable in Fedora 18 and later. Just use your favorite graphical package manager or run this on a terminal to install both npm and node:
[code]sudo yum install npm
RHEL/CentOS/Scientific
Linux 6
Node.js and npm are available from the Fedora Extra Packages for Enterprise Linux(EPEL) repository. If you haven't already done so, firstenable EPEL and then run
the following command to install node and npm:
[code]su -c 'yum install npm'
Arch
Linux
Node.js is available in the Community Repository.[code]pacman -S nodejs
FreeBSD
and OpenBSD
Node.js is available through the ports system.[code]/usr/ports/www/node
Development versions are also available using ports
[code]cd /usr/ports/www/node-devel/ && make install clean
or packages on FreeBSD
[code]pkg_add -r node-devel
OSX
Using a packageSimply download Macintosh Installer.
Using homebrew:
[code]brew install node
Using macports:
[code]port install nodejs
Windows
Using a packageSimply download Windows Installer.
Using chocolatey to install Node:
[code]cinst nodejs
or for full install with NPM:
[code]cinst nodejs.install
Last edited by Johnny Freeman, 3 days ago
转贴:https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint
另见:http://stackoverflow.com/questions/16302436/install-nodejs-on-ubuntu-12-10
相关文章推荐
- How To Install Node.js on an Ubuntu 14.04 server
- [译]How to Install Node.js on Ubuntu 14.04 如何在ubuntu14.04上安装node.js
- install nodejs on ubuntu
- How do you install Node.JS on CentOS?
- node.js install on linux 5.4
- How to Install and Run a node.js App on Centos 6.4 64bit
- How to install Node.js on Linux
- INSTALL NODE.JS ON WINDOWS
- Install nodejs on Linux Centos6.5
- ubuntu apt-get install node.js
- How to install Maven 3 on Ubuntu 12.04/12.10/13.04 by using apt-get
- Step by step instructions to install NodeJS on Windows
- Install MongoDB and Node.js on a Raspberry Pi
- How to Install Oracle Java JDK 6/7/8 on Ubuntu 13.04 / 12.10 / 12.04
- 【转】Install Node.js and NPM on Windows
- Update Nodejs on Ubuntu
- Installing node.js on ubuntu server 15.10
- How to Install Python 3.3 on Ubuntu 13.04, 12.10 and 12.04
- ubuntu install node.js socket.io
- ubuntu make install node JS