nodesource/distributions

Name: distributions

Owner: NodeSource

Description: NodeSource Node.js Binary Distributions

Created: 2014-08-14 02:44:10.0

Updated: 2018-01-18 09:46:54.0

Pushed: 2018-01-15 19:00:06.0

Homepage: null

Size: 333

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

NodeSource Node.js and io.js Binary Distributions

This repository contains the source of the NodeSource Node.js and io.js Binary Distributions setup and support scripts.


If you are looking for NodeSource's Enterprise-grade Node.js platform, N|Solid, please visit https://downloads.nodesource.com/


For Debian / Ubuntu based distributions, see the deb directory for the source of the two setup scripts located at https://deb.nodesource.com/setup and https://deb.nodesource.com/setup_dev.

For Enterprise Linux based distributions (Red Hat® Enterprise Linux® / RHEL, CentOS, CloudLinux, Fedora), see the rpm directory for the source of setup script located at https://rpm.nodesource.com/setup.

Please file an issue if you are experiencing a problem or would like to discuss something related to the distributions.

Pull requests are encouraged if you have changes you believe would improve the setup process or increase compatibility across Linux distributions.

Table of Contents

Debian and Ubuntu based distributions

Available architectures:

NodeSource will continue to maintain the following architectures and may add additional ones in the future.

PLEASE NOTE that armhf builds AND builds >= v7.x are NOT available for Debian Wheezy. For more information read about Node.JS >= 4.x on older distros.

Supported Ubuntu versions:

NodeSource will maintain Ubuntu distributions in active support by Canonical, including LTS and the intermediate releases.

Supported Debian versions:

NodeSource will maintain support for stable, testing and unstable releases of Debian, due to the long release cycle a considerable number of users are running unstable.

Supported Linux Mint versions:

Supported elementary OS versions:

Supported Trisquel versions:

Supported BOSS versions:

Supported BunsenLabs versions:

Installation instructions

Node.js v9.x:

ing Ubuntu
 -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
 apt-get install -y nodejs

ing Debian, as root
 -sL https://deb.nodesource.com/setup_9.x | bash -
get install -y nodejs

Node.js v8.x:

ing Ubuntu
 -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
 apt-get install -y nodejs

ing Debian, as root
 -sL https://deb.nodesource.com/setup_8.x | bash -
get install -y nodejs

Node.js v6.x:

ing Ubuntu
 -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
 apt-get install -y nodejs

ing Debian, as root
 -sL https://deb.nodesource.com/setup_6.x | bash -
get install -y nodejs

Node.js v4.x:

ing Ubuntu
 -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
 apt-get install -y nodejs

ing Debian, as root
 -sL https://deb.nodesource.com/setup_4.x | bash -
get install -y nodejs

Node.js v0.12:

ing Ubuntu
 -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
 apt-get install -y nodejs

ing Debian, as root
 -sL https://deb.nodesource.com/setup_0.12 | bash -
get install -y nodejs

Node.js v0.10:

ing Ubuntu
 -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash -
 apt-get install -y nodejs

ing Debian, as root
 -sL https://deb.nodesource.com/setup_0.10 | bash -
get install -y nodejs

io.js v3.x:

ing Ubuntu
 -sL https://deb.nodesource.com/setup_iojs_3.x | sudo -E bash -
 apt-get install -y iojs

ing Debian, as root
 -sL https://deb.nodesource.com/setup_iojs_3.x | bash -
get install -y iojs

io.js v2.x:

ing Ubuntu
 -sL https://deb.nodesource.com/setup_iojs_2.x | sudo -E bash -
 apt-get install -y iojs

ing Debian, as root
 -sL https://deb.nodesource.com/setup_iojs_2.x | bash -
get install -y iojs

io.js v1.x:

Note: this branch of io.js is not actively maintained and is not recommended for production use.

ing Ubuntu
 -sL https://deb.nodesource.com/setup_iojs_1.x | sudo -E bash -
 apt-get install -y iojs

ing Debian, as root
 -sL https://deb.nodesource.com/setup_iojs_1.x | bash -
get install -y iojs

Optional: install build tools

To compile and install native addons from npm you may also need to install build tools:

e `sudo` on Ubuntu or run this as root on debian
get install -y build-essential

Manual installation

If you're not a fan of curl <url> | bash -, or are using an unsupported distribution, you can try a manual installation.

These instructions assume sudo is present, however some distributions do not include this command by default, particularly those focused on a minimal environment. In this case, you should install sudo or su to root to run the commands directly.

1. Remove the old PPA if it exists

This step is only required if you previously used Chris Lea's Node.js PPA.

d-apt-repository may not be present on some Ubuntu releases:
o apt-get install python-software-properties
 add-apt-repository -y -r ppa:chris-lea/node.js
 rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list
 rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list.save

2. Add the NodeSource package signing key

 --silent https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
et can also be used:
et --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -

3. Add the desired NodeSource repository

