Chris Hall
bade2aca61
Merge c74c74eb0a9f2a11015a00ce1551a290797b11dc into 06413631029de32cd9af15b6b7f6ed77743cbd79
2024-11-14 14:04:53 +08:00
Jordan Harband
0641363102
[Tests] install.sh
: clean up nvm_detect_profile
tests
2024-11-08 10:52:41 +00:00
Jordan Harband
9659af6c16
[Tests] nvm_detect_profile
: refactor
2024-11-12 13:31:36 -08:00
menaechmi
abd02e5aae
[Fix] install.sh
: fix failing install tests ( #3458 )
2024-11-12 11:57:02 -06:00
menaechmi
3de0b15810
[Tests] run urchin tests on pull requests
2024-11-12 12:58:53 -06:00
menaechmi
cd22c84026
[New] install.sh
: add $ZDOTDIR
to zsh search
...
Fixes #3128
2024-11-06 16:53:58 -06:00
Jordan Harband
d648a3b1ba
[meta] add DCO
...
imo this shouldn‘t be necessary, as it should be implied by the act of making a PR.
Following the example in https://github.com/expressjs/express/pull/6048
See https://github.com/openjs-foundation/project-status/issues/2
2024-11-05 17:51:39 +00:00
Jordan Harband
ccf6d16017
[meta] disable blank issues
2024-11-04 15:07:16 +00:00
Jordan Harband
ba98270442
[meta] update issue template
2024-11-04 15:01:26 +00:00
Jordan Harband
1be4257e96
[Tests] update mocks
2024-10-31 14:23:36 -07:00
Cheerag Patel
9c9ff4bac0
[meta] Rename .github/ISSUE_TEMPLATE.md to .github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md
...
Moved issue template into ISSUE_TEMPLATE folder
2024-10-30 14:03:05 -07:00
Jordan Harband
51ea809d63
[Tests] ensure that unit tests use only mocked LTS names
2024-10-30 23:41:50 -07:00
Jordan Harband
6b70c40f15
[Fix] nvm_install_latest_npm
: avoid unbound variable
...
Fixes #3447
2024-10-22 22:02:01 -07:00
Reetik Rajan
5dc31ac51b
[patch] give a more helpful message when lts
alias is mistakenly used
2024-10-05 09:21:42 +05:30
Jordan Harband
da2720a429
[Fix] nvm ls
, nvm alias
, nvm install
: error when an LTS name is invalid
2024-09-04 13:55:11 -07:00
Jordan Harband
9fb9dec710
[Fix] nvm_normalize_lts
: error when an LTS name is not lowercase
...
Fixes #3417
2024-09-04 13:54:41 -07:00
Jordan Harband
9a28dbd394
[actions] use node/install
instead of node/run
2024-08-28 11:28:52 -07:00
Jordan Harband
179d45050b
v0.40.1
v0.40.1
2024-08-27 13:44:15 -07:00
Jordan Harband
ff7634577b
[Tests] fix broken tests exposed by 863bd63
...
Leaves 2 non-executable, + some TODOs
2024-08-27 12:46:40 -07:00
Jordan Harband
0ce8f5a52f
[Fix] nvm_download
: ensure all args are quoted
...
Fixes #3411 .
2024-08-20 22:33:38 -07:00
Jordan Harband
863bd63cfa
[Tests] set proper permissions on test files
2024-08-23 17:23:12 -07:00
Jordan Harband
0d53381666
[Tests] move sourcing suite to GHA
2024-08-22 13:30:55 -07:00
Jordan Harband
df70535248
[Fix] nvm_auto
: Fix bug introduced in c31a867
2024-08-21 10:54:19 -07:00
Jordan Harband
c31a867c46
[Fix] --save
: avoid a conflict with set -e
...
Fixes #3405 .
2024-08-10 15:52:24 +12:00
Jordan Harband
a8c418558a
[Refactor] --save
: clean up some usage
2024-08-20 16:21:45 -07:00
Jordan Harband
d5e2c92a25
[Fix] nvm_has_colors
: avoid an aliased tput
...
Fixes #3413
2024-08-20 09:23:45 -07:00
Jordan Harband
81f18bc445
[patch] install.sh
: fix node capitalization
2024-08-09 13:46:16 +12:00
Jordan Harband
4beab63631
[Fix] declare an unbound variable
...
Fixes #3402
2024-08-07 17:38:37 +12:00
Jordan Harband
14acd3dcdd
[Fix] nvm install -b
: do not attempt to download source on a failed binary download with -b
...
Fixes #3399
2024-08-01 10:35:37 -07:00
Jordan Harband
271720ebfc
[Fix] nvm install -b
: when no binary is available, fail and output a clear message
2024-08-01 13:57:22 -07:00
Jordan Harband
423ee82b4c
[Tests] fix nvm ls-remote
unit test
2024-08-01 10:22:28 -07:00
Jordan Harband
deac4e0932
v0.40.0
v0.40.0
2024-07-30 12:50:18 -07:00
Jordan Harband
b5118ac365
[Dev Deps] update semver
2024-07-30 11:35:15 -07:00
Jordan Harband
24deac7ac5
[readme] add OpenJS Ecosystem Sustainability Program partner
...
- https://openjsf.org/ecosystem-sustainability-program
2024-07-30 10:08:48 -07:00
Jordan Harband
ff1257e8e3
[Refactor] nvm_has_colors
: also check the env var
2024-07-28 18:01:14 -07:00
Jordan Harband
87a709741f
[Fix] nvm_get_default_packages
: use awk
for more reliable file processing
...
See db19450caa
Fixes #3382
2024-07-28 10:02:08 -07:00
Matt Saladna
c74c74eb0a
Add test for NVM_DIR outside nvm.sh
2023-03-10 15:43:33 -06:00
Matt Saladna
9dc29fd8eb
shellcheck warnings
2023-03-10 15:33:15 -06:00
Matt Saladna
d7058a4952
Allow nvm-exec to be linked into individual .nvm directories for system-wide installs with a localized Nodes.
...
Let's say we have nvm installed in a separate mount, /.socket. NVM_DIR is $HOME/.nvm in /etc/profile.d/nvm.sh. With this setup, users can install Node versions to their home directories without each installing nvm.
nvm install --lts
This works fine as does nvm use --lts. When nvm exec is used though, it fails because it looks for nvm-exec in $NVM_DIR. First fix is to look for nvm-exec in $NVM_DIR. If NVM_DIR does not contain nvm-exec, check $BASH_SOURCE[0]. The second fix is to follow nvm-exec if a symbolic link to determine the proper location of nvm's home. Alternatively we could use a second environment variable, NVM_HOME in exec instead of relying on the directory name of nvm-exec.
2023-03-10 12:27:55 -06:00
Nicolas signed-log FORMICHELLA
edacf8275e
[Fix] Remove unneeded call to ls
in nvm_arch
...
Remove the call to `ls` that was used to determine the symlink
destination
Reasoning :
* `od` resolves symlink itself due to the use of `fopen`
* Prevent the behaviour of `od` which will hang if the filename is
empty (i.e. `/sbin/init` missing) as it will be waiting for `stdin`
compared to quitting with error if the file just doesn't exist
Fixes #3006
2023-01-22 11:48:59 +01:00
Jordan Harband
f36516b472
[Tests] move install script tests to github actions
2022-10-26 14:47:18 -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
Thomas Levine
fe06825a96
[tests] Update urchin repository link
2022-12-25 10:38:26 +00:00
Jordan Harband
a60ac08a80
[actions] allow nvm to be installed
2022-12-26 13:22:07 -08:00
Jordan Harband
552db40622
v0.39.3
v0.39.3
2022-12-23 12:57:56 -08:00
Jordan Harband
788c0a425e
[meta] use HEAD instead of master where possible
2022-12-23 12:53:40 -08:00
Martin
f439acda4a
[New] nvm use
/nvm install
: add --save
option
...
Fixes #2849 .
Co-authored-by: Martin <maartin00000@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2022-08-29 16:01:36 +01:00
Ally Summers
dd89af53f5
[patch] Fix issue where zsh global aliases would break nvm help
...
Fix issue with the color codes in the nvm help text where zsh global aliases would display an inline error in the nvm help text.
2024-07-26 03:35:55 +10:00
David Welch
bd090ef7f8
[New] Add support for NVM_AUTH_HEADER
env var
...
Closes #3366
Co-authored-by: David Welch <david@davidwelch.co>
Co-authored-by: Andre Kradolfer <narfdre@gmail.com>
2024-06-21 08:55:22 -06:00