Jordan Harband
0ec2ca979c
[Tests] update travis to use focal
...
- xenial can't build node 18
- bionic can't build node 0.6 or 18
2022-10-26 11:12:19 -07:00
Jordan Harband
b86c91efe3
[actions] fix `latest-npm` tests so they use this repo’s nvm instead of the last published one
2022-12-22 15:27:46 -08:00
Jordan Harband
ac357c59ef
[Fix] `nvm install-latest-npm`: npm v6.14.18 can not be installed from npm < v4.4.4
2022-12-21 14:28:15 -08:00
Jordan Harband
abe5e30a9d
[shellcheck] remove duplicate function
2022-12-22 13:00:12 -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
e6fa80cb61
[Dev Deps] update `doctoc`, `markdown-link-check`, `replace`, `semver`
2022-10-26 10:13:39 -07:00
Jordan Harband
1f4bb91ae6
[Fix] ensure this variable is bound
...
Fixes #2926
2022-10-26 10:12:06 -07:00
Jordan Harband
924d77cc90
[Fix] `debug`: correct mistaken `-V` to `--version` from #2922
2022-10-24 10:51:20 -07:00
ryenus
095a4ca655
[Fix] `debug`: `awk`: not an option: `--version`
...
On Debian, the default awk/mawk doesn't support the '--version' option;
instead there's mawk-specific '-W version'.
2022-10-21 16:48:00 +08:00
ryenus
9721791563
[Fix] grep: warning: stray \ before /
...
No need to escape the `/` char in a grep pattern.
This is to fix the below error when using newer grep with `nvm_command_info`
> $ nvm_command_info curl
> grep: warning: stray \ before /
> /usr/bin/curl
This happens with at least GNU grep 3.8 version.
2022-10-20 10:49:43 +08:00
ryenus
89d6cdd6cf
[Fix] improve backward compatibility for non-gnu awk
...
Adding function alen(arr) since length(arr) is GNU extension.
Fixes #2916
2022-10-18 11:25:12 +08:00
Jordan Harband
df84c77a81
[actions] update some actions deps
2022-10-16 17:51:14 -07:00
epoweripione
fe6268c021
[Fix] `nvm install` error `unknown condition: -ne`
...
Fixes #2914
Co-authored-by: epoweripione <siyuwuxin@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2022-10-15 20:25:52 +08: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
0ccd099bff
v0.39.2
2022-10-13 16:25:25 -07:00
Jordan Harband
f062cca179
[Refactor] nvm install/`nvm_install_default_packages`: move "get" logic inside helper
2022-10-13 15:03:36 -07:00
Jordan Harband
0698ede92d
[Tests] update test mocks
2022-10-13 12:08:31 -07:00
Jordan Harband
71a73b17cf
[Fix] `--help`: proper default `NVM_COLORS` info
2022-10-13 13:34:43 -07:00
Jordan Harband
0ae8409f4f
[Fix] `nvm install-latest-npm`: ensure npm 9 does not install on unsupported nodes
2022-09-08 14:59:25 -07:00
ryenus
5e9791c4f8
[perf] `nvm_print_versions`: re-implement using awk
...
reducing `nvm ls-remote` from almost 20s to below 2s.
Signed-off-by: ryenus <ryenus@gmail.com>
2022-06-05 13:27:03 +08:00
Maxim Lepekha
7c929f8742
[Fix] `install.sh`: support `~/.zprofile`
2022-09-21 22:38:50 +02:00
Josh Kelley
c6269e0ac2
[Fix] Don't override Mac M1 architecture for node ^14.17
...
Fixes #2743
Co-authored-by: Josh Kelley <joshkel@gmail.com>
Co-authored-by: Raz Luvaton <16746759+rluvaton@users.noreply.github.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2022-03-30 10:53:01 -04:00
BatemaDevelopment
28b3b0e324
[readme] Update Alpine Linux Section
...
- Update install directions to include `python3`, instead of `python2`, which is deprecated since Alpine 3.13.
2022-09-27 06:44:13 -04:00
Peter Dave Hello
b133f6619d
[Dockerfile] Update base image from Ubuntu 18.04 to 20.04, cc #2877
2022-09-07 16:36:29 +08:00
Robert Shuford
4893128c61
[readme] optimize calling of `nvm version` in zsh
2022-08-25 21:12:36 -04:00
etienne-miralytik
8fd948001e
[readme] Fix Ansible Linting Errors
...
Fixes #2860 .
This fixes these two linting errors:
- fqcn-builtins: Use FQCN for builtin actions.
- name: All names should start with an uppercase letter. (name[casing])
2022-08-24 18:58:38 +02:00
Jer Wilson
5a4e9184f1
[readme] cdnvm(): handle failed dir change
...
If cd command fails, return whatever cd returned, instead of marching ahead
2022-06-27 17:21:45 -07:00
SnipUndercover
95269ff055
[readme] Fix Git Install instruction list structure
2022-05-26 01:13:00 +02:00
Danny Neumann
2cfced740a
[Docs] Add note about creating .bashrc file *as well as* .bash_profile.
...
My problem was that I didn't have EITHER file, and hopefully the notes will help someone else reading the docs.
2022-01-27 10:53:36 -08:00
Robert Shuford
35758b75ed
[Tests] github actions removed homebrew and broke shellcheck
...
See https://github.com/actions/runner-images/issues/6283
2022-10-06 11:13:47 -04:00
Robert Shuford
d451e261ed
[Tests] node 18 no longer builds in travis-ci
2022-10-05 10:09:00 -04:00
Jordan Harband
a82edf40ba
[Robustness] avoid a clobbered `ls`
...
Fixes #2824
2022-06-02 12:25:55 -07:00
Jordan Harband
ef3b20c21e
[readme] add logo
2022-04-22 16:53:49 -07:00
Dani Schuhman
01886b4243
[meta] Update CODE_OF_CONDUCT to current version
2022-04-15 10:56:26 -04:00
Jordan Harband
bd083ff367
[readme] minor cleanup
2022-04-11 14:09:37 -07:00
deepakchethan
9e884b8d7b
[Fix] `nvm install`: show proper version in `.nvmrc` install instructions
2022-03-22 18:58:18 +05:30
Ponder
7d86701067
[readme] `fish`: send output from `load_nvm` to `/dev/stderr`
2022-04-01 13:00:58 -04:00
legendecas
c367d7daa0
[Docs] fix fish load_nvm variable interpolations
2022-03-28 23:28:53 +08:00
Antony Tse
d157cac689
[readme] Correct typos in "Macs with M1 chip" section
2022-03-09 09:41:48 +00:00
Jordan Harband
39d9a42c35
[Fix] `install.sh`: error out if the install instructions are not followed
2022-02-08 10:40:11 -08:00
Kai
2c0c34f10e
[Docs] HTTP => HTTPS
2022-01-16 14:25:11 +01:00
Jordan Harband
c2f740ab38
[patch] HTTP -> HTTPS
2022-01-18 12:49:57 -08:00
Jordan Harband
6cfaede5a0
[Fix] `install`: better error message when xcode command line tools are needed
...
Fixes #2697 . Fixes #2663 .
2021-11-27 22:16:14 -08:00
Luke Arms
1875fe8b40
[Fix] avoid OpenBSD `nvm install` error when /sbin/init doesn't exist
...
`nvm install` fails with "Binary download failed, trying source" when
- running on Bash;
- errtrace (`set -E`) is enabled;
- an ERR trap uses `exit` to return a non-zero status; and
- /sbin/init doesn't exist.
Resolved by moving `ls -dl /sbin/init` to the following `if` statement.
In this context, returning non-zero isn't an error and the ERR trap
isn't executed.
2021-12-26 15:31:53 +11: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
lsfxz
fb4538b360
[Fix] add missing `local` (handle nonexisting /sbin/init a bit more cleanly)
2021-11-17 16:59:53 +01:00
Luke LaFountaine
d004c6b064
[readme] clarify instructions for running Node on M1 Mac
2021-12-03 16:52:18 -05:00
Bob Bregant II
79ad72d116
[Fix] Update `nvm_extract_tarball` to support OpenBSD
...
Fixes #2660 .
2021-12-19 02:58:18 +00:00
Bob Bregant II
ccd442d833
[Refactor] add `nvm_extract_tarball` to consolidate extraction logic
2021-12-19 02:58:18 +00:00
Jordan Harband
9600617c52
v0.39.1
2021-12-17 14:55:52 -08:00