- Minimal supported Node.js version is now
18.18.0
- The version can now be specified as a file path to a
.nvmrc
,package.json
(engines.node
field) or similar files.
const { path, version } = await getNode('/path/to/.nvmrc')
- Add a
signal
option to cancel
- Minimal supported Node.js version is now
16.17.0
- Upgrade Execa
- Improve tree-shaking support
- Reduce npm package size by 53%
- Reduce npm package size
- Reduce npm package size
- Improve TypeScript types
- Upgrade
node-version-alias
- Minimal supported Node.js version is now
14.18.0
- The
cwd
option can now be afile:
URL
- Add TypeScript types.
- Minimal supported Node.js version is now
12.20.0
- This package is now an ES module. It can only be loaded with an
import
orimport()
statement, notrequire()
. See this post for more information.
- Fix issue with
SIGINT
handlers
- Fix crash when downloading several Node.js binaries in parallel
- Rename the alias
here
tolocal
- Add the alias
global
to target the global Node version, regardless of the current directory
- Rename the alias
now
tohere
- Aliases
c
andcurrent
renamed tonow
- The alias
now
now takes into accountpackage.json
engines.node
field and additional files used by other Node.js version managers. - Alias
l
removed: please uselatest
instead
- Added alias
lts
to target the latest LTS version
- Fix aliases shortcuts
l
andc
- Rename
*
alias tolatest
orl
- Rename
.
alias tocurrent
orc
- Remove
_
alias
- Fix removing
core-js
- Add
fetch
option to control caching
- Checksum checks were not working when the
mirror
option was used
- Remove
core-js
- Fix
cwd
option
- Fix
_
and.
aliases not working
- Can use the
_
alias to refer to the current process's Node.js version - Can use the
.
alias to refer to the current project's Node.js version using its.nvmrc
,.node-version
or.naverc
. The current directory can be changed using thecwd
option.
- Fix terminal color changing on Windows
- Fix
arch
option
- Add
arch
option to specify the CPU architecture.
- Minimal supported Node.js version is now
10.17.0
- Node.js binary download is now 50% faster on Windows
- Fix crash when Node.js binary URL is invalid
- Node.js binary download is now twice faster on Windows
- Fix ARM, PowerPC, S390 support
- Improve the internal directory structure used to cache the Node.js binary
- Cleanup temporary files when Node.js download fails
- Improve the appearance of the progress bar
- Ensure Node.js binaries are not corrupted by checking their checksums
- Use cache when offline (no network connection)
- Make Node.js binary download twice faster on Linux and MacOS
- Improve error messages
- Fix downloading Node.js
0.12
and below on Windows
- Reduce the number of dependencies
- Separate the CLI into its own repository and npm package
get-node-cli
to reduce the number of dependencies.
- Upgrade
fetch-node-website
to4.0.0
- Upgrade
normalize-node-version
to5.1.0
- Fix progress bar jitter.
- Improve the appearance of the progress bar with the
progress
option.
- The
progress
option now displays a progress bar instead of a spinner.
- Show percentage instead of number of megabytes in spinner
- Improve speed
- Change the
progress
option default value fromtrue
tofalse
when called programmatically. The--progress
CLI option still defaults totrue
.
- Internal changes
- Improve error messages
- Fix
CTRL-C
not working
- The output directory is now specified as
an
--output
flag instead of a positional argument on the CLI. This meansget-node VERSION OUTPUT
should now beget-node --output=OUTPUT VERSION
.
- Add
--help
and--version
CLI flags - Add
--progress
CLI flag - Add
--mirror
option - Improve CLI spinner
- Fix error messages not printed correctly (50128cd)
- Improve progress messages on console
- Add alternative names for
NODE_MIRROR
:NVM_NODEJS_ORG_MIRROR
,N_NODE_MIRROR
andNODIST_NODE_MIRROR
- Fix cache invalidation bug
- The output directory now defaults to a global cache directory instead of the current directory.
- The Node.js/programmatic API is now documented and exposed
- Internal changes
- Retry downloading the Node.js binaries on network errors
- A spinner is now shown when a new Node.js version is downloading