Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions locale/en/download/package-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ title: Installing Node.js via package manager
* [FreeBSD and OpenBSD](#freebsd-and-openbsd)
* [Gentoo](#gentoo)
* [NetBSD](#netbsd)
* [nvm](#nvm)
* [openSUSE and SLE](#opensuse-and-sle)
* [OSX](#osx)
* [SmartOS and illumos](#smartos-and-illumos)
Expand Down Expand Up @@ -289,6 +290,28 @@ Or install a binary package (if available for your platform) using pkgin:
pkgin -y install nodejs
```

## nvm
On Unix / OS X systems Node.js built from source can be installed using
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a sentence or two about installing nvm in general and using it to install Node.js, not just how to add builds from source to it? Thx.

Otherwise LGTM.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please strongly stress using the sole supported installation method - the curl command in the readme - over alternative unsupported methods of installation :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fhemberger @ljharb I've added some information in general (very short) about nvm and install instructions. Let me know what you think. Thanks

[nvm](https://github.com/creationix/nvm) by installing into the location that nvm expects:

```bash
$ env VERSION=`python tools/getnodeversion.py` make install DESTDIR=`nvm_version_path v$VERSION` PREFIX=""
```

After this you can use `nvm` to switch between released versions and versions
built from source.
For example, if the version of Node.js is v8.0.0-pre:

```bash
$ nvm use 8
```

Once the official release is out you will want to uninstall the version built
from source:

```bash
$ nvm uninstall 8
```

## openSUSE and SLE

Expand Down