diff --git a/layouts/css/base.styl b/layouts/css/base.styl index 4479a6f106fff..4c04ec765b858 100644 --- a/layouts/css/base.styl +++ b/layouts/css/base.styl @@ -60,6 +60,7 @@ pre border-radius 3px padding 0.75em 1.2em font-size 0.8em + white-space pre-wrap code color #f0f0f0 diff --git a/layouts/css/page-modules/_download.styl b/layouts/css/page-modules/_download.styl index de792d66032f2..344f4f1c2774a 100644 --- a/layouts/css/page-modules/_download.styl +++ b/layouts/css/page-modules/_download.styl @@ -26,6 +26,8 @@ color $node-green .download-matrix + margin-bottom 1.5rem + th text-align left width 33% diff --git a/layouts/download.hbs b/layouts/download.hbs index f70f0e471cfdc..fa94acae83d50 100644 --- a/layouts/download.hbs +++ b/layouts/download.hbs @@ -91,12 +91,12 @@ -

- All download options -

-

- {{downloads.currentVersion}}: {{project.currentVersion}}, {{site.download.releases.text}} -

+ {{downloads.currentVersion}}: {{project.currentVersion}} +

{{downloads.buildDisclaimer}}

diff --git a/locale/en/download/package-manager.md b/locale/en/download/package-manager.md new file mode 100644 index 0000000000000..0550e50cee814 --- /dev/null +++ b/locale/en/download/package-manager.md @@ -0,0 +1,326 @@ +--- +layout: page.hbs +title: Installing Node.js via package manager +--- + +# Installing Node.js via package manager + +***Note:*** 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 it turns out your issue is a bug in Node.js itself, the maintainer will report the issue upstream. + +---------------------------- + +* [Debian and Ubuntu based Linux distributions](#debian-and-ubuntu-based-linux-distributions) +* [Enterprise Linux and Fedora](#enterprise-linux-and-fedora) +* [Gentoo](#gentoo) +* [openSUSE and SLE](#opensuse-and-sle) +* [Arch Linux](#arch-linux) +* [Void Linux](#void-linux) +* [FreeBSD and OpenBSD](#freebsd-and-openbsd) +* [OSX](#osx) +* [Windows](#windows) + +---------------------------- + +## Debian and Ubuntu based Linux distributions + +_**NOTE: Temporary info before full update of this wiki page**_ +Below is not an up-to-date info. Check the [nodesource's blog post](https://nodesource.com/blog/nodejs-v012-iojs-and-the-nodesource-linux-repositories) to install node 0.12 on Debian and Ubuntu. +_**NOTE END**_ + +Also including: **Linux Mint**, **Linux Mint Debian Edition (LMDE)**, **elementaryOS** and others. + +Node.js is available from the [NodeSource](https://nodesource.com) Debian and Ubuntu binary distributions repository (formerly [Chris Lea's](https://github.com/chrislea) Launchpad PPA). Support for this repository, along with its scripts, can be found on GitHub at [nodesource/distributions](https://github.com/nodesource/distributions). + +Setup with Ubuntu: + +``` +curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash - +``` + +Then install with Ubuntu: + +``` +sudo apt-get install --yes nodejs +``` + +Setup with Debian (as root): + +``` +apt-get install curl +curl --silent --location https://deb.nodesource.com/setup_0.12 | bash - +``` + +Then install with Debian (as root): + +``` +apt-get install --yes nodejs +``` + +***Optional***: install build tools + +To compile and install native addons from npm you may also need to install build tools: + +``` +apt-get install --yes build-essential +``` + +*(Note: The optional "nodejs-legacy" package from Debian helps prevent a conflict with the Amateur Packet Radio "Node" Program)* + +**Available architectures:** + +* **i386** (32-bit) +* **amd64** (64-bit) +* **armhf** (ARM 32-bit hard-float, ARMv7 and up: _arm-linux-gnueabihf_) + +**Supported Ubuntu versions:** + +* **Ubuntu 12.04 LTS** (Precise Pangolin) +* **Ubuntu 14.04 LTS** (Trusty Tahr) +* **Ubuntu 15.04** (Vivid Vervet) + +**Supported Debian versions:** + +* **Debian 7** (wheezy) +* **Debian 8 / stable** (jessie) +* **Debian testing** (stretch, aliased to jessie) +* **Debian unstable** (sid) + +A Node.js package is also available in the [official repo](http://packages.debian.org/search?searchon=names&keywords=nodejs) for Debian Sid (unstable), Jessie (testing) and Wheezy (wheezy-backports) as "nodejs". + +**Supported Linux Mint versions:** + +* **Linux Mint 13 "Maya"** (via Ubuntu 12.04 LTS) +* **Linux Mint 17 "Qiana"** (via Ubuntu 14.04 LTS) +* **Linux Mint 17.1 "Rebecca"** (via Ubuntu 14.04 LTS) +* **Linux Mint 17.2 "Rafaela"** (via Ubuntu 14.04 LTS) +* **Linux Mint Debian Edition (LMDE) 2 "Betsy"** (via Debian 8) + +**Supported elementary OS versions:** + +* **elementary OS Luna** (via Ubuntu 12.04 LTS) +* **elementary OS Freya** (via Ubuntu 14.04 LTS) + +**Supported Trisquel versions:** + +* **Trisquel 6 "Toutatis"** (via Ubuntu 12.04 LTS) +* **Trisquel 7 "Belenos"** (via Ubuntu 14.04 LTS) + +**Supported BOSS versions:** + +* **BOSS 5.0 "Anokha"** (via Debian 7) + +## Enterprise Linux and Fedora + +Including **Red Hat® Enterprise Linux®** / **RHEL**, **CentOS** and **Fedora**. + +Node.js is available from the [NodeSource](https://nodesource.com) Enterprise Linux and Fedora binary distributions repository. Support for this repository, along with its scripts, can be found on GitHub at [nodesource/distributions](https://github.com/nodesource/distributions). + +Note that the Node.js packages for EL 5 (RHEL5 and CentOS 5) depend on the **[EPEL](https://fedoraproject.org/wiki/EPEL)** repository being available. The setup script will check and provide instructions if it is not installed. + +Run as root on RHEL, CentOS or Fedora: + +``` +curl --silent --location https://rpm.nodesource.com/setup | bash - +``` + +Then install, as root: + +``` +yum -y install nodejs +``` + +***Optional***: install build tools + +To compile and install native addons from npm you may also need to install build tools: + +``` +yum install gcc-c++ make +# or: yum groupinstall 'Development Tools' +``` + +**Available architectures:** + +* **i386** (32-bit, not available for EL7) +* **x86_64** (64-bit) + +**Supported Red Hat® Enterprise Linux® versions:** + +* **RHEL 5** (32-bit and 64-bit) +* **RHEL 6** (32-bit and 64-bit) +* **RHEL 7** (64-bit) + +**Supported CentOS versions:** + +* **CentOS 5** (32-bit and 64-bit) +* **CentOS 6** (32-bit and 64-bit) +* **CentOS 7** (64-bit) + +**Supported CloudLinux versions:** +* **CloudLinux 6** (32-bit and 64-bit) + +**Supported Fedora versions:** + +* **Fedora 21 (Twenty One)** (32-bit and 64-bit) +* **Fedora 20 (Heisenbug)** (32-bit and 64-bit) +* **Fedora 19 (Schrödinger's Cat)** (32-bit and 64-bit) + +**Other distributions known to be supported:** + +* **Oracle Linux** (mirrors RHEL very closely) +* **Amazon Linux** (tested on 2014.03) + +### Alternatives + +Official **Fedora** [Node.js](https://apps.fedoraproject.org/packages/nodejs) and [npm](https://apps.fedoraproject.org/packages/npm) packages are available in Fedora 18 and later. Install with: + +``` +sudo yum install nodejs npm +``` + +In a hurry for the latest updates? [Grab them from updates-testing.](https://fedoraproject.org/wiki/QA:Updates_Testing) + +**Enterprise Linux** (RHEL and CentOS) users may use the Node.js and npm packages from the [EPEL](https://fedoraproject.org/wiki/EPEL) repository. + +Install the appropriate *epel-release* RPM for your version (found on the [EPEL](https://fedoraproject.org/wiki/EPEL) repository homepage), then run: + +``` +sudo yum install nodejs npm --enablerepo=epel +``` + +In a hurry for the latest updates? [Grab them from epel-testing.](https://fedoraproject.org/wiki/EPEL/testing) + +**Available architectures:** + +* **i686** (32-bit, not available for EL7) +* **x86_64** (64-bit) +* **armv6hl** (Raspberry Pi, [Pidora](http://pidora.ca) only) +* **armv7hl** (32-bit ARM hard-float, ARMv7 and up, Fedora only) + +**Supported Red Hat® Enterprise Linux® versions:** + +* **RHEL 6** (i686/x86_64) +* **RHEL 7** (x86_64) + +Additionally, versions of **CentOS** and **Scientific Linux** corresponding to the above RHEL versions are also officially supported by all EPEL packages, including nodejs. Amazon Linux is not officially supported by EPEL due to significant incompatibilities previously reported to the epel-devel mailing list, however you might find that nodejs at least still works. + +**Supported Fedora versions:** + +* **Fedora Rawhide** (i686/x86_64/armv7hl) +* **Fedora 21** (i686/x86_64/armv7hl) +* **Fedora 20 (Heisenbug)** (i686/x86_64/armv6hl/armv7hl) +* **Fedora 19 (Schrödinger's Cat)** (i686/x86_64/armv7hl) + +## Gentoo + +Node.js is available in the portage tree. + +``` +emerge nodejs +``` + +## openSUSE and SLE + +[Download Node.js via openSUSE one-click](http://software.opensuse.org/download.html?project=devel%3Alanguages%3Anodejs&package=nodejs). + +Available RPM packages for: openSUSE 11.4, 12.1, 12.2, 12.3, 13.1, Factory and Tumbleweed; SLE 11 (with SP1/SP2/SP3 variations). + +Example install on openSUSE 13.1: + +``` +sudo zypper ar \ + http://download.opensuse.org/repositories/devel:/languages:/nodejs/openSUSE_13.1/ \ + Node.js +sudo zypper in nodejs nodejs-devel +``` + +## Arch Linux + +Node.js and npm packages are available in the Community Repository. + +``` +pacman -S nodejs npm +``` + +## Void Linux + +Void Linux ships node.js stable in the main repository. + +``` +xbps-install -Sy node.js +``` + +## FreeBSD and OpenBSD + +Node.js is available through the ports system. + +``` +/usr/ports/www/node +``` + +Development versions are also available using ports + +``` +cd /usr/ports/www/node-devel/ && make install clean +``` + +Or packages on FreeBSD: + +``` +pkg_add -r node-devel +``` + +Using [pkg-ng](https://wiki.freebsd.org/pkgng) on FreeBSD + +``` +pkg install node +``` + +Or the development versions: + +``` +pkg install node-devel +``` + +## OSX + +Simply download the [Macintosh Installer](http://nodejs.org/#download) direct from the [nodejs.org](http://nodejs.org) web site. + +_If you want to download the package with bash:_ + +``` +curl "https://nodejs.org/dist/latest/node-${VERSION:-$(wget -qO- https://nodejs.org/dist/latest/ | sed -nE 's|.*>node-(.*)\.pkg.*|\1|p')}.pkg" > "$HOME/Downloads/node-latest.pkg" && sudo installer -store -pkg "$HOME/Downloads/node-latest.pkg" -target "/" +``` + +### Alternatives + +Using **[Homebrew](http://brew.sh/)**: + +``` +brew install node +``` + +Using **[MacPorts](http://www.macports.org/)**: + +``` +port install nodejs +``` + +## Windows + +Simply download the [Windows Installer](http://nodejs.org/#download) directly from the [nodejs.org](http://nodejs.org) web site. + +### Alternatives + +Using **[Chocolatey](http://chocolatey.org)**: + +``` +cinst nodejs +# or for full install with npm +cinst nodejs.install +``` + +Using **[Scoop](http://scoop.sh/)**: + +``` +scoop install nodejs +``` diff --git a/locale/en/site.json b/locale/en/site.json index 7d0a1037fdf02..eb8842cf200e5 100644 --- a/locale/en/site.json +++ b/locale/en/site.json @@ -7,6 +7,7 @@ "reportNodeIssue": "Report Node.js issue", "reportWebsiteIssue": "Report website issue", "by": "by", + "all-downloads": "All download options", "feeds": [ { "link": "feed/blog.xml", @@ -52,6 +53,10 @@ "releases": { "link": "download/releases", "text": "Previous Releases" + }, + "package-manager": { + "link": "download/package-manager", + "text": "Installing Node.js via package manager" } }, "docs": {