Skip to content

Commit 62a64c6

Browse files
author
Maledong
authored
zh-CN: update package-manager.md (#3684)
Add some missing items according to the origin English version.
1 parent 03b59bf commit 62a64c6

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

locale/zh-cn/download/package-manager.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ title: 通过包管理器安装 Node.js
1111

1212
* [Android](#android)
1313
* [Arch Linux](#arch-linux)
14+
* [CentOS,Fedora 和 Red Hat Enterprise Linux](#centos-fedora-and-red-hat-enterprise-linux)
1415
* [基于 Linux 的 Debian 和 Ubuntu 发行版,Enterprise Linux/Fedora 和 Snap packages](#debian-and-ubuntu-based-linux-distributions-enterprise-linux-fedora-and-snap-packages)
16+
* [fnm](#fnm)
1517
* [FreeBSD](#freebsd)
1618
* [Gentoo](#gentoo)
1719
* [IBM i](#ibm-i)
@@ -24,6 +26,7 @@ title: 通过包管理器安装 Node.js
2426
* [Solus](#solus)
2527
* [Void Linux](#void-linux)
2628
* [Windows](#windows)
29+
* [z/OS](#zos)
2730

2831
---
2932

@@ -48,6 +51,35 @@ Node.js 以及 npm 包管理器在社区库中可如下方式使用:
4851
pacman -S nodejs npm
4952
```
5053

54+
## <!--centos-fedora-and-red-hat-enterprise-linux-->CentOS,Fedora 和 Red Hat Enterprise Linux
55+
56+
在 CentOS/RHEL 8 和 Fedora 系统中,Node.js 作为 `nodejs` 模块而变得可用。
57+
58+
```bash
59+
dnf module install nodejs:<stream>
60+
```
61+
62+
这里的 `<stream>` 对应了 Node.js 的主版本。
63+
可以使用如下命令查看可用流的列表:
64+
65+
```bash
66+
dnf module list nodejs
67+
```
68+
69+
举个例子,安装 Node.js 12:
70+
71+
```bash
72+
dnf module install nodejs:12
73+
```
74+
75+
对于 CentOS/RHEL 7,Node.js 可以通过 [软件合集](https://www.softwarecollections.org/en/scls/?search=NodeJS) 获得。
76+
77+
### 可替换项
78+
79+
以下是提供了 CentOS,Fedora,和 RHEL 系统相兼容安装包的资源:
80+
* [Node.js 快照](#snap)https://github.com/nodejs/snap 得到支持和维护。
81+
* [Node.js 二进制发布版](#debian-and-ubuntu-based-linux-distributions) 通过 [NodeSource](https://github.com/nodesource/distributions) 得到维护支持。
82+
5183
<!--
5284
If your title has non-English characters, please
5385
put your anchor name into the comment symbol before
@@ -57,6 +89,17 @@ your real title.
5789

5890
[Node.js 官方二进制发行版](https://github.com/nodesource/distributions/blob/master/README.md) 由 NodeSource 提供。
5991

92+
### 可替换项
93+
94+
与 Debian 以及 Ubuntu 发布版本的兼容安装包可以通过 [Node.js 快照](#snap) 获得。
95+
96+
## frm
97+
98+
这是一个内置了 Rust,用于 Node.js 多发布版本的快速便捷管理工具。它可以让你处理诸如安装、卸载,以及根据当前目录自动切换 Node.js 版本的行为操作。
99+
安装 frm,请使用此[安装脚本](https://github.com/Schniz/fnm#using-a-script-macoslinux)
100+
101+
fnm 有跨版本的支持(macOS、Windows 以及 Linux),以及一系列衍生命令(Bash, Zsh, Fish, PowerShell, Windows 命令行),它以“脑速”编译,并兼容性支持 `.node-version``.nvmrc` 文件。
102+
60103
## FreeBSD
61104

62105
可以通过 [www/node](https://www.freshports.org/www/node) 获取最近的 Node.js。
@@ -216,6 +259,10 @@ pkgin -y install nodejs
216259
cd pkgsrc/lang/nodejs && bmake install
217260
```
218261

262+
## Snap
263+
264+
[Node.js 快照](https://github.com/nodejs/snap)[`node`](https://snapcraft.io/node) 快照商店可以获得。
265+
219266
## Solus
220267

221268
在主版本库中,Solus 提供了 Node.js。
@@ -251,3 +298,10 @@ cinst nodejs.install
251298
```bash
252299
scoop install nodejs
253300
```
301+
302+
## z/OS
303+
304+
IBM&reg; 提供给 Node.js 的 SDK - z/OS&reg; 它有两种可用的安装方式:
305+
SMP/E and PAX。 你可选择一种合适的方式安装:
306+
* [在 z/OS 上安装配置 Node.js 的 SMP/E 版本](https://www.ibm.com/support/knowledgecenter/SSTRRS_14.0.0/com.ibm.nodejs.zos.v14.doc/smpe.htm)
307+
* [在 z/OS 上安装配置 Node.js 的 PAX 版本](https://www.ibm.com/support/knowledgecenter/SSTRRS_14.0.0/com.ibm.nodejs.zos.v14.doc/paxz.htm)

0 commit comments

Comments
 (0)