Dena Burd
55eafcd814
[New] add `nvm -v` as an alias for `nvm --version`
...
Fixes #2200 .
5 years ago
ritmos
06c3bf6a8f
[Docs] `--help`: explain more clearly that <version> parameter is optional and can be provided by .nvmrc on `nvm install`, `nvm use`, `nvm exec`, and `nvm run`.
5 years ago
DeeDeeG
4b1100e515
[New] `nvm_supports_xz`: Add Mac/FreeBSD xz platform support checks
...
macOS only supports extracting xz tarballs with `tar` in 10.9 and up.
GNU tar needs an `xz` executable on the `PATH` to extract xz tarballs.
(These are the most common variants of tar, so until further testing
is done, conservatively assume all variants of tar (other than the one
shipped with macOS) need an xz executable on the PATH in order to
decompress xz tarballs.)
Fixes #2155 .
5 years ago
Jordan Harband
6575b6b052
[Fix] `install`: improved arg parsing around `--reinstall-packages-from`
...
Fixes #1762
5 years ago
Sehrope Sarkuni
91a55dd91a
[Refactor] Rename solaris and iojs helper functions to be nvm_ prefixed
...
Renames node_version_has_solaris_binary and nvm_iojs_version_has_solaris_binary
to be prefixed with nvm_ so they do not show up in tab completion following the
word "node".
5 years ago
Jordan Harband
f607f2f783
[Fix] `reinstall-packages`: do not include unmet peer deps
...
Closes #1948 .
5 years ago
Jordan Harband
258938ef66
v0.35.3
5 years ago
Jordan Harband
096ba0d8c3
`uninstall`: add `NVM_DEBUG` to print out a filename as its permissions are checked
5 years ago
Jordan Harband
4626d1aae6
[New] add `lts/-1` etc, to point to an LTS line relative to "latest"
5 years ago
Jordan Harband
b9536327ae
[Fix] `nvm ls-remote`: properly label latest LTS versions instead of just the latest one in the filter
...
Fixes #2166
5 years ago
Bruce A. MacNaughton
6c560b12b6
[New] `use`: set `NVM_INC` to expose the node include path
5 years ago
Jordan Harband
f355b327d6
v0.35.2
5 years ago
Jordan Harband
6fa92c82ca
[Fix] if a prefix env var is set (as in npm run), but is correct, do not fail
...
Fixes #2106 .
5 years ago
Jordan Harband
73a513c389
[Fix] allow `nvm unalias x` when `x` is a default alias, but shadowed
...
Fixes #2122 .
5 years ago
Jordan Harband
28bc2fd991
v0.35.1
5 years ago
Jordan Harband
100861d529
[Fix] `install-latest-npm`: `npm` `v6.10` breaks on `node` `v6.0`, `v6.1`, and `v9.0`-`v9.2`
5 years ago
Jordan Harband
94a72ae217
[Fix] `nvm use`: improve help output with bare `nvm use` and no `.nvmrc`
...
Closes #1914 .
5 years ago
Jordan Harband
011810e721
v0.35.0
5 years ago
Sehrope Sarkuni
0b5bb5ccd8
[Fix] `set -u`: Add default empty value for `$NVM_NO_ALIAS`
...
Adds a default value for NVM_NO_ALIAS so that nvm ls does not error out when run
in a bash nounset/-u (no unset vars) environment.
6 years ago
Jordan Harband
e7a5b7992b
[meta] update repo links to point to org
6 years ago
Christopher Sahnwaldt
2410215b6a
[Refactor] add `nvm_stdout_is_terminal` helper
6 years ago
Jordan Harband
43402df896
[Fix] `nvm_supports_source_options`: work around a bug in bash 3.2
...
See https://github.com/creationix/nvm/issues/1978#issuecomment-453480231
Fixes #1978 .
6 years ago
Jordan Harband
e0d87528f3
[shellcheck] remove unnecessary overrides
6 years ago
Jordan Harband
226487d358
[Fix] `install`: error out when an argument has `---`
...
Fixes #1915 .
6 years ago
Jordan Harband
216c24fba0
[Docs] `--help`: consolidate some help output
6 years ago
Jordan Harband
4c8ced736d
[Docs] `nvm --help`: add `--no-colors` and `--no-alias`
6 years ago
Jarvis Mercer - Amir Mohammad Safari (AMSL)
1f7f0c2d81
[Docs] add version number to `nvm —help` output
6 years ago
Jordan Harband
c6740f5a6e
[New] `nvm ls`: add `--no-alias` to suppress alias output
...
Per https://github.com/creationix/nvm/issues/1792#issuecomment-466696504
6 years ago
Jordan Harband
58d0933f72
[Fix] attempt to fix a bug in bash 3.2, fixed in 4.4, that improperly exits on `-e` in a test.
...
See https://gist.github.com/ljharb/6e70a79ac5fcf11a8b9de654a88642aa for details.
6 years ago
Jordan Harband
2a513a1bc0
[Fix] `nvm_ls`: Reverts #1462 to fix io.js sorting.
...
<details>
<summary>Before this revert:</summary>
```sh
iojs-v3.3.1
iojs-v2.5.0
v0.6.21
v0.7.12
iojs-v1.8.4
v0.8.28
v0.9.12
v0.10.48
v0.11.16
v0.12.9
v0.12.18
v0.12.87
v4.9.1
v5.11.1
v5.12.0
v6.14.4
v6.16.0
v7.10.1
v8.6.0
v8.9.1
v8.10.0
v8.11.3
v8.11.4
v8.12.0
v8.13.0
v8.14.1
v8.15.0
v9.11.2
v10.0.0
v10.1.0
v10.2.1
v10.3.0
v10.4.1
v10.5.0
v10.6.0
v10.7.0
v10.8.0
v10.9.0
v10.10.0
v10.11.0
v10.12.0
v10.13.0
v10.14.2
v10.15.1
v11.0.0
v11.1.0
v11.2.0
v11.3.0
v11.4.0
v11.5.0
v11.6.0
v11.7.0
v11.8.0
v11.9.0
v11.10.0
```
</details>
<details>
<summary>After this revert:</summary>
```sh
v0.6.21
v0.7.12
v0.8.28
v0.9.12
v0.10.48
v0.11.16
v0.12.9
v0.12.18
v0.12.87
iojs-v1.8.4
iojs-v2.5.0
iojs-v3.3.1
v4.9.1
v5.11.1
v5.12.0
v6.14.4
v6.16.0
v7.10.1
v8.6.0
v8.9.1
v8.10.0
v8.11.3
v8.11.4
v8.12.0
v8.13.0
v8.14.1
v8.15.0
v9.11.2
v10.0.0
v10.1.0
v10.2.1
v10.3.0
v10.4.1
v10.5.0
v10.6.0
v10.7.0
v10.8.0
v10.9.0
v10.10.0
v10.11.0
v10.12.0
v10.13.0
v10.14.2
v10.15.1
v11.0.0
v11.1.0
v11.2.0
v11.3.0
v11.4.0
v11.5.0
v11.6.0
v11.7.0
v11.8.0
v11.9.0
v11.10.0
```
</details>
In other words, the sorting needs to happen *before* the `NVM_NODE_PREFIX` is removed.
6 years ago
Jordan Harband
7f9220dbd8
[Fix] `nvm ls`: `--no-colors`: `system`: print an asterisk
6 years ago
Jordan Harband
e1bb44f712
[shellcheck] add overrides
6 years ago
Jordan Harband
db19450caa
[Fix] `default_packages`: work when the file lacks a trailing newline
...
Fixes #1995 .
6 years ago
Jordan Harband
5c117e6ab3
[Refactor] extract “get default packages” logic to `nvm_get_default_packages`
6 years ago
Lucas Kellner
02997b0753
[Docs] `unalias`: add more specific error message for builtin aliases
6 years ago
Peter Dave Hello
cc0750eb5d
[Fix] `install`: Add missing io.js installation message
...
Fixes #1988
6 years ago
Peter Dave Hello
10f24d6d4b
[Refactor] `nvm.sh`: make coding style more consistent
7 years ago
Peter Dave Hello
e367533eb8
[Refactor] Reduce one more `sed` & pipe to speedup
8 years ago
Peter Dave Hello
6534568745
[Fix] Enhance nvm debug for different environments
6 years ago
Jordan Harband
3d9c31d944
v0.34.0
6 years ago
Valerie Mettler
6354b170d7
Improve phrasing of 'nvm current'
...
To help beginners know that 'nvm current' is talking about node and not nvm.
6 years ago
Peter Dave Hello
14179bc8ce
[shellcheck] Use `-n/-z` instead of `! -z/! -n` condition
...
https://github.com/koalaman/shellcheck/wiki/SC2236
6 years ago
Jordan Harband
153506c8da
[shellcheck] ignore SC2230 errors
6 years ago
Jordan Harband
a49d9163ef
[Fix] avoid unbound variable
...
Fixes #1949 .
6 years ago
Alexander Groß
17586b971a
[Fix] Allow zsh users to have the nomatch option set
...
Closes #1937 .
6 years ago
Xandor Schiefer
90cfb5d771
[Fix] `use`: Prepend instead of changing if shadowed by system dirs ( fixes #1652 )
7 years ago
Joshua Li
0cdc184168
[Fix] Improve `nvm_is_version_installed` to check for a node executable instead of root dir
7 years ago
Xandor Schiefer
eabd7ab13d
Respect previously nvm-loaded node version when sourcing
8 years ago
Jordan Harband
c50ea6f0a3
[shellcheck] quote variables in for loops to avoid unintentional expansion
7 years ago
Jordan Harband
628d4fac84
[shellcheck] use `{ …; }` instead of `(…)` to group test commands
7 years ago