代码拉取完成,页面将自动刷新
v0.39.1
New Stuff
Fixes
ls-remote
/install
: support lts/-X
patterns in installsls-remote
/install
: properly handle lts/x
patternsnvm alias
/nvm_list_aliases
: support lts/
aliasesnvm_get_download_slug
: better architecture selection for M1 Macsinstall
: fix method=script install condition (#2668)install
: properly check for curl/wget--no-pager
option to git branch (#2637)Refactors
nvm_normalize_lts
helperDocs
Tests
nvm_get_download_slug
: add unit tests (#2657, #2232)doctoc
, markdown-link-check
v0.39.0
New Stuff
Fixes
nvm install-latest-npm
: ensure npm 8 does not install on unsupported nodesnvm_die_on_prefix
: filter prefixed env vars on name only, ignoring values (#2368)set -a
: when this option is set, some sh
shells breakbash_completion
: be robust when cd
is overridden (#2585)nvm_die_on_prefix
: avoid grepping env functions in bash (2dad0455ec61e2842f8d0820bae40114a343ae3b, #2606)reinstall-packages
: handle global symlink locations properlynvm_ls_remote_index_tab
: handle long version lists (#2581)nvm ls
/nvm alias
/nvm_list_aliases
: zsh: when no LTS aliases, no errorinstall
: Detect correct profile based on $SHELL var (#2556)nvm_get_arch
: suppress error output if /sbin
does not existbash_completion
: check if compinit
is called before calling it (#2490)nvm_get_arch
: Rasbperry Pi: armv7l with arm64 kernel, get correct arch (#2469)Robustness
Refactors
-x
warning from v0.7.2Dockerfile
Docs
nvm
(#1343)Meta Stuff
SECURITY.md
Tests
nvm install-latest-npm
testsmarkdown-link-check
scriptnvm install-latest-npm
: node < 0.10 breaks with npm with dropped support for TLS < 1.2GITHUB_TOKEN
(#2584)postcss
v7.0.36 stopped working on node 0.10; downgrade to v4fail-fast
node/install
instead of node/run
nvm_is_version_installed
node-gyp
v8 breaks a testv0.38.0
New Stuff
install
: add parallel build support for openbsd (#2390)install
: add -b
flag to skip building from source (#2439)Fixes
exec
: --
should stop argument parsing (#2354)nvm_alias
: ensure lts/-1
returns the one before lts/*
(#2462)nvm_echo
nvm_print_color_code
(#2365)nvm_download
implementation from nvm.sh (#2406)nvm_supports_source_options
(#2402)bash_completion
: move compinit before bashcompinit (#2393)$PREFIX
checking, to accomodate npm exec
install
: Ignore npm command under $NVM_DIR when checking for global modules (#2348)Refactors
nvm_install_binary_extract
nvm_get_artifact_compression
Docs
nvs
as one of the Windows alternatives (#2454)cdnvm
implementation (#2442)--latest-npm
example (#2431)./nvm.sh
instead of nvm.sh
, for zsh
(#2205)Tests
dockerfile_lint
, doctoc
, eclint
, replace
, semver
doctoc
action fails when it shouldnvm_grep
to install script, fix tests (#2403.npm
is now cached by default (#2104)release
: clobber local tagsv0.37.2
Fixes
nvm_die_on_prefix
: only grep lines starting with env var name" (#2347, #2360, #2364, #2366)v0.37.1
New Stuff
set-colors
command (#2291, #2232)Fixes
nvm_die_on_prefix
: only grep lines starting with env var name (#2347)Tests
pull_request_target
eventv0.37.0
Major Performance Enhancement
use
/nvm_die_on_prefix
: replicate npm config algorithm and remove npm config
call (#2317)Fixes
nvm ls-remote
: accept versions that end with a dot (#2310)nvm_ls
: zsh: unset markdirs
and local_options
(#2316)nvm_die_on_prefix
: use directory comparison rather than string (#2316)Docs
nvm --help
output (#2301)Tests
nvm_ls_current
fast test (#2322)sudo:
option in TravisCI config (#2307)v0.36.0
New Stuff
nvm -v
as an alias for nvm --version
(#2270)nvm deactivate
/nvm which
: add --silent
nvm install
(#2274, #1929)nvm_supports_xz
: Add Mac/FreeBSD xz platform support checks (#2156)nvm_find_project_dir
helperFixes:
latest-npm
: ensure npm 7 is not installed on node < 10nvm_die_on_prefix
: check that the prefix is inside the version dir, not just the nvm dirnvm use
: fix --silent
when version is omitted--help
is intercepted on any command (#2277)--help
: Add more examples (#2272)install
: improved arg parsing around --reinstall-packages-from
(#1762)reinstall-packages
: do not include unmet peer deps (#1948)--help
: explain more clearly that parameter is optional and can be provided by .nvmrc on nvm install
, nvm use
, nvm exec
, and nvm run
(#2242)command
to xargs
/rm
in nvm_get_default_packages
(#2281)whoami
outputnvm_auto
: only call nvm_ls_current
in use
mode (#2286)Refactors:
nvm_get_checksum_binary
; use it in nvm debug
nvm_checksum
functionnvm run
/nvm exec
: use NVM_SILENT
consistently internally (#2279)Dockerfile:
locales
(#2306)Docs:
Tests:
Meta Stuff:
v0.35.3
lts/-1
etc, to point to an LTS line relative to "latest"use
: set NVM_INC
to expose the node include pathuninstall
: add NVM_DEBUG
to print out a filename as its permissions are checkednvm ls-remote
: properly label latest LTS versions instead of just the latest one in the filternvm unload
test more robustnvm unload
unsets env vars toov0.35.2
nvm unalias x
when x
is a default alias, but shadowed (#2122)david
to v11v0.35.1
Fixes
install-latest-npm
: npm
v6.10
breaks on node
v6.0
, v6.1
, and v9.0
-v9.2
nvm use
: improve help output with bare nvm use
and no .nvmrc
Docs
v0.35.0
New Stuff
nvm ls
: add --no-alias
to suppress alias outputFixes
set -u
: Add default empty value for $NVM_NO_ALIAS
(#2054, #2047)default_packages
: work when the file lacks a trailing newlineinstall
: Add missing io.js installation message (#1989)nvm_supports_source_options
: work around a bug in bash 3.2install
: error out when an argument has ---
-e
in a test.nvm ls
: --no-colors
: system
: print an asteriskRefactors
nvm_stdout_is_terminal
helper (#2012, #2007)nvm_get_default_packages
nvm.sh
: make coding style more consistent (#1819)Docs
--latest-npm
info to Migrating global packages section (#1970)bash
cdnvm
script to properly handle aliases (#2017)--help
: consolidate some help outputnvm --help
: add --no-colors
and --no-alias
nvm —help
output (#1993)unalias
: add more specific error message for builtin aliases (#1992)Tests
jspm
v2 beta started breaking tests; pin to < v2rmdir
in teardowns (#2010)nvm_command_info
: make error output more helpfulnvm ls
: ensure nvm alias
is calledDockerfile
Meta
v0.34.0
New Stuff
--no-progress
for nvm install
(#1422)install.sh
: allow user to explicitly opt out of nvm adding the source string (#1804)$XDG_CONFIG_HOME
(#1888)bash_completion
: Add support for ZSH_DISABLE_COMPFIX
flag (#1911)Fixes
nvm debug
: Fix sed syntax error in nvm_command_info (#1528)install -s
: zsh
: ensure shwordsplit
opt is set (#1719)ls-remote
: fix issues in zsh when using a mirror with a ton of entries (#1818)nvm_is_version_installed
to check for a node executable instead of root dir (#1824)use
: Prepend instead of changing if shadowed by system dirs (#1830)install.sh
: Print an error and exit the script if $METHOD is set to something unexpected (#1917)Refactors
bash_completion
: Improve coding style (#1816){ …; }
instead of (…)
to group test commands (#1825)-n/-z
instead of ! -z/! -n
condition (#1955)Tests
nvm install-latest-npm
tests for all node versionsDocs
nvm use
in Bash (#1865)v0.33.11
Fixes
nvm install-latest-npm
: node v4.5 and v4.6 work on npm v5.4.1, but not v5.4.2v0.33.10
Fixes
install-latest-npm
: npm 6 is out, and requires node 6 or higherv0.33.9
New Stuff
nvm debug
: Print $SHLVL, add $PATH (#1655, #1745)Fixes
install.sh
: detect a defined but nonexistent $NVM_DIR (#1700)install.sh
: Don't give detached HEAD advice when installing (#1704)nvm_echo
instead of echo
directly (#1751)reinstall-packages
: Prevent install/link when no packages found (#1750)bash_completion
: Reduce startup time (#1759)install.sh
: Detect profile with $BASH_VERSION and $ZSH_VERSION (#1780)nvm debug
: Improve OS version detection (#1746)Refactors
-q
parameter instead of redirect to /dev/null (#1741)install.sh
: Improve install.sh prompt output, add a newline (#1783)Docs
.nvmrc
better (#1673)nvm which current
to nvm --help
outputTests
.
(#1701)v0.33.7
Fixes
set -u
: ensure NVM_USE_OUTPUT
is always set (#1671)install.sh
: Fix a bug that block that installation of node in install.sh (#1676)nvm install-latest-npm
: fix node 4-4.6Documentation
nvm cache clear
message less ambiguous (#1644)v0.33.6
Fixes
install.sh
do not use nonexistent variable (#1605)install-latest-npm
: npm
v5.4
+ breaks on node
v4.5
and v4.6
Documentation
Tests
v0.33.5
New Stuff
debug
: Enhance nvm debug with more tools info (#1613)Fixes
install-latest-npm
: io.js
v1.0.x
has weird behavior with npm v4.6.x.NVM_RC_VERSION
when unloading (#1607)grep
calls go through nvm_grep
(#1615)Documentation
Tests