Skip to content

Commit 245dc60

Browse files
shadowspawnTrott
authored andcommitted
Sort entries
1 parent e54c3d2 commit 245dc60

1 file changed

Lines changed: 49 additions & 49 deletions

File tree

locale/en/download/package-manager.md

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ title: Installing Node.js via package manager
1515
* [FreeBSD](#freebsd)
1616
* [Gentoo](#gentoo)
1717
* [IBM i](#ibm-i)
18+
* [macOS](#macos)
1819
* [NetBSD](#netbsd)
19-
* [nvm](#nvm)
2020
* [Nodenv](#nodenv)
21+
* [nvm](#nvm)
2122
* [OpenBSD](#openbsd)
2223
* [openSUSE and SLE](#opensuse-and-sle)
23-
* [macOS](#macos)
2424
* [SmartOS and illumos](#smartos-and-illumos)
2525
* [Solus](#solus)
2626
* [Void Linux](#void-linux)
@@ -88,6 +88,47 @@ yum install nodejs12
8888

8989
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
9090

91+
## macOS
92+
93+
Download the [macOS Installer](https://nodejs.org/en/#home-downloadhead) directly from the [nodejs.org](https://nodejs.org/) web site.
94+
95+
_If you want to download the package with bash:_
96+
97+
```bash
98+
curl "https://nodejs.org/dist/latest/node-${VERSION:-$(wget -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 "/"
99+
```
100+
101+
### Alternatives
102+
103+
Using **[Homebrew](https://brew.sh/)**:
104+
105+
```bash
106+
brew install node
107+
```
108+
109+
Using **[MacPorts](https://www.macports.org/)**:
110+
111+
```bash
112+
port install nodejs<major version>
113+
114+
# Example
115+
port install nodejs7
116+
```
117+
118+
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+
91132
## NetBSD
92133

93134
Node.js is available in the pkgsrc tree:
@@ -102,6 +143,12 @@ Or install a binary package (if available for your platform) using pkgin:
102143
pkgin -y install nodejs
103144
```
104145

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+
105152
## nvm
106153
Node Version Manager is a bash script used to manage multiple released Node.js versions. It allows
107154
you to perform operations like install, uninstall, switch version, etc.
@@ -129,12 +176,6 @@ from source:
129176
nvm uninstall 8
130177
```
131178

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-
138179
## OpenBSD
139180

140181
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
165206
zypper install nodejs4
166207
```
167208

168-
## macOS
169-
170-
Download the [macOS Installer](https://nodejs.org/en/#home-downloadhead) directly from the [nodejs.org](https://nodejs.org/) web site.
171-
172-
_If you want to download the package with bash:_
173-
174-
```bash
175-
curl "https://nodejs.org/dist/latest/node-${VERSION:-$(wget -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 "/"
176-
```
177-
178-
### Alternatives
179-
180-
Using **[Homebrew](https://brew.sh/)**:
181-
182-
```bash
183-
brew install node
184-
```
185-
186-
Using **[MacPorts](https://www.macports.org/)**:
187-
188-
```bash
189-
port install nodejs<major version>
190-
191-
# Example
192-
port install nodejs7
193-
```
194-
195-
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-
209209
## SmartOS and illumos
210210

211211
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

Comments
 (0)