From 810d5756046474c05a81b8a0e08025d82af25c6d Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 11 Nov 2020 19:13:56 +0000 Subject: [PATCH 1/2] docs: Add package manager steps for CentOS/Fedora/RHEL Add steps to install Node.js from the package manager on CentOS, Fedora and Red Hat Enterprise Linux. Refs: https://github.com/nodejs/nodejs.org/pull/3512 --- src/pages/docs.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/pages/docs.tsx b/src/pages/docs.tsx index 31266314af..9908d23c4f 100644 --- a/src/pages/docs.tsx +++ b/src/pages/docs.tsx @@ -187,6 +187,28 @@ function renderDefaultArticle( pacman -S nodejs  npm +

CentOS, Fedora and Red Hat Enterprise Linux

+

+ Node.js is available as a module called nodejs in + CentOS/RHEL 8 and Fedora. + + dnf module install nodejs:<stream> + + where <stream> corresponds to the major version of + Node.js. To see a list of available streams: + + dnf module list nodejs + + For example, to install Node.js 12: + + dnf module install nodejs:12 + + For CentOS/RHEL 7 Node.js is available via  + + Software Collections + + . +

Debian and Ubuntu based Linux distributions, Enterprise Linux/Fedora and Snap packages From e2711eb2da407363de81e363894390ad72bbb32d Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Mon, 16 Nov 2020 17:45:57 +0000 Subject: [PATCH 2/2] docs: Break out Snaps in the package manager page Creation of Node.js snaps on the Snap store has been moved into the nodejs org. Move it into its own section and reference as an alternative method for CentOS/Fedora/RHEL/Debian/Ubuntu. Refs: https://github.com/nodejs/admin/issues/567 Refs: https://github.com/nodejs/nodejs.dev/pull/1049#issuecomment-726161819 Refs: https://github.com/nodejs/nodejs.org/pull/3517 --- src/pages/docs.tsx | 48 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/src/pages/docs.tsx b/src/pages/docs.tsx index 9908d23c4f..04fac74d99 100644 --- a/src/pages/docs.tsx +++ b/src/pages/docs.tsx @@ -209,7 +209,34 @@ function renderDefaultArticle( .

-

+

Alternatives

+

+ These resources provide packages compatible with CentOS, Fedora, and + RHEL. +

+

+

Debian and Ubuntu based Linux distributions, Enterprise Linux/Fedora and Snap packages

@@ -219,6 +246,12 @@ function renderDefaultArticle(  are available from NodeSource.

+

Alternatives

+

+ Packages compatible with Debian and Ubuntu based Linux distributions are + available via  + Node.js snaps. +

FreeBSD

The most recent release of Node.js is available via the  @@ -292,10 +325,6 @@ function renderDefaultArticle( '-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 "/"' } -

- Node.js can also be installed with the IBM i Access Client Solutions - product. See this support document for more details -

Alternatives

Using Homebrew: @@ -484,6 +513,15 @@ function renderDefaultArticle( cd pkgsrc/lang/nodejs && bmake  install +

Snap

+

+ Node.js snaps +  are available as  + + node + +  on the Snap store. +

Solus

Solus provides Node.js in its main repository.