Skip to content

doc: add info about using nvm #11141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from all 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
22 changes: 22 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,28 @@ To install this version of Node.js into a system directory:
$ [sudo] make install
```

#### Using [nvm](https://github.com/creationix/nvm)
You can use a Node.js version built from source by installing into the location
that nvm expects:

```console
$ make install DESTDIR='$(NVM_DIR)/versions/node/' PREFIX='$(FULLVERSION)-pre'
```

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:

```console
$ nvm use 8
```

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

```console
$ nvm uninstall 8
```

### Windows

Expand Down