Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 6c81d9a

Browse files
richardlaunschonni
authored andcommitted
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: nodejs/admin#567 Refs: #1049 (comment) Refs: nodejs/nodejs.org#3517
1 parent bee51b2 commit 6c81d9a

File tree

1 file changed

+43
-5
lines changed

1 file changed

+43
-5
lines changed

src/pages/docs.tsx

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,34 @@ function renderDefaultArticle(
209209
</a>
210210
.
211211
</p>
212-
<h3>
212+
<h4>Alternatives</h4>
213+
<p className="t-body1">
214+
These resources provide packages compatible with CentOS, Fedora, and
215+
RHEL.
216+
<ul>
217+
<li>
218+
<p className="t-body1">
219+
<a href="#snap">Node.js snaps</a> maintained and supported
220+
at&nbsp;
221+
<a href="https://github.com/nodejs/snap">
222+
https://github.com/nodejs/snap
223+
</a>
224+
</p>
225+
</li>
226+
<li>
227+
<p className="t-body1">
228+
<a href="#debian-and-ubuntu-based-linux-distributions">
229+
Node.js binary distributions
230+
</a>
231+
&nbsp;maintained and supported by&nbsp;
232+
<a href="https://github.com/nodesource/distributions">
233+
NodeSource
234+
</a>
235+
</p>
236+
</li>
237+
</ul>
238+
</p>
239+
<h3 id="debian-and-ubuntu-based-linux-distributions">
213240
Debian and Ubuntu based Linux distributions, Enterprise Linux/Fedora and
214241
Snap packages
215242
</h3>
@@ -219,6 +246,12 @@ function renderDefaultArticle(
219246
</a>
220247
&nbsp;are available from NodeSource.
221248
</p>
249+
<h4>Alternatives</h4>
250+
<p className="t-body1">
251+
Packages compatible with Debian and Ubuntu based Linux distributions are
252+
available via&nbsp;
253+
<a href="#snap">Node.js snaps</a>.
254+
</p>
222255
<h3>FreeBSD</h3>
223256
<p className="t-body1">
224257
The most recent release of Node.js is available via the&nbsp;
@@ -292,10 +325,6 @@ function renderDefaultArticle(
292325
'-qO- https://nodejs.org/dist/latest/ | sed -nE \'s|.*>node-(.*)\\.pkg</a>.*|\\1|p\')}.pkg" > "$HOME/Downloads/node-latest.pkg" && sudo installer -store -pkg "$HOME/Downloads/node-latest.pkg" -target "/"'
293326
}
294327
</ShellBox>
295-
<p className="t-body1">
296-
Node.js can also be installed with the IBM i Access Client Solutions
297-
product. See this support document for more details
298-
</p>
299328
<h4>Alternatives</h4>
300329
<p className="t-body1">
301330
Using <a href="https://brew.sh/">Homebrew</a>:
@@ -484,6 +513,15 @@ function renderDefaultArticle(
484513
cd pkgsrc/lang/nodejs && bmake&nbsp;
485514
<span className="function">install</span>
486515
</ShellBox>
516+
<h3 id="snap">Snap</h3>
517+
<p className="t-body1">
518+
<a href="https://github.com/nodejs/snap">Node.js snaps</a>
519+
&nbsp;are available as&nbsp;
520+
<a href="https://snapcraft.io/node">
521+
<code>node</code>
522+
</a>
523+
&nbsp;on the Snap store.
524+
</p>
487525
<h3>Solus</h3>
488526
<p className="t-body1">Solus provides Node.js in its main repository.</p>
489527
<ShellBox textToCopy="sudo eopkg install nodejs">

0 commit comments

Comments
 (0)