You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: locale/en/download/package-manager.md
+49-49Lines changed: 49 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,12 @@ title: Installing Node.js via package manager
15
15
*[FreeBSD](#freebsd)
16
16
*[Gentoo](#gentoo)
17
17
*[IBM i](#ibm-i)
18
+
*[macOS](#macos)
18
19
*[NetBSD](#netbsd)
19
-
*[nvm](#nvm)
20
20
*[Nodenv](#nodenv)
21
+
*[nvm](#nvm)
21
22
*[OpenBSD](#openbsd)
22
23
*[openSUSE and SLE](#opensuse-and-sle)
23
-
*[macOS](#macos)
24
24
*[SmartOS and illumos](#smartos-and-illumos)
25
25
*[Solus](#solus)
26
26
*[Void Linux](#void-linux)
@@ -88,6 +88,47 @@ yum install nodejs12
88
88
89
89
Node.js can also be installed with the IBM i Access Client Solutions product. See [this support document](http://www-01.ibm.com/support/docview.wss?uid=nas8N1022619) for more details
90
90
91
+
## macOS
92
+
93
+
Download the [macOS Installer](https://nodejs.org/en/#home-downloadhead) directly from the [nodejs.org](https://nodejs.org/) web site.
Using **[pkgsrc](https://pkgsrc.joyent.com/install-on-osx/)**:
119
+
120
+
Install the binary package:
121
+
122
+
```bash
123
+
pkgin -y install nodejs
124
+
```
125
+
126
+
Or build manually from pkgsrc:
127
+
128
+
```bash
129
+
cd pkgsrc/lang/nodejs && bmake install
130
+
```
131
+
91
132
## NetBSD
92
133
93
134
Node.js is available in the pkgsrc tree:
@@ -102,6 +143,12 @@ Or install a binary package (if available for your platform) using pkgin:
102
143
pkgin -y install nodejs
103
144
```
104
145
146
+
## Nodenv
147
+
148
+
`nodenv` is a lightweight node version manager, similar to `nvm`. It's simple and predictable. A rich plugin ecosystem lets you tailor it to suit your needs. Use `nodenv` to pick a Node version for your application and guarantee that your development environment matches production.
149
+
150
+
Nodenv installation instructions are maintained [on its Github page](https://github.com/nodenv/nodenv#installation). Please visit that page to ensure you're following the latest version of the installation steps.
151
+
105
152
## nvm
106
153
Node Version Manager is a bash script used to manage multiple released Node.js versions. It allows
107
154
you to perform operations like install, uninstall, switch version, etc.
@@ -129,12 +176,6 @@ from source:
129
176
nvm uninstall 8
130
177
```
131
178
132
-
## Nodenv
133
-
134
-
`nodenv` is a lightweight node version manager, similar to `nvm`. It's simple and predictable. A rich plugin ecosystem lets you tailor it to suit your needs. Use `nodenv` to pick a Node version for your application and guarantee that your development environment matches production.
135
-
136
-
Nodenv installation instructions are maintained [on its Github page](https://github.com/nodenv/nodenv#installation). Please visit that page to ensure you're following the latest version of the installation steps.
137
-
138
179
## OpenBSD
139
180
140
181
Node.js is available through the ports system.
@@ -165,47 +206,6 @@ For example, to install Node.js 4.x on openSUSE Leap 42.2, run the following as
165
206
zypper install nodejs4
166
207
```
167
208
168
-
## macOS
169
-
170
-
Download the [macOS Installer](https://nodejs.org/en/#home-downloadhead) directly from the [nodejs.org](https://nodejs.org/) web site.
Using **[pkgsrc](https://pkgsrc.joyent.com/install-on-osx/)**:
196
-
197
-
Install the binary package:
198
-
199
-
```bash
200
-
pkgin -y install nodejs
201
-
```
202
-
203
-
Or build manually from pkgsrc:
204
-
205
-
```bash
206
-
cd pkgsrc/lang/nodejs && bmake install
207
-
```
208
-
209
209
## SmartOS and illumos
210
210
211
211
SmartOS images come with pkgsrc pre-installed. On other illumos distributions, first install **[pkgsrc](https://pkgsrc.joyent.com/install-on-illumos/)**, then you may install the binary package as normal:
0 commit comments