Commit Graph

2033 Commits

Author SHA1 Message Date
Peter Dave Hello e2195b4c35 [Dockerfile] Use LABEL instead of deprecated MAINTAINER command 2018-07-11 15:13:57 +08:00
JBallin 41dc4218b9 [Docs] add --no-use option to installation 2018-06-17 21:31:56 -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
Joshua Li a5f42d9cea
[Tests] update most mkdirs to use make_fake_{node,iojs} 2018-06-13 10:38:19 -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
Alister Norris 59b0b3942c
[readme] Add quick intro to `nvm`
Allow newbies to get a quick understanding of how `nvm` works right from the start.
2016-12-06 15:14:08 +00:00
Peter Dave Hello 7bbc57355d
[Tests] Print shell version in Travis CI 2017-04-02 07:33:49 +08:00
Alex Sabau 47f0b32155
[readme] Add info to restart bash if verification not working in verification section 2018-02-25 21:46:31 +01:00
James Stroud 91bd22aa57
[readme] fixed small typo afew to a few
also gave more up to date versions for example of  `nvm install` and `nvm which` as well as your pointer section
I love your project by the way.
2021-06-04 15:15:17 -04:00
Tim Connolly ca897ac6d5
[readme] Avoid infinite loop in cdnvm() 2021-09-22 16:25:28 +10:00
Axel Svensson 11d71ab24b
[Fix] Regression in 2dad045
Fixes #2599
2021-09-24 01:56:47 +02:00
Georgi Chochov 4471b6beb6
[readme] remove duplicate word 'run' 2021-09-26 09:47:50 +00:00
Nikita N cc6915e216
[readme] updated automatic call script for bash
Bash terminal was throwing error: `bash: cd: too many arguments` when directory had some spaces in the name.
The quotes around `$PWD` fixes this issue
2021-09-21 23:57:25 +03:00
Jordan Harband b6b6e685a3
[Fix] `set -a`: when this option is set, some `sh` shells break
Fixes #2574
2021-09-14 23:26:31 -07:00
Gilad Barnea d91087c333
[Fix] `bash_completion`: be robust when `cd` is overridden 2021-09-13 15:26:40 +03:00
Step Security 59532c74c6
[actions] restrict permissions for `GITHUB_TOKEN` 2021-09-10 06:09:45 +00:00
Jordan Harband 2dad0455ec
[Fix] `nvm_die_on_prefix`: avoid grepping env functions in bash
ironically, nvm itself has functions that matched this grep.
2021-09-08 23:49:16 -07:00
Jordan Harband f03f69508e
[Fix] `reinstall-packages`: handle global symlink locations properly
This is a regression caused by npm ls -g in npm 7 no longer returning absolute paths.
2021-09-07 10:14:18 -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
Kevin Stolp 291c7c4c47
[Fix] `nvm_ls_remote_index_tab`: handle long version lists 2021-09-03 23:40:13 -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
Jordan Harband fd78c0101e
[Tests] disable `fail-fast` 2021-08-31 15:28:41 -07:00
Peter Dave Hello 678a827978 [Dockerfile] Update dated base image from Ubuntu 16.04 to 18.04 2021-08-31 02:03:30 +08:00
IYaksha 62d45af17e
[readme] fix typo regarding docker image base in Dockerfile 2021-08-30 19:20:03 +05:30
Jordan Harband e0df5e92e3
[Robustness] avoid IFS shenanigans: quote arg count/return codes 2021-08-24 09:34:01 -07:00
Thomas Geirhovd e98e9d9e4b
[Fix] `install`: Detect correct profile based on $SHELL var 2021-08-12 15:51:32 +02:00
Jordan Harband 812d6e4ab4
[actions] fix typo in dockerfile_lint job 2021-08-05 08:35:22 -07:00
Jordan Harband 7f2ccd51d4
[Fix] `nvm_get_arch`: suppress error output if `/sbin` does not exist
Introduced by #2469
2021-08-05 08:05:54 -07:00
Jordan Harband 7ba49f8f71
[actions] use `node/install` instead of `node/run` 2021-07-27 22:23:56 -07:00
Xandor Schiefer eabd7ab13d
Respect previously nvm-loaded node version when sourcing 2016-11-14 19:18:24 +02:00
Jordan Harband b111436fde
[Tests] test `nvm install-latest-npm` on io.js v2 2018-06-06 22:49:56 -07:00
Spike Grobstein 9854928ba9
[New] `install.sh`: allow user to explicitly opt out of nvm adding the source string
this is done by checking if the user supplies `PROFILE=/dev/null` when running `install.sh`, the `nvm_detect_profile` function will not output any strings, causing `nvm_do_install` to skip adding `SOURCE_STR`.
2018-05-03 08:22:07 -07:00
Jordan Harband c50ea6f0a3
[shellcheck] quote variables in for loops to avoid unintentional expansion 2018-05-31 23:56:20 -07:00
Jordan Harband 628d4fac84
[shellcheck] use `{ …; }` instead of `(…)` to group test commands 2018-05-31 23:49:15 -07:00
Jordan Harband ef35bc4cb6
Merge pull request #1823 from SrHuevo/master
fix for .nvmrc script
2018-05-30 20:08:07 -04:00
SrHuevo d08d8607f5
fix for .nvmrc script 2018-05-30 09:02:29 +02:00
Jay Williams e7b53a01fd
Grammar update 2018-05-26 23:17:08 +01:00
Siddharth Sakhadeo b81c120e0c fix failing if check in autoload script 2018-05-25 15:33:42 -07:00
Jordan Harband 57ec311f53
[Fix] `ls-remote`: fix issues in zsh when using a mirror with a ton of entries
Merge pull request #1818 from adedomin/master
2018-05-24 14:08:20 -04:00
Jordan Harband 38b32c27f3
[Tests] update mock data 2018-05-23 23:48:50 -04:00
adedomin 7a5ff0d133
[Fix] `ls-remote`: fix issues in zsh when using a mirror with a ton of entries
Fixes #1813
2018-05-23 19:47:11 -04:00
Jordan Harband f5f029c409
[Fix] “unstable” alias: when there’s no “unstable” minors, output “N/A” 2018-05-24 12:23:02 -04:00
Jordan Harband c465a83518
[Tests] `nvm ls-remote`: add test for overly-large tab file 2018-05-23 23:48:04 -04:00
Peter Dave Hello 62ee7cf998
[Refactor] `bash_completion`: Improve coding style 2018-05-21 19:59:01 +08:00
Peter Dave Hello 113d807e5a
[New] Support `--no-progress` for `nvm install`
Closes #1079.
2017-03-10 01:07:16 +08:00
Jordan Harband 3fc7b737f5
[Fix] `install -s`: `zsh`: ensure `shwordsplit` opt is set
Fixes #1719.
2018-04-29 15:35:39 -07:00
Josh Sleeper 04c27e23fe
add --tags to git fetch in manual upgrade
facilitates older `git` fetching tags so that it can actually upgrade properly
2018-04-25 14:55:31 -07:00