- Minimal supported Node.js version is now
18.18.0
- The Node.js version can now be specified as a file path to a
.nvmrc
,package.json
(engines.node
field) or similar files.
const { childProcess, version } = await nvexeca('/path/to/.nvmrc', 'node', [
'--version',
])
- Ensure the
signal
option also cancels the command
- Make the
signal
option also cancel downloading the Node.js binary
- Minimal supported Node.js version is now
16.17.0
- Upgrade Execa
- Improve tree-shaking support
- Reduce npm package size by 47%
- Reduce npm package size
- Add TypeScript types
- Minimal supported Node.js version is now
14.18.0
- The
cwd
option can now be afile:
URL
- 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 support for the latest version of
npm
- 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
- Add
fetch
option to control caching
- Checksum checks were not working when the
mirror
option was used
- 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 crash when using multiple drives on Windows
- 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
- Fix running
npm
ornpx
binaries on Windows
- Fix global binaries not working on Windows
- Fix executing binaries by specifying their file paths on Windows
- Fix executing
yarn
.
- Executing
npm
,yarn
andpnpm
was not working properly, for example when doing global installs (npm i -g ...
).
- 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
- Reduce the number of dependencies
- Reduce the number of dependencies
- Upgrade
get-node
to5.5.0