Skip to main content

nvm default

Show the current default Node.js version.

Usage​

Usage: nvm default [flags]

Arguments​

This command takes no arguments.

Flags​

FlagShortDescription
--jsonOutput default and optional last as JSON.

Output​

FormatFields
TextDefault (current active version or none), Last (previous default when available)
JSONdefault, optional last

Examples​

nvm default
nvm default --json

Sample output​

Default : v24.1.0
Last : v22.14.0

Verified transcript (local run)​

PS> nvm default --help
Usage: nvm default [flags]

Flags:
--json Output in JSON format.