Wes Todd
b7beeccd6c
Merge 3225ca47dd
into 3afdce0a2c
2023-07-29 01:09:33 +05:30
Dan Lemon
3225ca47dd
Add installer test for NVM_NOUSE
...
Installs nvm via the install.sh script, then removes nvm, and reinstalls with `NVM_NOUSE` variable set to true.
2020-05-25 11:14:27 -07:00
Deniz
5410ae57ba
[Fix] fix node download link for armv8l
...
Fixes #3035
2023-04-29 16:41:31 -07:00
Leo Zlotnikov
0d9b5c2a00
[Fix] fix directory traversal when workdir path is not readable
2023-04-08 17:24:41 +01:00
Jordan Harband
b1331c20b0
[Tests] add unit tests for nvm_download_artifact
2023-04-06 09:23:33 -07:00
Jordan Harband
dc691121b8
[Tests] improve debug output on failure
2022-12-27 21:41:39 -08:00
Jordan Harband
ce35311657
[Tests] force the NVM_DIR to the expected location, for tests
2022-12-27 21:40:48 -08:00
Jordan Harband
788c0a425e
[meta] use HEAD instead of master where possible
2022-12-23 12:53:40 -08:00
Jordan Harband
d0bc227127
[Tests] update test mocks
2022-12-22 16:07:00 -08:00
Jordan Harband
bf438742a7
[Tests] move installation_node tests back to xenial
2022-12-22 16:16:10 -08:00
Jordan Harband
447940acb3
[Tests] move tests that fail on focal to a separate suite that runs on xenial
2022-12-22 11:26:27 -08:00
Jordan Harband
4c4b0d64ed
[Tests] fix nvm_list_aliases test to use mocks for LTS aliases
2022-10-26 10:31:26 -07:00
Jordan Harband
df01d81128
[Refactor] add nvm_wrap_with_color_code
; allow no color code
2022-10-13 20:16:42 -07:00
Jordan Harband
0698ede92d
[Tests] update test mocks
2022-10-13 12:08:31 -07:00
Maxim Lepekha
7c929f8742
[Fix] install.sh
: support ~/.zprofile
2022-09-21 22:38:50 +02:00
deepakchethan
9e884b8d7b
[Fix] nvm install
: show proper version in .nvmrc
install instructions
2022-03-22 18:58:18 +05:30
Jordan Harband
c2f740ab38
[patch] HTTP -> HTTPS
2022-01-18 12:49:57 -08:00
Luke Arms
81f0f3ec19
[Fix] set -E
: Add test for node install
on Bash with an ERR trap and set -E
2021-12-27 16:02:25 +11:00
Bob Bregant II
ccd442d833
[Refactor] add nvm_extract_tarball
to consolidate extraction logic
2021-12-19 02:58:18 +00:00
Jordan Harband
5cc74a6736
[Tests] fix failing test
2021-12-17 13:21:29 -08:00
Jordan Harband
c4c7690dec
[Fix] ls-remote
/install
: support lts/-X
patterns in installs
...
Fixes #2692
2021-12-16 23:01:05 -08:00
Jordan Harband
aed1d732d7
[Fix] ls-remote
/install
: properly handle lts/x
patterns
2021-12-16 22:58:06 -08:00
Jordan Harband
0b4cd8df6c
[Refactor] create nvm_normalize_lts
helper
2021-12-16 22:55:02 -08:00
Jordan Harband
430860a8be
[Fix] nvm alias
/nvm_list_aliases
: support lts/
aliases
...
See #2692
2021-12-16 15:54:38 -08:00
Jordan Harband
2459d17741
[Tests] update test mocks
2021-12-16 23:13:15 -08:00
Jordan Harband
81fc05684d
[Tests] nvm_get_download_slug
: add unit tests
2021-12-02 23:33:20 -08:00
Jordan Harband
73a513c389
[Fix] allow nvm unalias x
when x
is a default alias, but shadowed
...
Fixes #2122 .
2019-11-12 11:16:08 -08:00
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.
2019-05-14 08:31:24 -04:00
Jordan Harband
ee9e56582e
[Tests] jspm
v2 beta started breaking tests; pin to < v2
2019-05-04 13:34:16 -07:00
Jordan Harband
e7a5b7992b
[meta] update repo links to point to org
2019-04-24 16:08:34 -07:00
Christopher Sahnwaldt
2410215b6a
[Refactor] add nvm_stdout_is_terminal
helper
2019-02-24 00:03:19 +01:00
Christopher Sahnwaldt
a1abfd1fe4
[Tests] use rimraf over rmdir
in teardowns
...
- fix test 'Running "nvm ls" should display all installed versions.': only expect versions created by this test, but no versions created by other tests
2019-02-27 10:50:59 +01:00
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 .
2019-02-26 16:53:36 -08:00
Jordan Harband
9daf26f0a0
[Tests] nvm_command_info
: make error output more helpful
2019-02-25 13:17:10 -08:00
Jordan Harband
c6740f5a6e
[New] nvm ls
: add --no-alias
to suppress alias output
...
Per https://github.com/creationix/nvm/issues/1792#issuecomment-466696504
2019-02-23 22:41:46 -08:00
Jordan Harband
04fdb2331b
[Tests] nvm ls
: ensure nvm alias
is called
2019-02-23 22:22:18 -08:00
Jordan Harband
2a5d2c06ff
[Tests] add more checks to make_fake_* helpers
2019-02-23 15:24:02 -08:00
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.
2019-02-23 15:02:31 -08:00
Jordan Harband
48196d2436
[Tests] fix fake node versions
2019-02-23 14:47:49 -08:00
Jordan Harband
db19450caa
[Fix] default_packages
: work when the file lacks a trailing newline
...
Fixes #1995 .
2019-02-02 13:45:11 -08:00
Jordan Harband
5c117e6ab3
[Refactor] extract “get default packages” logic to nvm_get_default_packages
2019-02-01 13:27:18 -08:00
Lucas Kellner
02997b0753
[Docs] unalias
: add more specific error message for builtin aliases
2019-01-23 16:39:57 -08:00
Peter Dave Hello
cc0750eb5d
[Fix] install
: Add missing io.js installation message
...
Fixes #1988
2019-01-22 15:46:29 +08:00
Peter Dave Hello
7e715d5c73
[Tests] Improve syntax in "test/installation_iojs/nvm install v1 works"
2019-01-23 03:10:03 +08:00
Jordan Harband
c1150c41ab
[Tests] avoid using shopt in zsh
2018-11-26 11:18:11 -08:00
Erik Lilja
8542df4ac5
[New] add support for $XDG_CONFIG_HOME
2018-08-14 21:45:40 +02:00
Jordan Harband
f218a85454
[Tests] eslint 5.5+ seems to not install on node 0.10
2018-09-09 14:56:17 -07:00
Jordan Harband
e7a37f336d
[Tests] fix failing tests on master due to npm registry SSL changes
2018-08-15 15:01:47 -07:00
Xandor Schiefer
90cfb5d771
[Fix] use
: Prepend instead of changing if shadowed by system dirs ( fixes #1652 )
2018-06-08 15:23:02 +02:00
Joshua Li
0cdc184168
[Fix] Improve nvm_is_version_installed
to check for a node executable instead of root dir
2018-05-31 15:26:30 -07:00