place with the branch of Node.js or io.js you want to install: node_0.10, node_0.12, node_4.x, node_5.x, etc...
ION=node_6.x
e below command will set this correctly, but if lsb_release isn't available, you can set it manually:
For Debian distributions: wheezey, jessie, sid, etc...
For Ubuntu distributions: trusty, xenial, etc...
For Debian or Ubuntu derived distributions your best option is to use the codename corresponding to the upstream release your distribution is based off. This is an advanced scenario and unsupported if your distribution is not listed as supported per earlier in this README.
RO="$(lsb_release -s -c)"
 "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
 "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list

4. Update package lists and install Node.js

 apt-get update
 apt-get install nodejs

Enterprise Linux based distributions

Available architectures:

NodeSource will continue to maintain the following architectures and may add additional ones in the future.

Supported Red Hat® Enterprise Linux® versions:

Supported CentOS versions:

Supported CloudLinux versions:

Supported Fedora versions:

Equivalent versions of Korora Linux should also be supported.

Installation instructions

Current instructions for installing, as listed on the Node.js Wiki:

Note that the Node.js packages for EL 5 (RHEL5 and CentOS 5) depend on the EPEL repository being available. The setup script will check and provide instructions if it is not installed.

Run as root on RHEL, CentOS, CloudLinux or Fedora:

NodeJS 9.x

 -sL https://rpm.nodesource.com/setup_9.x | bash -

NodeJS 8.x

 -sL https://rpm.nodesource.com/setup_8.x | bash -

NodeJS 6.x

 -sL https://rpm.nodesource.com/setup_6.x | bash -

NodeJS 4.x

 -sL https://rpm.nodesource.com/setup_4.x | bash -

NodeJS 0.12.x

 -sL https://rpm.nodesource.com/setup_0.12 | bash -

NodeJS 0.10.x

 -sL https://rpm.nodesource.com/setup | bash -

Then install, as root:

install -y nodejs

Optional: install build tools

To compile and install native addons from npm you may also need to install build tools:

install gcc-c++ make
: yum groupinstall 'Development Tools'

Tests

To test an installation is working (and that the setup scripts are working!) use:

 -sL https://deb.nodesource.com/test | bash -

FAQ


Q: How do I use this repo when behind a proxy?

A: Please take a look at issue #9


Q: How do I pin to specific versions of Node.js?

A: Please take a look at issue #33


Q: I upgraded to a new major version of Node.js using the scripts, but the old version is still being installed, what is going on?

A: You probably need to clear out your package manager's cache. Take a look at issue #191


Q: I'm trying to install Node.js on Centos 5 and it is failing, why?

A: Due to the limitations of the compiler tool chain on Centos5, we currently can only support Node.js 0.10 on that release. See issue #190


Q: I'm seeing “Your distribution, identified as “.i686” or “.i386, is not currently supported, why?

A: Node.js 4.x and newer require a 64bit os for rpms. See issue #268


Q: Why have certain versions of platforms/releases stopped receiving updates to Node.js?

A: Unfortunately, newer versions of v8 require a modern compiler toolchain. On some platforms, such as ARM wheezy, that toolchain is not available. See issue #247


Q: What is the current status of IPv6 support?

A: See issue #170

Requested Distributions

We, unfortunately, do not have the resources necessary to support and test the plethora of Linux releases in the wild, so we rely on community members such as yourself to get support on your favorite distributions! This is a list of releases that have been requested by the community. If you are interested in contributing to this project, this would be a great place to start!

Authors and Contributors
Chris LeaGitHub/chrisleaTwitter/@chrislea
Rod VaggGitHub/rvaggTwitter/@rvagg
William BlankenshipGitHub/retrohackerTwitter/@retrohack3r
Harry TruongGitHub/harrytruong
Matteo BrunatiGitHub/mattbrun
Brian WhiteGitHub/mscdex
Matt LewandowskyGitHub/lewellyn
Jan-Hendrik PetersGitHub/hennr
Andris ReinmanGitHub/andris9
CarvilsiGitHub/carvilsi
Krasimir TrenchevGitHub/Ava7
Phil HelmGitHub/phelma
0xmohitGitHub/0xmohit
jdarlingGitHub/jdarling
Prayag VermaGitHub/pra85
Misha BrukmanGitHub/mbrukman
Simon LydellGitHub/lydell
Sebastian BleiGitHub/iamsebastian

Contributions are welcomed from anyone wanting to improve this project!

License

This material is Copyright (c) 2016 NodeSource and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.


Supported with love by Chris Lea, Rod Vagg and the NodeSource team

This project is not affiliated with Debian, Ubuntu, Red Hat, CentOS or Fedora.
Ubuntu is a registered trademark of Canonical Ltd.
Debian is a registered trademark owned by Software in the Public Interest, Inc.
Red Hat, CentOS and Fedora are trademarks of Red Hat, Inc.
CloudLinux is a trademark of Cloud Linux, Inc


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.