|
|
@ -1,6 +1,7 @@ |
|
|
|
# `fnm` |
|
|
|
# `fnm` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm 1.31.1 |
|
|
|
fnm 1.32.0 |
|
|
|
A fast and simple Node.js manager |
|
|
|
A fast and simple Node.js manager |
|
|
|
|
|
|
|
|
|
|
|
USAGE: |
|
|
|
USAGE: |
|
|
@ -9,12 +10,12 @@ USAGE: |
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -22,14 +23,14 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
@ -39,12 +40,12 @@ OPTIONS: |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
@ -77,9 +78,11 @@ SUBCOMMANDS: |
|
|
|
use |
|
|
|
use |
|
|
|
Change Node.js version |
|
|
|
Change Node.js version |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm alias` |
|
|
|
# `fnm alias` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-alias |
|
|
|
fnm-alias |
|
|
|
Alias a version to a common name |
|
|
|
Alias a version to a common name |
|
|
|
|
|
|
|
|
|
|
|
USAGE: |
|
|
|
USAGE: |
|
|
@ -87,20 +90,20 @@ USAGE: |
|
|
|
|
|
|
|
|
|
|
|
ARGS: |
|
|
|
ARGS: |
|
|
|
<TO_VERSION> |
|
|
|
<TO_VERSION> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<NAME> |
|
|
|
<NAME> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -108,33 +111,35 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm completions` |
|
|
|
# `fnm completions` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-completions |
|
|
|
fnm-completions |
|
|
|
Print shell completions to stdout |
|
|
|
Print shell completions to stdout |
|
|
|
|
|
|
|
|
|
|
|
USAGE: |
|
|
|
USAGE: |
|
|
@ -143,12 +148,12 @@ USAGE: |
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -156,14 +161,14 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
@ -173,19 +178,21 @@ OPTIONS: |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm current` |
|
|
|
# `fnm current` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-current |
|
|
|
fnm-current |
|
|
|
Print the current Node.js version |
|
|
|
Print the current Node.js version |
|
|
|
|
|
|
|
|
|
|
|
USAGE: |
|
|
|
USAGE: |
|
|
@ -194,12 +201,12 @@ USAGE: |
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -207,33 +214,35 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm default` |
|
|
|
# `fnm default` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-default |
|
|
|
fnm-default |
|
|
|
Set a version as the default version |
|
|
|
Set a version as the default version |
|
|
|
|
|
|
|
|
|
|
|
This is a shorthand for `fnm alias VERSION default` |
|
|
|
This is a shorthand for `fnm alias VERSION default` |
|
|
@ -243,17 +252,17 @@ USAGE: |
|
|
|
|
|
|
|
|
|
|
|
ARGS: |
|
|
|
ARGS: |
|
|
|
<VERSION> |
|
|
|
<VERSION> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -261,33 +270,35 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm env` |
|
|
|
# `fnm env` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-env |
|
|
|
fnm-env |
|
|
|
Print and set up required environment variables for fnm |
|
|
|
Print and set up required environment variables for fnm |
|
|
|
|
|
|
|
|
|
|
|
This command generates a series of shell commands that should be evaluated by your shell to create a |
|
|
|
This command generates a series of shell commands that should be evaluated by your shell to create a |
|
|
@ -303,33 +314,36 @@ USAGE: |
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
|
Print help information |
|
|
|
Print help information |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--json |
|
|
|
|
|
|
|
Print JSON instead of shell commands |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
|
--shell <SHELL> |
|
|
|
--shell <SHELL> |
|
|
|
The shell syntax to use. Infers when missing |
|
|
|
The shell syntax to use. Infers when missing |
|
|
|
|
|
|
|
|
|
|
|
[possible values: bash, zsh, fish, powershell] |
|
|
|
[possible values: bash, zsh, fish, powershell] |
|
|
|
|
|
|
|
|
|
|
|
--use-on-cd |
|
|
|
--use-on-cd |
|
|
@ -338,19 +352,21 @@ OPTIONS: |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm exec` |
|
|
|
# `fnm exec` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-exec |
|
|
|
fnm-exec |
|
|
|
Run a command within fnm context |
|
|
|
Run a command within fnm context |
|
|
|
|
|
|
|
|
|
|
|
Example: |
|
|
|
Example: |
|
|
@ -368,12 +384,12 @@ ARGS: |
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -381,14 +397,14 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
@ -398,23 +414,27 @@ OPTIONS: |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm help` |
|
|
|
# `fnm help` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm install` |
|
|
|
# `fnm install` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-install |
|
|
|
fnm-install |
|
|
|
Install a new Node.js version |
|
|
|
Install a new Node.js version |
|
|
|
|
|
|
|
|
|
|
|
USAGE: |
|
|
|
USAGE: |
|
|
@ -427,12 +447,12 @@ ARGS: |
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -443,7 +463,7 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
@ -453,26 +473,28 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm list` |
|
|
|
# `fnm list` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-list |
|
|
|
fnm-list |
|
|
|
List all locally installed Node.js versions |
|
|
|
List all locally installed Node.js versions |
|
|
|
|
|
|
|
|
|
|
|
USAGE: |
|
|
|
USAGE: |
|
|
@ -481,12 +503,12 @@ USAGE: |
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -494,33 +516,35 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm list-remote` |
|
|
|
# `fnm list-remote` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-list-remote |
|
|
|
fnm-list-remote |
|
|
|
List all remote Node.js versions |
|
|
|
List all remote Node.js versions |
|
|
|
|
|
|
|
|
|
|
|
USAGE: |
|
|
|
USAGE: |
|
|
@ -529,12 +553,12 @@ USAGE: |
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -542,33 +566,35 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm unalias` |
|
|
|
# `fnm unalias` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-unalias |
|
|
|
fnm-unalias |
|
|
|
Remove an alias definition |
|
|
|
Remove an alias definition |
|
|
|
|
|
|
|
|
|
|
|
USAGE: |
|
|
|
USAGE: |
|
|
@ -576,17 +602,17 @@ USAGE: |
|
|
|
|
|
|
|
|
|
|
|
ARGS: |
|
|
|
ARGS: |
|
|
|
<REQUESTED_ALIAS> |
|
|
|
<REQUESTED_ALIAS> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -594,33 +620,35 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm uninstall` |
|
|
|
# `fnm uninstall` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-uninstall |
|
|
|
fnm-uninstall |
|
|
|
Uninstall a Node.js version |
|
|
|
Uninstall a Node.js version |
|
|
|
|
|
|
|
|
|
|
|
> Warning: when providing an alias, it will remove the Node version the alias is pointing to, along |
|
|
|
> Warning: when providing an alias, it will remove the Node version the alias is pointing to, along |
|
|
@ -631,17 +659,17 @@ USAGE: |
|
|
|
|
|
|
|
|
|
|
|
ARGS: |
|
|
|
ARGS: |
|
|
|
<VERSION> |
|
|
|
<VERSION> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -649,33 +677,35 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
# `fnm use` |
|
|
|
# `fnm use` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
fnm-use |
|
|
|
fnm-use |
|
|
|
Change Node.js version |
|
|
|
Change Node.js version |
|
|
|
|
|
|
|
|
|
|
|
USAGE: |
|
|
|
USAGE: |
|
|
@ -683,17 +713,17 @@ USAGE: |
|
|
|
|
|
|
|
|
|
|
|
ARGS: |
|
|
|
ARGS: |
|
|
|
<VERSION> |
|
|
|
<VERSION> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONS: |
|
|
|
OPTIONS: |
|
|
|
--arch <ARCH> |
|
|
|
--arch <ARCH> |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
Override the architecture of the installed Node binary. Defaults to arch of fnm binary |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_ARCH] |
|
|
|
[env: FNM_ARCH] |
|
|
|
|
|
|
|
|
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
--fnm-dir <BASE_DIR> |
|
|
|
The root directory of fnm installations |
|
|
|
The root directory of fnm installations |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_DIR] |
|
|
|
[env: FNM_DIR] |
|
|
|
|
|
|
|
|
|
|
|
-h, --help |
|
|
|
-h, --help |
|
|
@ -704,14 +734,14 @@ OPTIONS: |
|
|
|
|
|
|
|
|
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
--log-level <LOG_LEVEL> |
|
|
|
The log level of fnm commands |
|
|
|
The log level of fnm commands |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[env: FNM_LOGLEVEL] |
|
|
|
[default: info] |
|
|
|
[default: info] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
[possible values: quiet, info, all, error] |
|
|
|
|
|
|
|
|
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
--node-dist-mirror <NODE_DIST_MIRROR> |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
https://nodejs.org/dist/ mirror |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[env: FNM_NODE_DIST_MIRROR] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
[default: https://nodejs.org/dist] |
|
|
|
|
|
|
|
|
|
|
@ -722,12 +752,12 @@ OPTIONS: |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
--version-file-strategy <VERSION_FILE_STRATEGY> |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
A strategy for how to resolve the Node version. Used whenever `fnm use` or `fnm install` |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
is called without a version, or when `--use-on-cd` is configured on evaluation. |
|
|
|
|
|
|
|
|
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
* `local`: Use the local version of Node defined within the current directory |
|
|
|
|
|
|
|
|
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
* `recursive`: Use the version of Node defined within the current directory and all |
|
|
|
parent directories |
|
|
|
parent directories |
|
|
|
|
|
|
|
|
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[env: FNM_VERSION_FILE_STRATEGY] |
|
|
|
[default: local] |
|
|
|
[default: local] |
|
|
|
[possible values: local, recursive] |
|
|
|
[possible values: local, recursive] |
|
|
|