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
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
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
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
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
Jordan Harband
4c7d899447
[Tests] ignore travis-ci env vars; improve debug output
2024-07-26 12:04:07 -07:00
Jordan Harband
e597bb208e
[Tests] use a better JSON parsing implementation
2024-06-10 11:33:12 -07:00
Jordan Harband
29dce5edfd
[New] allow .nvmrc
files to support comments
...
In theory, `npx nvmrc` can now be used to validate an `.nvmrc` file that `nvm` will support. Allowances have been made for future extensibility, and aliases may no longer contain a `#`.
Fixes #3336 . Closes #2288 .
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Yash Singh <saiansh2525@gmail.com>
2024-06-07 10:13:00 -07:00
Matteo De Wint
93e0070a44
[Fix] nvm_die_on_prefix
: filter prefixed env vars on name only, ignoring values
2020-11-28 15:16:35 +01:00
Jordan Harband
ebbd30eb7f
[Fix] nvm install-latest-npm
: ensure npm 8 does not install on unsupported nodes
2021-10-05 15:13:45 -07:00
Kaito Udagawa
53f9ba8336
[Refactor] Use awk for path stripping
...
This works with paths which contains regex meta characters.
2016-12-23 01:03:41 +09:00
Jordan Harband
07c02d43fe
[Tests] nvm install-latest-npm
: node < 0.10 breaks with npm with dropped support for TLS < 1.2
2021-09-29 10:47:34 -07:00
Jordan Harband
fa63399991
[Tests] postcss
v7.0.36 stopped working on node 0.10; downgrade to v4
2021-09-09 00:05:09 -07:00
Jordan Harband
c169d622ff
[Tests] update mocks
2021-09-04 08:57:36 -07:00
Jordan Harband
5b77f7d023
[Fix] nvm ls
/nvm alias
/nvm_list_aliases
: zsh: when no LTS aliases, no error
...
Fixes #2575 .
2021-09-01 10:06:32 -07:00
Thomas Geirhovd
e98e9d9e4b
[Fix] install
: Detect correct profile based on $SHELL var
2021-08-12 15:51:32 +02:00
nmarghetti
f2582275f6
[New] maybe support Windows with WSL, MSYS, Cygwin
2021-01-02 00:03:24 +01:00
nmarghetti
d118be8fd4
[Tests] Add unit tests for nvm_is_version_installed
2021-02-21 18:48:43 +01:00
Botspot
779a34e6a9
[Fix] nvm_get_arch
: Rasbperry Pi: armv7l with arm64 kernel, get correct arch
...
Co-authored-by: Botspot <54716352+Botspot@users.noreply.github.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Sladyn Nunes <sladynnunes98@gmail.com>
2021-03-22 14:56:25 -05:00
Sladyn Nunes
2b5e53fcd5
[Fix] install script: check the proper version; fetch tags also
...
Co-authored-by: Sladyn Nunes <sladynnunes98@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2021-04-01 19:06:40 +05:30
Jordan Harband
f534fde760
[Tests] node-gyp
v8 breaks this test
2021-04-06 12:36:07 -07:00
Rodrigo Espinosa de los Monteros
4da7f101a2
[Fix] nvm_alias
: ensure lts/-1
returns the one before lts/*
...
Fixes #2461
2021-03-11 16:22:31 -05:00
Jordan Harband
641f86879f
[Tests] update mocks
...
- make call count test depend on mocks
2021-03-11 13:06:41 -08:00
Vesa Vilhonen
52f67b3677
[Fix] exec
: --
should stop argument parsing
...
Co-authored-by: Vesa Vilhonen <vesa@vilhonen.com>
Co-authored-by: Sladyn Nunes <sladynnunes98@gmail.com>
2020-11-20 13:06:28 +02:00
Sladyn Nunes
4fdef427e4
[New] install
: add -b
flag to skip building from source
...
Fixes #2114 .
2021-02-16 19:34:23 +05:30
nmarghetti
7f6c0c053a
[Refactor] add nvm_install_binary_extract
2021-01-02 00:03:24 +01:00
nmarghetti
d396181ffb
[Refactor] add nvm_get_artifact_compression
2021-01-02 00:03:24 +01:00
Dena Burd
2fea55fdb5
[Tests] add test that fails without fix for #2362
2021-01-15 14:07:47 -08:00
nmarghetti
502089ae30
[New] install script: Allow installation from other repository also for git method
2021-01-14 00:10:19 +01:00
nmarghetti
60e78d3ec1
[Tests] Add unit test for nvm_download
2021-01-13 02:26:38 +01:00
nmarghetti
9f3397afa4
[Tests] add nvm_grep
to install script, fix tests
2021-01-08 18:54:40 +01:00
Jordan Harband
436cda247e
[Fix] remove nvm_supports_source_options
...
Fixes #2387
2021-01-07 13:00:26 -08:00
nmarghetti
9849bf494d
[meta] Rename some files to be more cross platform
2021-01-04 00:49:05 +01:00
nmarghetti
4e9df33cb7
[New] install script: Allow installation from other repository
2020-12-27 10:09:29 +01:00
David Moles
d4eba354b5
[Fix] install
: Ignore npm command under $NVM_DIR when checking for global modules
2020-11-30 15:22:24 -08:00
Jordan Harband
3b57dfec8d
Revert "[Fix] nvm_die_on_prefix
: only grep lines starting with env var name" ( #2347 )
...
This reverts commit 21c0c05130d9bdd275f29ccb158fa7103493903a.
Fixes #2360 . Fixes #2364 . Fixes #2366 .
2020-11-27 21:28:12 -08:00
Dena Burd
6848c16d53
[New] Added set-colors
command. See details below:
...
This command allows users to replace default colors with their own custom colors.
- top-level commands modified: alias, ls, ls-remote
- helper functions added: nvm_echo_with_colors, nvm_err_with_colors,
nvm_set_colors, nvm_get_colors, nvm_print_color_code
- functions modified: nvm_print_formatted_alias, nvm_print_versions, nvm_print_alias_path (implicitly), nvm_print_default_alias (implicitly), nvm_list_aliases (implicitly)
We added tests and info on using this command to the README!
Co-authored-by: Dena Burd <29719099+gitburd@users.noreply.github.com>
Co-authored-by: Naomi Quinones <52065567+naomiquinones@users.noreply.github.com>
2020-08-17 14:56:13 -07:00
Matteo De Wint
21c0c05130
[Fix] nvm_die_on_prefix
: only grep lines starting with env var name
2020-11-16 11:35:26 +01:00
Alex Aubuchon
00af6341f7
[Tests] Run fast test suite in clean environment
2020-11-03 19:05:34 -05:00
Jordan Harband
499d303746
[Perf] use
/nvm_die_on_prefix
: replicate npm config algorithm and remove npm config
call
2020-08-24 22:44:25 -07:00
Dena Burd
c72f2c6f21
[Fix] nvm ls-remote
: accept versions that end with a dot
...
Fixes #983 .
2020-09-24 13:46:29 -07:00
Alex Aubuchon
f2c5ce459a
[Tests] Fix nvm unload fast test cleanup
2020-10-22 20:43:36 -07:00
Alex Aubuchon
e77ed07ccc
[Tests] Fix nvm_ls_current
fast test
2020-10-13 12:32:41 -04:00
Dylan Armstrong
e01060fa2c
[Fix] nvm_die_on_prefix
: use directory comparison rather than string
2020-10-09 09:43:21 -05:00
Dylan Armstrong
96069da0d5
[Fix] nvm_ls
: zsh: unset markdirs
and local_options
...
Fixes #2315 .
2020-10-09 09:43:21 -05:00