[Docs] Update README for environment variables

Bruce A. MacNaughton 2020-02-07 12:01:57 -08:00 committed by Jordan Harband
parent 91a55dd91a
commit 33fa27dabe
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 14 additions and 0 deletions

View File

@ -35,6 +35,7 @@
- [Calling `nvm use` automatically in a directory with a `.nvmrc` file](#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file-1) - [Calling `nvm use` automatically in a directory with a `.nvmrc` file](#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file-1)
- [License](#license) - [License](#license)
- [Running Tests](#running-tests) - [Running Tests](#running-tests)
- [Environment variables](#environment-variables)
- [Bash Completion](#bash-completion) - [Bash Completion](#bash-completion)
- [Usage](#usage-1) - [Usage](#usage-1)
- [Compatibility Issues](#compatibility-issues) - [Compatibility Issues](#compatibility-issues)
@ -613,6 +614,19 @@ Run all of the tests like this:
Nota bene: Avoid running nvm while the tests are running. Nota bene: Avoid running nvm while the tests are running.
## Environment variables
nvm exposes the following environment variables:
- `NVM_DIR` - nvm's installation directory.
- `NVM_BIN` - where node, npm, and global packages for the active version of node are installed.
- `NVM_INC` - node's include file directory (useful for building C/C++ addons for node).
- `NVM_CD_FLAGS` - used to maintain compatibility with zsh.
- `NVM_RC_VERSION` - version from .nvmrc file if being used.
Additionally, nvm modifies `PATH`, and, if present, `MANPATH` and `NODE_PATH` when changing versions.
## Bash Completion ## Bash Completion
To activate, you need to source `bash_completion`: To activate, you need to source `bash_completion`: