Jordan Harband
833530eb12
[Tests] attempt to fix failing test
2023-11-03 15:51:24 -07:00
Jordan Harband
4bdd57ba0f
[Fix] install.sh: when NVM_INSTALL_GITHUB_REPO is set, issue a warning
...
This should only annoy those testing their PRs; real users should never set this env var
2023-11-02 21:10:09 -07:00
Jordan Harband
d02ddcac2c
[Fix] nvm_get_mirror: disallow some non-URL characters
...
This should be improved in the future, but is fine for now
2023-11-01 21:01:28 -07:00
Andrius Solopovas
ef7fc2f2c0
[Fix] nvm_get_arch: proper value for alpine linux
2023-09-30 23:54:11 +01:00
Jordan Harband
b64e5474ea
[Tests] ensure windows tests install a node that actually works
...
- disable failing Alpine tests
- disable Ubuntu-18.04 tests on node 18+
- add Ubuntu-20.04 tests
2023-11-01 16:12:12 -07:00
Jordan Harband
1f970ccb7a
[Fix] nvm_normalize_lts: switch from expr to case
...
avoids `expr: warning: ^lts/-[1-9][0-9]*: using ^ as the first character of a basic regular expression is not portable; it is ignored`
2023-11-01 12:24:29 -07:00
Jordan Harband
6743aef70c
[New] nvm_resolve_alias: only resolve one line of a multiline alias file
2023-10-23 14:41:14 -07:00
Jordan Harband
10cdda081f
[Tests] update test mocks (new LTS, iron)
2023-10-25 15:39:12 -07:00
Jordan Harband
8241287349
[New] aliases: skip leading blank lines in alias file
2023-10-23 14:06:19 -07:00
Jordan Harband
6aeab3349c
[Robustness] nvm_list_aliases: avoid overwritten sort
2023-10-23 14:05:37 -07:00
Jordan Harband
bfce5889f7
[Test] update test mocks
2023-10-23 14:53:39 -07:00
Justin Dhillon
fd412645ca
[readme] add section on bare nvm install
2023-10-23 10:25:26 -07:00
Jordan Harband
2426a0c4b2
[security] add prose explaining OpenSSF CII Best Practices badge results
...
Fixes https://github.com/openjs-foundation/security-collab-space/issues/35 .
2023-10-20 15:58:27 -07:00
Michael Di Prisco
8a83b36688
[readme] missing parenthesis
2023-10-06 02:36:26 +02:00
Jordan Harband
414e8d426f
[Tests] switch cygwin mirror
2023-10-09 14:50:40 -07:00
zhangdiandian
1b102ab9a6
[Tests] fix filename typo
...
Signed-off-by: zhangdiandian <1635468471@qq.com >
2023-10-09 07:31:04 +00:00
Peter Dave Hello
d4a733e4d8
[Dockerfile] Remove apt src disabling, no longer needed
2023-09-19 20:03:01 +08:00
Nam
1de3333651
[Dockerfile] [Fix] add missing leading slash in path
2023-09-18 17:42:40 +07:00
Jordan Harband
1eaaada499
[Perf] nvm_check_file_permissions: do not traverse into symlinks
2023-08-25 22:49:41 -07:00
Jordan Harband
c92adb3c47
v0.39.5
2023-08-21 21:10:10 -07:00
Oliver Henshaw
15eba7b7e6
[Fix] nvm_strip_path: Preserve leading/trailing colons
...
Path lists in environmental variables often give special meaning to
empty entries (e.g. in PATH or MANPATH). These are represented by
leading or trailing colons, or by doubled colons in the middle of the
list.
Adjust the awk invocation to correctly deal with trailing colons by
printing the separator before every field except the first, and then
printing the final separator that is read from the input - this will
either be a colon or the null string. This preserves leading and
trailing colons in all cases while not adding extra colons in the wrong
place.
Add test to confirm the correct behaviour.
Fixes #3144
2023-06-21 15:47:52 +01:00
heungjun.park
a1601eddb8
[readme] add examples of setting specific versions as default
...
Co-authored-by: heungjun.park <rockheung@gmail.com >
Co-authored-by: Jordan Harband <ljharb@gmail.com >
2023-07-20 17:39:37 +09:00
Jordan Harband
324b81a722
[Fix] allow checksums to pass with a leading backslash
...
See https://unix.stackexchange.com/a/555061/137489
2023-08-06 14:51:48 +12:00
Jordan Harband
55075db96d
[Tests] add some nvm_do_install tests
2022-12-27 22:57:07 -08:00
Jordan Harband
4618ce0aa1
[Tests] a cleaner name for the windows tests
2022-12-27 22:32:09 -08:00
Jordan Harband
3afdce0a2c
[Fix] nvm install-latest-npm: ensure npm 10 does not install on unsupported nodes
...
See https://github.com/npm/cli/pull/6674
2023-07-26 13:21:03 -07:00
Jordan Harband
8fbf8ab694
v0.39.4
2023-07-24 18:29:54 -07:00
Jordan Harband
4fc91d408c
[Dev Deps] update markdown-link-check, semver
2023-07-24 18:24:39 -07:00
Emmanuel Ogbizi
f86847fdd2
[readme] add nvshim tool alongside avn
2020-04-15 19:27:44 -04:00
emmanuel-ferdman
9a769630d7
[readme] fix typo in resolv.conf filename
...
Signed-off-by: emmanuel-ferdman <35470921+emmanuel-ferdman@users.noreply.github.com >
2023-06-18 15:41:40 +03:00
Augustin Mauroy
c26422a03e
[readme] Update logo header
2023-06-05 10:34:20 +02:00
milesfrain
7c3cd81ad9
[readme] Add instructions on how to install without editing shell config
...
I had to dig into #2410 to learn about the `PROFILE=/dev/null` technique to install without appending to my shell config. Figured this note would be good to add in the main installation docs.
Also added a note on how to do this as a one-liner which was not obvious for me.
2023-04-25 13:49:16 -07:00
Deniz Eren Evrendilek
0ebda7eea3
[meta] Remove unavailable testing script
...
Fixes #3104
2023-05-01 11:23:38 -07:00
Deniz
5410ae57ba
[Fix] fix node download link for armv8l
...
Fixes #3035
2023-04-29 16:41:31 -07:00
Spike Grobstein
70aa611abc
[Fix] nvm exec: no longer error with '-q: invalid option' for zsh users
...
the `nvm.sh` file assigns and exports an `NVM_CD_FLAGS` variable if it
was sourced from a zsh shell. the fact that it's exported means that
it'll be assigned in all child processes, including the `nvm-exec`
script, which uses bash as the interpreter.
Bash's `cd` command doesn't have a `-q` flag, so if the `NVM_CD_FLAGS`
is assigned `-q`, the script will error out and incorrectly claim that
the node version isn't installed.
this also manifests itself in the `nvm exec` command.
Example:
```console
$ nvm exec 16.14.0 npm --version
Running node v16.14.0 (npm v8.3.1)
/Users/<ME>/.nvm/nvm.sh: line 28: cd: -q: invalid option
cd: usage: cd [-L|[-P [-e]] [-@]] [dir]
both the tree and the node path are required
N/A: version "v16.14.0 -> N/A" is not yet installed.
You need to run "nvm install v16.14.0" to install it before using it.
```
To address this, we unset the `NVM_CD_FLAGS` at the start of the
`nvm-exec` script, before loading `nvm.sh`.
2023-04-21 20:40:01 -07:00
Jordan Harband
c08b38a2a4
[Fix] nvm_print_npm_version: if npm exists but its node crashes, do not print the npm version
2023-04-28 10:57:57 -07:00
Jordan Harband
a07cd41af1
[Fix] nvm_ls_current: when node is present but crashes immediately, echo "none"
2023-04-28 10:55:03 -07:00
JC (Jonathan Chen)
d1a22a63bd
[readme] cdnvm function: fix shellcheck errors
...
Resolves #3081
2023-04-09 09:21:56 -04:00
Leo Zlotnikov
0d9b5c2a00
[Fix] fix directory traversal when workdir path is not readable
2023-04-08 17:24:41 +01:00
Peter Dave Hello
44e1d9c911
[Dockerfile] Update base image from Ubuntu 20.04 to 22.04, cc #2877
2023-04-06 01:22:10 +08:00
Jordan Harband
b1331c20b0
[Tests] add unit tests for nvm_download_artifact
2023-04-06 09:23:33 -07:00
Peter Dave Hello
766341fca1
[readme] Update Travis CI badge and link url
...
travis-ci.org is deprecated and replaced by app.travis-ci.com for a while
2023-04-03 22:50:48 +08:00
Jordan Harband
946da2e743
[Dev Deps] update markdown-link-check
2023-03-22 16:20:48 -07:00
Dennis
dde04f9392
[Fix] recognize 32Bit docker container and use x86 arch
2023-03-22 14:52:40 -07:00
William Baker
ffcb5213e2
[Perf] Improve performance of listing aliases
...
Fixes #3054
2023-03-10 00:53:29 -05:00
Jordan Harband
ea3b65f02e
[Tests] npm bin has been removed
2023-03-21 13:31:52 -07:00
Qasim Abdullah
ee6f766712
[Tests] downgrade python to v2 on travis
...
- TCI Support
- python 2.7
- skip build-essential
2023-03-21 22:45:38 +05: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
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
Dani Schuhman
333c52ec04
[meta] Improve contributors documentation
...
Incorporates old Contributing.md with more thorough details on how to contribute, create bug reports, set up the dev environment, and creating PR's itself.
2022-04-15 11:59:16 -04:00
mattjaf
59f448d595
[Docs] added WSL troubleshooting with solution to (6) Could not resolve host: raw.githubusercontent.com
...
Fixes #2958 .
2022-11-30 19:25:20 -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
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
Jordan Harband
5cc74a6736
[Tests] fix failing test
2021-12-17 13:21:29 -08:00
Jordan Harband
aa57406ede
[Fix] ensure unload removes nvm_normalize_lts
2021-12-17 13:55:14 -08:00
Jordan Harband
0f62be6fdd
[Dev Deps] update markdown-link-check
2021-12-17 12:37:15 -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
Varun Sharma
6cc90a4b8d
[actions] add step security runner
2021-11-22 07:20:50 -08:00
Jordan Harband
81fc05684d
[Tests] nvm_get_download_slug: add unit tests
2021-12-02 23:33:20 -08:00
Ankit Kumar
328dd5004e
[Fix] nvm_get_download_slug: better architecture selection for M1 Macs
...
If the node version is below 16.0.0 then nvm will select x86_64 architecture, else arm64 architecture.
2021-11-21 15:59:39 +05:30
Jérôme Foray
4856407d26
[Fix] install: fix method=script install condition
...
Fixes #2665 ; see 8937917
2021-11-30 16:07:22 +01:00
Jordan Harband
275001b066
[Tests] fix windows WSL tests
2021-11-25 19:35:39 -08:00
Jordan Harband
89379176ac
[Fix] install: properly check for curl/wget
2021-11-25 14:26:35 -08:00
Robert Elliot
30486b9bd9
[readme] Balance the if statement in bash example
...
Nesting the `elif` at the same level as the `if` and `fi` makes it clear which code applies to which branch (no .nvmrc file / found .nvmrc file).
I wasted a while looking at it trying to work out how it did anything if there was a .nvmrc file, because obviously the `if` didn't match and I couldn't see the `elif` branch.
2021-11-22 14:34:43 +00:00
Ian Grayson
e9b26938b9
[readme] Describe another failure case for installing node versions from source on mac arm64 machines.
...
It seems to be related to https://github.com/nodejs/node/issues/39313 (which describes a similar issue).
2021-11-15 04:23:42 -08:00
Jordan Harband
ccd98f7fcb
[Dev Deps] update doctoc
2021-11-19 08:59:37 -08:00
Jordan Harband
2f40eeef2e
[shellcheck] apply v0.8.0 updates
2021-11-19 08:53:43 -08:00
Nix
c9e7bb2da1
[Fix] install script: Add --no-pager option to git branch
2021-10-23 22:23:55 +09:00
Wu Jiang
a284af9228
[New] Add OpenBSD support
2016-04-14 20:57:10 -04:00
Jordan Harband
5b3d188b83
v0.39.0
2021-10-07 10:11:35 -07:00
Jordan Harband
e8f485bb63
[Dev Deps] update doctoc, markdown-link-check
2021-10-07 10:08:53 -07:00
Simon East
055af09d24
[readme] link "Windows WSL" down to the "important notes" section
2021-05-04 15:56:53 +10: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
Felipe Alexandre Rodrigues
10189bf4cb
[readme] Add bash_completion in "manual install" section
2021-10-05 10:47:56 -03:00
Jordan Harband
da5baa005b
[Tests] use a matrix on the nvm install-latest-npm tests
2021-10-05 16:14:05 -07: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
Rick Button
2bda9fd97e
[Tests] blacklist expired LetsEncrypt CA
...
workaround for TravisCI's ubuntu 16.04
2021-10-06 01:50:44 -04:00
Peter Dave Hello
7b530edd3a
[Docs] Use absolute URL for #606 in README.md
...
Since markdown-link-check hasn't support relative links, to make the
test passed, move this link to use absolute URL so that we can introduce
the new test. cc tcort/markdown-link-check#10
2017-11-05 04:07:37 +08:00
Peter Dave Hello
1afd4f3566
[Tests] Add markdown-link-check script
...
This uses the npm package `markdown-link-check` to check if all the links in the documentation are alive.
2017-11-05 04:06:36 +08: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
Jordan Harband
eed0d0e85c
[meta] add project charter and governance
2021-04-26 12:56:08 -07:00
Jordan Harband
ad24e96fda
[shellcheck] disable additional -x warning from v0.7.2
2021-05-03 14:26:45 -07:00
Jordan Harband
b5165ecbe4
[shellcheck] update for new warnings in v0.7.2
2021-05-03 14:19:31 -07:00
Jordan Harband
fc87226b23
[readme] move License and Copyright notice sections to the bottom
2021-04-26 11:46:12 -07:00
Jordan Harband
f3caa06420
[meta] add OpenJS Foundation copyright notices/links
2021-04-26 11:42:03 -07:00
Jordan Harband
1527ac9d21
[readme] remove redundant "license" section text in favor of LICENSE.md
2021-04-26 11:41:29 -07:00
Jordan Harband
bd0ac1e96d
[meta] add SECURITY.md
2021-04-22 22:28:41 -07:00
akefirad
117486d4a7
[Fix] bash_completion: check if compinit is called before calling it
...
Fixes #2489 .
2021-04-16 18:53:35 +02:00
Jordan Harband
07253ecd51
[actions] adjust shellcheck/windows tests to9 have a final "done" job
2021-04-15 22:34:40 -07: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
Leandro Facchinetti
5fcec573eb
[readme] Improve README about Macs with M1 chips
...
Mention that you must have Rosetta 2 installed and provide instructions on how to do it.
2021-04-05 16:25:41 +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
Jordan Harband
3fea5493a4
v0.38.0
2021-03-29 12:49:10 -07:00
Jordan Harband
cfc7edac65
[Dev Deps] update dockerfile_lint, eclint, replace, semver
2021-03-29 12:49:02 -07:00
Jonathan Perret
c26bd935c0
[readme] M1 macs: Add nvm use command to clarify that it is required
2021-03-24 10:50:38 +01:00
Jonathan Perret
621ccc5d13
Clarify the M1 shell instructions
...
The instructions seemed to encourage the misconception that `arch -x86_64 zsh` somehow modifies the default architecture for `zsh`, an operation which would need to be "reverted".
In fact, `arch -x86_64 …` merely spawns a new process under the selected architecture.
2021-03-23 14:37:04 +01:00
Andrew Shield
b19d8dbbba
[readme] Update source command to include s in zsh
2021-03-18 16:07:24 +13:00
Jordan Harband
0579718308
[Fix] install script: define nvm_echo
...
- refactor `echo` to use `nvm_echo`
Per 589c2377fb (r48360520)
2021-03-17 09:07:15 -07:00
Marcin Kłopotek
8884fd32f6
[readme] Add nvs as one of the Windows alternatives
...
Co-authored-by: Jordan Harband <ljharb@gmail.com >
2021-03-01 13:28:09 +01:00
Sladyn Nunes
25d2ebf2f8
[readme] add headings to certain sections
...
Fixes #2413 .
2021-03-03 20:47:44 +05:30
Jordan Harband
9cb6a2b614
[Tests] ensure doctoc action fails when it should
2021-03-17 08:11:37 -07:00
artforlife
216ccd62f7
[readme] add commands to help troubleshoot without closing the current shell
...
Co-authored-by: artforlife <artforlife@users.noreply.github.com >
Co-authored-by: Sladyn Nunes <sladynnunes98@gmail.com >
2020-04-26 12:57:50 -05: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
Lukman
1081ed161b
[New] install: add parallel build support for openbsd
...
Co-authored-by: Lukman <lukmaan.me@gmail.com >
Co-authored-by: Sladyn Nunes <sladynnunes98@gmail.com >
2020-12-26 22:23:35 +05:30
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
farmer
d9b11ba208
[readme] update cdnvm implementation
2021-02-19 21:12:03 +08:00
Jordan Harband
87f37909f2
[meta] add CODE_OF_CONDUCT.md
2021-02-15 14:33:44 -08:00
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
shiyutim
a5742d4e9e
[readme] add install error tips
2021-01-07 10:51:33 +08:00
David Zulaica
d5c1441a83
[readme] Update M1 macOS troubleshooting instructions
2021-02-13 03:41:41 -08:00
Arshath
0fad5ec575
[readme] quote asterisk in shell command on --latest-npm example
2021-02-05 19:45:26 +05:30
Jordan Harband
0d14d7f6b7
[Dev Deps] update doctoc, replace, semver
2021-02-01 14:31:06 -08:00
Jordan Harband
4c11ab1ac6
[actions] update workflows
2021-02-01 14:39:36 -08:00
Matt Calthrop
49e806c77a
[readme] Add macOS troubleshooting instructions for M1 chip
2021-01-21 20:45:12 +00:00
Brandon L. Reiss
3243f7a082
[Fix] Fix potential unbound var error on nvm install
...
Fixes #2420 . When using `nvm install` with an already installed
version, Bash (and potentially other shells) may emit an unbound
variable error when `set -u` is set. The presence of the error depends
on specific shell versions, but appears to happen in MacOS 11.1 (Big
Sur) using a recent Bash version installed via Homebrew (as of this
writing).
The fix accesses `ALIAS` correctly for the case where it is not set by
an `alias` option to `nvm install`.
2021-01-27 13:12:17 -05:00
Jordan Harband
015623ee6d
[Fix] avoid parse error with common omz global aliases, in nvm_print_color_code
...
Merge pull request #2365 from hosamaly/patch-1
2021-01-20 13:47:17 -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
589c2377fb
[Fix] install script: sync nvm_download implementation from nvm.sh
2021-01-13 02:26:38 +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
hjoshi123
f3fa157456
[Fix] bash_completion: move compinit before bashcompinit
2020-12-29 08:35:08 +05:30
hjoshi123
6982dee071
[Docs]: Updated README.md to include homebrew unsecure dirs warning
...
Closes #2361 .
2020-12-22 17:29:32 +05:30
Hosam Aly
31c5c5c45a
[Fix] avoid parse error with common omz global aliases, in nvm_print_color_code
...
Fixes #2362 . Fixes #2372 .
2020-11-27 23:17:07 +00:00
Dena Burd
2fea55fdb5
[Tests] add test that fails without fix for #2362
2021-01-15 14:07:47 -08:00
Shiming
10399ed1bd
[Docs] source ./nvm.sh instead of nvm.sh, for zsh
...
Fixes #2204 .
2020-04-27 16:11:09 +08:00
Jordan Harband
3c079f16c7
[shellcheck] fix silly shellcheck complaint
2020-12-21 23:47:25 -08:00
Jordan Harband
e76b2945c5
[Fix] relax $PREFIX checking, to accomodate npm exec
...
Fixes #2379 .
2020-12-21 23:03:30 -08:00
Rui Chen
e48cb858a6
[Tests] .npm is now cached by default
2019-10-02 15:05:36 -04:00
Keith Lazuka
86708833c9
[Fix] Use local variable when looping over args
...
When the `nvm` function is called by a script which itself uses a variable
named `i`, `nvm` clobbers the caller's variable. This happens even if the
caller has declared its variable as local.
See note 1 on https://tldp.org/LDP/abs/html/localvar.html#FTN.AEN18568
2020-12-08 12:28:24 -05: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
ed321f1df0
[Tests] release: clobber local tags
2020-11-27 21:44:33 -08:00
Jordan Harband
4b947ec92d
v0.37.2
2020-11-27 21:34:28 -08:00
Jordan Harband
3b57dfec8d
Revert "[Fix] nvm_die_on_prefix: only grep lines starting with env var name" ( #2347 )
...
This reverts commit 21c0c05130 .
Fixes #2360 . Fixes #2364 . Fixes #2366 .
2020-11-27 21:28:12 -08:00
Jordan Harband
661a702cdd
v0.37.1
2020-11-24 21:16:43 -08:00
Jordan Harband
510b2fd44c
[Tests] fix eclint errors
2020-11-21 18:08:22 -08:00
Jordan Harband
80a4e06af9
[Tests] partially migrate to Github Actions
2020-11-07 00:09:08 -08:00
Alex Aubuchon
22902f04a3
[actions] Add release test workflow
2020-11-20 14:28:15 -05: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
Alex Aubuchon
3abb98124e
[actions] Add shellcheck workflow
...
Co-authored-by: Alex Aubuchon <alex@aub.dev >
Co-authored-by: Jordan Harband <ljharb@gmail.com >
2020-11-18 12:49:28 -05: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
11a9d22607
[actions] add "Allow Edits" workflow
2020-11-06 23:56:55 -08:00
Jordan Harband
bbe032fa7e
[actions] switch Automatic Rebase workflow to pull_request_target event
2020-11-06 23:55:52 -08:00
Jordan Harband
4054bd70ce
v0.37.0
2020-11-06 10:11:29 -08: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
Peter Dave Hello
31bc0a13c2
[Dockerfile] Clean up dated comment
2020-11-03 17:19:03 +08: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
Jordan Harband
0f0d5e8270
[dev deps] alphabetize dependencies
2020-10-22 20:41:45 -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
Peter Dave Hello
4436638816
[Tests] Drop deprecated sudo: option in TravisCI config
...
That config was deprecated for a while, reference:
- https://blog.travis-ci.com/2018-10-04-combining-linux-infrastructures
2020-09-21 20:28:09 +08:00
Matthieu Bosquet
344cc32ac3
[readme] bash shell integration: Amended example to call cd when booting a terminal (previously only called on cd).
...
It means that works with for example VS Code's integrated terminal.
2020-10-05 17:30:03 +01:00
Jordan Harband
7929190e6e
[Docs] improve nvm --help output
...
Fixes #2301
2020-10-02 22:22:12 -07:00
Jordan Harband
8debf39f24
v0.36.0
2020-09-23 16:18:37 -07:00
Jordan Harband
c7ca08d575
[Fix] latest-npm: ensure npm 7 is not installed on node < 10
2020-09-23 14:50:33 -07:00
Peter Dave Hello
6110d31969
[dockerfile] Add missing apt pacakge locales
...
locale-gen command seems missing since uncertain point for a while:
```
Step 15/33 : RUN locale-gen en_US.UTF-8
---> Running in fae073c89c01
/bin/bash: locale-gen: command not found
The command '/bin/bash -o pipefail -c locale-gen en_US.UTF-8' returned
a non-zero code: 127
```
This patch should fix the Docker image build
2020-09-21 18:20:50 +08:00
Peter Dave Hello
68d2f47c0a
[dockerfile] Update ShellCheck download URL in Dockerfile
...
see koalaman/shellcheck#1871
2020-09-21 09:36:30 +08:00
Jordan Harband
6e0562ac6d
[Tests] pin postcss to v7
2020-09-21 15:40:41 -07:00
Peter Dave Hello
68d331a816
[dockerfile] Remove ShellCheck Segmentation fault workaround
...
The workaround came from this GitHub issue comment:
https://github.com/koalaman/shellcheck/issues/1053#issuecomment-357816927
Looks like the problem doesn't exist any more:
```
.
.
.
Step 14/33 : RUN shellcheck -V
---> Running in 4b7a718c1cbf
ShellCheck - shell script analysis tool
version: 0.7.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
.
.
.
```
The workaround should be removed so that the Dockerfile will be easier
to be understand and read.
2020-09-21 02:47:57 +08:00
Saikat Das
22e07cc0c1
[readme] fix LTS upgrade command
...
Edited the LTS upgrade scenario command to fix the issue discussed in #2271
2020-08-27 19:27:29 +05:30
Jordan Harband
cf92956e5d
[New] add nvm_find_project_dir helper
2020-08-23 14:40:42 -07:00
Jordan Harband
1d88ecfce5
[Fix] nvm_die_on_prefix: check that the prefix is inside the version dir, not just the nvm dir
...
- also pass the version dir as the third argument
2020-08-23 22:50:41 -07:00
Jordan Harband
035bf9e28e
[readme] update autocompletion output examples
2020-08-23 23:29:48 -07:00
Michael Potter
f7fbad2bd6
[performance] nvm_auto: only call nvm_ls_current in use mode
2020-08-19 11:40:45 -07:00
Steve Lee
19c55b9936
[readme] Mention problem with windows cmd echo
2020-08-11 18:39:32 +01:00
Jordan Harband
9dc6f3e4a5
[Refactor] nvm run/nvm exec: use NVM_SILENT consistently internally
2020-08-13 14:37:41 -07:00
Jordan Harband
1c00753fd9
[New] nvm deactivate/nvm which: add --silent
2020-08-13 13:40:32 -07:00
Yash-Singh1
b1200c659b
[Fix] nvm use: fix --silent when version is omitted
...
Fixed a bug where --silent mode was failing for nvm use I ran a test
that just ran ```nvm use node --silent``` that I wrote by myself.
Unfortunately I noticed a bug where it still prints out some messages in
different cases. This pull request is to fix that bug. * Added in an argument
called ***quiet*** to the nvm_rc_version() function at *line 339* * Printed
anything inside the nvm_rc_version() only in the scenario where quiet mode is
off * Ran the nvm_rc_version() function in quiet mode only if silent mode is
on in the "use" command of nvm at *line 2990* * Ran *nvm_echo* and *nvm_err*
inside the "use" command of nvm only in the scenario where silent mode is off
(There were 4 scenarios where this was forgotten) * Edited the ```nvm
deactivate``` command to include a silent mode * Changed the help page to
include the --silent option for ```nvm deactivate``` * Added in aliases for
the --silent flag in ```nvm deactivate``` and ```nvm use``` * Used silent
mode inside the ```nvm use``` when running ```nvm deactivate``` inside it and
silent mode is on A test was attached in the 'test/slow/nvm use' directory.
It is named *Running "nvm use node --silent" doesn't print anything*. It runs
```nvm use node --silent and checks``` and succeeds if the OUTPUT matches the
EXPECTED_OUTPUT which is *null* or *''*. When the test was run locally, it
still ouputed results if someone deleted some contents of the *.nvm/* folder.
This output was given from the ```nvm deactivate command```. This was the
reason that the ```nvm deactivate``` was edited to include silent mode.
2020-08-08 17:27:46 -07:00
Jordan Harband
16b75b7333
[Robustness] add command to xargs/rm in nvm_get_default_packages
...
Fixes #2281 .
2020-08-11 10:16:42 -07:00
Naomi Quinones
1bf567bd0b
[Fix] ensure --help is intercepted on any command
...
Co-authored-by: Naomi Quinones <52065567+naomiquinones@users.noreply.github.com >
Co-authored-by: Dena Burd <me@Denas-MacBook-Air.local >
2020-08-04 16:32:19 -07:00
Dimitris Karagiannis
a01deb11dc
[patch] Update docs and add warning for 'nvm is not compatible with the npm config "prefix" option' edgecase error on Mac OS
2020-08-03 10:04:20 -07:00
Kayla Altepeter
a5aec107df
[New] adding default and alias option to nvm install
...
For: `nvm install 8.12.0` after install:
--alias=8 is equivalent to `nvm alias 8 8.12.0`
--default is equivalent to `nvm alias default 8.12.0`
Co-authored-by: Kayla Altepeter <kayla@kaylaaltepeter.com >
Co-authored-by: Dena Burd <me@Denas-MacBook-Air.local >
Co-authored-by: Jordan Harband <ljharb@gmail.com >
2018-10-22 08:32:29 -05:00
Saikat Das
18c6f98acc
[readme] Add documentation for LTS updates which reinstall existing packages
...
Added an example for LTS updates that also reinstall the existing packages.
This is useful for individuals who run the latest LTS version along with global packages and need to update when the LTS version gets bumped
2020-07-28 19:31:30 +05:30
Jordan Harband
424aeb38b4
[Refactor] add nvm_get_checksum_binary; use it in nvm debug
2020-07-31 22:13:21 -07:00
Jordan Harband
abfe0a5891
[Refactor] remove unused nvm_checksum function
2020-07-31 22:10:28 -07:00
Naomi Quinones
3561bbc54a
[Fix] --help: Add more examples
...
Fixes #2120 .
2020-07-28 17:56:48 -07:00
Jordan Harband
83043c4d3a
[debug] add whoami output
2020-07-25 13:38:52 -07:00
Dena Burd
55eafcd814
[New] add nvm -v as an alias for nvm --version
...
Fixes #2200 .
2020-07-27 10:26:35 -07:00
ritmos
06c3bf6a8f
[Docs] --help: explain more clearly that <version> parameter is optional and can be provided by .nvmrc on nvm install, nvm use, nvm exec, and nvm run.
2020-06-20 15:15:01 +02:00
DeeDeeG
4b1100e515
[New] nvm_supports_xz: Add Mac/FreeBSD xz platform support checks
...
macOS only supports extracting xz tarballs with `tar` in 10.9 and up.
GNU tar needs an `xz` executable on the `PATH` to extract xz tarballs.
(These are the most common variants of tar, so until further testing
is done, conservatively assume all variants of tar (other than the one
shipped with macOS) need an xz executable on the PATH in order to
decompress xz tarballs.)
Fixes #2155 .
2020-01-29 16:20:15 -05:00
Bram Wubs
f6d11bae41
[readme] Fix fish load_nvm function
2020-07-07 08:29:00 +02:00
Marcus Kazmierczak
d2d232ea2b
[readme] Update macOS troubleshooting w/ 10.15 zsh default
...
The default shell for macOS 10.15 is now zsh, by default a .zshrc file
is not created, so switch instruction for touch ~/.zshrc
2020-06-24 11:02:01 -07:00
Connor Leech
7b3af45cf7
[readme] Update install instructions troubleshooting
...
This is in response to a popular stack overflow answer that has helped people resolve the "command not found" hiccup: https://stackoverflow.com/a/17707224/2031033
Also mentioned here: https://github.com/nvm-sh/nvm/issues/748
2020-05-25 07:36:40 -07:00
Peter Dave Hello
bac5393e12
[Docs] Syntax highlight for Ansible task example in README.md
2020-05-29 21:01:47 +08:00
Szymon Dzialowski
2d4e877b61
[readme] Stop removing spaces from nvm_path
...
It breaks switching version of node through nvm in directories with space somewhere in it's path.
2020-06-10 18:28:14 +01:00
Jordan Harband
6575b6b052
[Fix] install: improved arg parsing around --reinstall-packages-from
...
Fixes #1762
2020-06-04 16:15:39 -07:00
Bruce A. MacNaughton
33fa27dabe
[Docs] Update README for environment variables
2020-02-07 12:01:57 -08:00
Sehrope Sarkuni
91a55dd91a
[Refactor] Rename solaris and iojs helper functions to be nvm_ prefixed
...
Renames node_version_has_solaris_binary and nvm_iojs_version_has_solaris_binary
to be prefixed with nvm_ so they do not show up in tab completion following the
word "node".
2020-05-08 16:08:27 -04:00
Jordan Harband
7aba64a2d5
[meta] further TOC action tweaks
2020-04-29 20:18:40 -07:00
Jared Ramirez
dcc8059ef8
[readme] include deeper integration instructions for fish
2020-04-29 15:25:23 -07:00
Jordan Harband
8e1e5df059
[meta] fix TOC action
2020-04-29 15:13:30 -07:00
Jordan Harband
e0ed1eacfd
[meta] add actions: Automatic Rebase for PRs, auto-update-TOC for push
2020-04-29 12:06:01 -07:00
Peter Dave Hello
73438e339e
Update Dockerfile base image to Ubuntu 16.04, cc #2008
2020-03-30 02:17:28 +08:00
Magnus Markling
b02617028f
[Tests] Source nvm.sh before defining FILE
2020-03-19 12:13:29 +01:00
Jordan Harband
f607f2f783
[Fix] reinstall-packages: do not include unmet peer deps
...
Closes #1948 .
2020-03-10 23:51:17 -07:00
Jordan Harband
258938ef66
v0.35.3
2020-03-05 23:13:56 -08:00
Jordan Harband
096ba0d8c3
uninstall: add NVM_DEBUG to print out a filename as its permissions are checked
2020-03-05 17:40:17 -08:00
Jordan Harband
4626d1aae6
[New] add lts/-1 etc, to point to an LTS line relative to "latest"
2020-03-04 01:03:36 -08:00
Jordan Harband
c372ff03e0
[Tests] update mocks
2020-03-04 00:44:35 -08:00
Jordan Harband
30cd9c5dc8
[Tests] fix update mocks script
2020-03-04 00:57:58 -08:00
Jordan Harband
b9536327ae
[Fix] nvm ls-remote: properly label latest LTS versions instead of just the latest one in the filter
...
Fixes #2166
2020-02-21 21:27:13 -08:00
Jordan Harband
e609091a55
[Tests] update test mocks
2020-02-22 09:06:59 -08:00
flip111
8093dbeacd
[readme] add nvm intro
...
Closes #2149 .
2020-01-23 20:32:07 +01:00
Jordan Harband
4cd6b4822c
[Tests] try to make nvm unload test more robust
2020-02-09 06:41:52 -10:00
Bruce A. MacNaughton
6c560b12b6
[New] use: set NVM_INC to expose the node include path
2020-02-07 06:23:35 -08:00
Jordan Harband
f4eddb2c9c
[Tests] ensure nvm unload unsets env vars too
2020-02-07 09:16:55 -10:00
Jordan Harband
a1ad32e9cb
[readme] restore broken anchor
2020-01-11 18:15:20 -08:00
nebbles
d8785da988
[Docs] Improve readme clarity and troubleshooting
...
Clean up readme structure a bit to help with readability. fix
instructions which could lead to a sourcing loop if misinterpreted.
guidance should direct macos users to simply copy the source snippet
manually into their desired profile file.
Resolve #2123
2019-11-17 14:52:52 +00:00
Lucian Buzzo
4ff9084e99
[Docs] Fix small typo in README
2019-12-05 10:07:38 +00:00
Jordan Harband
f355b327d6
v0.35.2
2019-12-17 22:40:20 -08:00
Jordan Harband
6fa92c82ca
[Fix] if a prefix env var is set (as in npm run), but is correct, do not fail
...
Fixes #2106 .
2019-12-15 23:39:32 -08:00
Jordan Harband
0899839b95
[Tests] pin david to v11
...
v11.1.0 and v12 no longer work on node 0.10; v11.1.1 should.
See https://github.com/alanshaw/david/issues/159
2019-12-09 08:51:46 -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
awthwathje
04ad1b528c
[readme] Fix a typo
2019-11-08 10:24:16 +01:00
Jordan Harband
1c8e59130f
[meta] create FUNDING.yml
2019-11-05 12:05:09 -08:00
Jordan Harband
28bc2fd991
v0.35.1
2019-11-03 10:03:31 -08:00
Jordan Harband
100861d529
[Fix] install-latest-npm: npm v6.10 breaks on node v6.0, v6.1, and v9.0-v9.2
2019-11-02 20:53:18 -07:00
Marit Iren
1eca354233
[Docs] Add description if instructions don't work; make install instructions more readable
2019-10-20 17:08:29 +02:00
Guido Bouman
0a4e6f2b70
[meta] Update ISSUE_TEMPLATE.md
...
Remove the need to indent terminal output by using headings instead of a list.
Simplify formulation of steps
2019-10-08 15:27:53 +02:00
Jordan Harband
94a72ae217
[Fix] nvm use: improve help output with bare nvm use and no .nvmrc
...
Closes #1914 .
2019-10-08 14:40:17 -07:00
Jordan Harband
011810e721
v0.35.0
2019-10-02 00:05:28 -04:00
Darío Hereñú
d48abff659
[Docs] clean up formatting in readme
2019-05-03 19:44:21 -03:00
Darío Hereñú
82037b41b1
[Docs] clean up a bit
2017-10-06 01:54:07 -03:00
Roman Isko
7b0a46eafb
[docker] add libssl-dev to Docker image
2018-06-18 10:33:12 +03:00
Roman Isko
dcbecbf2c7
[shellcheck] install shellcheck v0.6.0 in Dockerfile
2018-06-14 10:45:01 +03:00
metasean
970cadf258
[Docs] Add --latest-npm info to Migrating global packages section
...
Adds the following information to the "Migrating global packages while installing" section:
- notification that the npm package is explicitly not updated when using the --reinstall-packages-from flag
- information about the --latest-npm flag
- recovery instructions if a user has already updated node with an incompatible npm version
2018-12-30 18:24:29 -07:00
Will Papper
3cc9525dce
[Docs] [Fix] Set $NVM_DIR to ".nvm" instead of "nvm"
...
- Operating system and version: Mac OS X Mojave
- What happened? $NVM_DIR was set to nvm
- What did you expect to happen? $NVM_DIR should be set to .nvm
I added the following line from the README to my .zshrc:
```
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
```
I couldn't figure out why nvm wasn't loading, until I realized that
`echo NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"` outputs `NVM_DIR=nvm`.
Changing the line to `export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/}.nvm"` fixed the problem. This outputs `NVM_DIR=.nvm` as expected. I tested this and the same behavior holds true in Bash as well.
2019-04-24 00:03:01 -07:00
Greg Smith
6537c91eb5
Fix bash auto-use nvm command
...
It was trying to read ./.nvmrc if you cd'ed into a subdirectory of the directory that has .nvmrc, which would give print `-bash: ./.nvmrc: No such file or directory` to stderr and potentially not doing the `nvm install`.
2019-08-09 14:38:37 -06:00
Jordan Harband
07b20d5008
[meta] add copyright line to license file
2019-07-17 10:48:23 -07: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
Bastian Fuchs
45c1b84794
[Fix] Determine correct sub directory if XDG_CONFIG_HOME is set
...
With the environment variable XDG_CONFIG_HOME set, the installation
script uses the directory $XDG_CONFIG_HOME/nvm now. Before the change
the variable's value with "/nvm" cut off was used, which usually results
in an installation without any subdirectory.
2019-04-28 12:51:15 +02:00
Alfred Myers
3664744e3b
Updated note about Windows
...
There's a lot of old info around the interwebs.
Much stating nvm doesn't work in WSL.
2019-05-02 12:20:17 -03: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
Daniel Li
ff77ac17af
[Docs] update bash cdnvm script to properly handle aliases
...
- Only works for common aliases like `default`, `system`, `node`, `lts/*`, `iojs` etc.
- Prevent unnecessary running of `nvm use`
2019-03-12 16:43:08 +00: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
Eric Lewis
1ede50cbae
[Docs] Add note about what version of node new shells run with.
...
Fixes #2000
2019-02-22 10:04:13 -05:00
Jordan Harband
e0d87528f3
[shellcheck] remove unnecessary overrides
2019-02-24 23:04:13 -08:00
Refael Ackermann
924a175bd8
[Tests] update dist from trusty to xenial
2019-02-25 15:02:15 -05:00
Jordan Harband
9daf26f0a0
[Tests] nvm_command_info: make error output more helpful
2019-02-25 13:17:10 -08:00
Jordan Harband
226487d358
[Fix] install: error out when an argument has ---
...
Fixes #1915 .
2019-02-25 00:13:50 -08:00
Jordan Harband
216c24fba0
[Docs] --help: consolidate some help output
2019-02-24 22:57:06 -08:00
Christopher Sahnwaldt
930507dbbc
[Docs] README.md: mention --no-colors option
2019-02-23 09:53:56 +01:00
Jordan Harband
4c8ced736d
[Docs] nvm --help: add --no-colors and --no-alias
2019-02-24 00:04:40 -08:00
Jarvis Mercer - Amir Mohammad Safari (AMSL)
1f7f0c2d81
[Docs] add version number to nvm —help output
2019-01-27 04:13:12 +03:30
Jarvis Mercer - Amir Mohammad Safari (AMSL)
41eb40821b
[Docs] add “update” terminology to installation section
2019-01-26 01:00:43 +03:30
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
58d0933f72
[Fix] attempt to fix a bug in bash 3.2, fixed in 4.4, that improperly exits on -e in a test.
...
See https://gist.github.com/ljharb/6e70a79ac5fcf11a8b9de654a88642aa for details.
2019-02-23 22:21:46 -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
7f9220dbd8
[Fix] nvm ls: --no-colors: system: print an asterisk
2019-02-23 14:41:57 -08:00
jjangga0214
890fbb5581
Update README: sync node release schedule url
2019-02-15 11:11:01 +09:00
Jordan Harband
e1bb44f712
[shellcheck] add overrides
2019-02-04 14:45:04 -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
66d2909650
Merge pull request #1986 from Sayegh7/master
...
[Fix] Make installation less restrictive when NVM_DIR is set
2019-01-22 10:50:10 -08:00
Jordan Harband
a56c6f1485
tweak logic
2019-01-21 21:58:43 -08:00
Ahmed El Sayegh
703babe60a
[Fix] Make installation less restrictive when NVM_DIR is set
2019-01-21 02:15:02 +02:00
Peter Dave Hello
10f24d6d4b
[Refactor] nvm.sh: make coding style more consistent
2018-05-22 20:57:40 +08:00
Peter Dave Hello
e367533eb8
[Refactor] Reduce one more sed & pipe to speedup
2017-03-28 23:15:35 +08:00
Peter Dave Hello
6534568745
[Fix] Enhance nvm debug for different environments
2019-01-12 14:17:01 +08:00
Waldir Pimenta
13f3cdcdf7
README: clarify how to specify default packages
2019-01-11 10:42:33 +00:00
Jordan Harband
3d9c31d944
v0.34.0
2019-01-07 23:01:16 -08:00
Jordan Harband
0acccb8a77
Merge pull request #1974 from valeriemettler/valeriemettler-patch-1
...
[Docs] Improve phrasing of 'nvm current'
2019-01-05 14:10:31 -08:00
Valerie Mettler
6354b170d7
Improve phrasing of 'nvm current'
...
To help beginners know that 'nvm current' is talking about node and not nvm.
2019-01-05 12:20:56 -08:00
Javier Infante
5e065ec026
[Docs] fixing cdnvm on .bashrc
2018-12-31 08:42:58 +01:00
Peter Dave Hello
206d503a21
[Docs] Improve indent of output block in GitHub Issue template
2018-12-26 03:46:13 +08:00
Jordan Harband
deb2a9b821
[Docs] fix eclint
2018-12-19 15:36:24 -08:00
Joel Parker Henderson
fb83eeb140
[Docs] Add Ansible task example
...
Add Ansible task example to show how to install nvm and update it.
Ansible is a systems administration tool.
See https://github.com/ansible/ansible
My personal experience of `nvm` is that installing via Ansible is good, and that a good example can help. This example took me about an hour to learn, so I'm hoping to save other people some time. This example is somewhat different than any others that I found on the web. There may be a better way to write it, and if so, please improve it.
2018-12-19 12:45:59 -08:00
Peter Dave Hello
14179bc8ce
[shellcheck] Use -n/-z instead of ! -z/! -n condition
...
https://github.com/koalaman/shellcheck/wiki/SC2236
2018-12-03 13:59:19 +08:00
Jordan Harband
153506c8da
[shellcheck] ignore SC2230 errors
2018-11-25 16:22:25 -08:00
Jordan Harband
c1150c41ab
[Tests] avoid using shopt in zsh
2018-11-26 11:18:11 -08:00
Jordan Harband
ad1110ef1a
[Tests] print out shellcheck version
2018-11-25 23:56:19 -08:00
Jordan Harband
914c220586
Merge pull request #1947 from PeterDaveHello/Enable-ccache-on-TravisCI
...
[Tests] Enable ccache on Travis CI to speed up compilation
2018-11-24 23:18:23 -06:00
Peter Dave Hello
22d32bede0
[New] Enable ccache on Travis CI to speed up compilation
2018-11-22 13:58:26 +08:00
Jordan Harband
a49d9163ef
[Fix] avoid unbound variable
...
Fixes #1949 .
2018-11-21 21:25:20 -06:00
Alexander Groß
17586b971a
[Fix] Allow zsh users to have the nomatch option set
...
Closes #1937 .
2018-11-08 00:55:52 +01:00
Peter Dave Hello
f3fd5eff46
[Docs] Improve md file syntax
...
- Lists should be surrounded by blank lines
- Use only `1.` for ordered list item prefix
- Starting bulleted lists at the beginning of the line
- Fenced code blocks should be surrounded by blank lines
2018-07-15 02:26:05 +08:00
Kayla Altepeter
423252a99c
[docs] update README to fix docker run command flag order
2018-10-18 22:30:05 -05:00
Ole Johan Andersen
2a294ebd61
[Docs] improve instructions for manual install
2018-10-24 19:49:55 +02:00
Jordan Harband
a08d1ea4a3
Merge pull request #1865 from d4nyll/master
...
[Docs] Add section on automatic `nvm use` in Bash
Replaces #1108 and #1677 . Closes #1678 .
2018-11-05 16:10:15 -08:00
Fábio Antunes
217a5bb0de
[Docs] Added fish nvm
2018-10-21 23:31:20 -07:00
Paul Nickerson
caf6208dbd
install.sh: Print an error and exit the script if $METHOD is set to something unexpected.
2018-10-02 13:46:26 -04:00
Nathan Burchill
0c2efed407
[New] bash_completion: Add support for ZSH_DISABLE_COMPFIX flag.
...
When using Oh My Zsh the ZSH_DISABLE_COMPFIX flag allows the zsh completion system to use files it deems to be insecure.
2018-09-18 16:15:35 -04:00
et304383
2d97ce5f7b
[Docs] add instructions for installing a specific version
2018-08-27 11:50:48 -03: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
96ebed37c7
Merge pull request #1863 from PeterDaveHello/ImproveDockerfile
...
Improve Dockerfile
2018-08-23 09:13:47 -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
Daniel Li
e06f735776
Improve Bash alias
...
This will take into account nested directories inside your main project
directory
2018-07-26 16:13:07 +01:00
Daniel Li
355c4c7915
[Docs] Add section on automatic nvm use in Bash
2018-07-15 19:08:15 +01:00
Peter Dave Hello
4bd99bcfa2
[Dockerfile] Refactor to prevent using sudo during build
...
`sudo` may lead to unpredictable behavior in some cases, and we don't
really need to use `sudo` to reach what we need.
2018-07-12 18:38:15 +08:00
Peter Dave Hello
5f9ccaada0
[Dockerfile] Set the SHELL to bash with pipefail option
2018-07-12 18:38:15 +08:00
Peter Dave Hello
7ff20855a2
[Tests] Integrate dockerfile_lint to test Dockerfile
2018-07-12 18:38:14 +08:00
Peter Dave Hello
cdde74a55d
[Dockerfile] install missing eclint package
2018-07-12 18:37:40 +08:00
Jordan Harband
17c33fd9ae
Merge pull request #1861 from PeterDaveHello/ImproveDockerfile
...
Improve and update Dockerfile
2018-07-11 12:15:25 -07:00
Peter Dave Hello
04b35b5440
[Dockerfile] Use arguments JSON notation for ENTRYPOINT
2018-07-11 15:17:27 +08:00
Peter Dave Hello
aacb0b9b97
[Dockerfile] Fix command From to be FROM
2018-07-11 15:17:27 +08:00
Peter Dave Hello
f121e5ace0
[Dockerfile] Add missing quotes for variables
2018-07-11 15:17:18 +08:00
Peter Dave Hello
af8038ffec
[Dockerfile] Update ShellCheck version to v0.5.0
2018-07-11 15:14:00 +08:00
Peter Dave Hello
265ec90532
[Dockerfile] Add missing name & version LABEL
2018-07-11 15:14:00 +08:00
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
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
Jordan Harband
592c0be195
Merge tag 'v0.33.11'
...
v0.33.11
Fixes
- `nvm install-latest-npm`: node v4.5 and v4.6 work on npm v5.4.1, but not v5.4.2
2018-04-25 13:26:19 -07:00
Jordan Harband
93990ab7da
v0.33.11
2018-04-25 13:25:35 -07:00
Jordan Harband
61c7b133f8
[Fix] nvm install-latest-npm: node v4.5 and v4.6 work on npm v5.4.1, but not v5.4.2
2018-04-25 13:25:28 -07:00
Jordan Harband
eb0a8442d8
[Fix] nvm install-latest-npm: node v4.5 and v4.6 work on npm v5.4.1, but not v5.4.2
2018-04-25 10:08:41 -07:00
Jordan Harband
a26ab88478
[Tests] fix nvm install-latest-npm tests to fail properly
2018-04-24 22:23:44 -07:00
Jordan Harband
1f2a3234d2
[Tests] add nvm install-latest-npm tests for all node versions
2018-04-24 22:23:44 -07:00
Jordan Harband
34e1ec800e
Merge tag 'v0.33.10'
...
v0.33.10
Fixes
- `install-latest-npm`: npm 6 is out, and requires node 6 or higher
2018-04-24 22:09:27 -07:00
Jordan Harband
177a9673a7
v0.33.10
2018-04-24 22:08:51 -07:00
Jordan Harband
db98f8cdaf
[Fix] install-latest-npm: npm 6 is out, and requires node 6 or higher
2018-04-24 22:08:16 -07:00
Jordan Harband
c983fefbae
Merge pull request #1734 from PeterDaveHello/improve-NVM_DIR-handling
...
[Fix] Remove $NVM_DIR trailing slash automatically
2018-04-24 16:22:42 -07:00
Jordan Harband
42f11acce1
[Fix] install-latest-npm: npm 6 is out, and requires node 6 or higher
2018-04-24 14:39:46 -07:00
Jordan Harband
09f7bbb78c
[Refactor] use a different approach to remove trailing slashes
2018-04-24 13:24:08 -07:00
Peter Dave Hello
d5dacdf80f
[Fix] nvm debug: Fix sed syntax error in nvm_command_info()
2018-04-17 18:09:47 +08:00
Peter Dave Hello
d3a9272a0c
[Refactor] Speedup nvm_list_aliases()
2018-04-18 17:03:47 +08:00
Jordan Harband
1b14e6b4d9
v0.33.9
2018-04-14 22:38:18 -07:00
Jordan Harband
f060867f15
Merge pull request #1739 from PeterDaveHello/add-editorconfig
...
[New] Add EditorConfig to help maintain part of coding style
2018-04-14 22:36:25 -07:00
Jordan Harband
0da699605e
[eclint] only check non-ignored files
2018-04-14 22:12:22 -07:00
Peter Dave Hello
d9dc8464fd
[Doc] Add macOS install script note about Git
...
Closes #1782
2018-04-13 01:14:39 +08:00
Peter Dave Hello
685312d600
[Fix] Remove $NVM_DIR trailing slash automatically, fix #1708
2018-04-12 14:14:58 +08:00
Peter Dave Hello
0731003cfe
[New] Integrate eclint to test partial coding style
2018-02-26 02:29:38 +08:00
Peter Dave Hello
ca66a13710
nvm debug: Improve OS version detection
2018-02-24 02:53:40 +08:00
Peter Dave Hello
8ff437ae51
[Doc] Fix manual install & upgrade guide, fix #1772
2018-04-12 23:58:30 +08:00
Peter Dave Hello
b15709e637
Turn off wget's output in nvm_get_latest()
...
curl output is turned off by `-s` in the same place, we should unify the
behavior on wget, also, this help removes those wget outputs that can't
fit our coding style tests. cc #1739
2018-04-12 23:44:27 +08:00
Brian M. Jemilo II
8b71861d06
[Fix] install.sh: Detect profile with $BASH_VERSION and $ZSH_VERSION
...
Using `$(basename "/$SHELL")` to detect the shell would also choose bash on mac
2018-04-09 15:13:02 -05:00
Brian M. Jemilo II
68fe26a5e4
[Fix] Add autocompletion support to zsh
...
Fixes #1707 .
2018-04-09 14:54:28 -05:00
Peter Dave Hello
37e0977e60
install.sh: Improve install.sh prompt output, add a newline
2018-04-10 15:53:33 +08:00
Jordan Harband
918a39a0d0
[Tests] update mocks
2018-04-09 23:29:37 -07:00
Jordan Harband
52f1b24895
[Tests] fix mirrors in mocks update script
2018-04-09 23:28:17 -07:00
Jordan Harband
74ff70aab3
[Fix] installing with an LTS name should lowercase the name before ensuring a default
...
Fixes #1781 .
2018-04-09 23:23:27 -07:00
Ed Reel
663bddee9b
[docs] Add removal instructions to README.md
...
Closes #1767 .
2018-04-09 10:36:54 -05:00
Guy Lepage
bc87d3dd1c
removed global install on README.md. closes #1773
2018-04-04 19:03:03 -04:00
easyaspi314 (Devin)
d8689f6b9a
bash_completion: Reduce startup time
2018-03-12 10:41:05 -04:00
Jordan Harband
0e3bb2cc47
[Fix] ensure --reinstall-packages-from has a version number.
...
Fixes #1760 .
2018-03-14 00:13:07 -07:00
Peter Dave Hello
2850e65b62
[Docs] Fix some typos
2018-03-03 21:18:42 +08:00
Josh Soref
2859a19bbd
[Docs] fix spelling
2018-03-06 04:38:01 +00:00
Peter Dave Hello
d6fa67166c
[Fix] reinstall-packages: Prevent install/link when no packages found
...
Fixes #1744 .
2018-02-27 14:05:33 +08:00
Peter Dave Hello
25b7f264d5
[Fix] Use nvm_echo instead of echo directly
2018-02-28 02:16:24 +08:00
Jordan Harband
5fc8bd950d
Fix whitespace
2018-02-25 13:34:28 -08:00
Peter Dave Hello
750571056c
[Fix] Correct most of the wrong indentation
2018-02-26 02:20:21 +08:00
Peter Dave Hello
544c3f4caa
[New] Add EditorConfig to help maintain part of coding style
2018-02-21 01:26:02 +08:00
Peter Dave Hello
e7b42198b4
[Fix] Improve .nvmrc reading process
...
Fixes #1015 . Fixes #1712 .
2018-02-20 03:34:43 +08:00
Peter Dave Hello
5f53caadad
[Refactor] Use grep -q parameter instead of redirect to /dev/null
2018-02-03 11:29:31 +08:00
Peter Dave Hello
9c42470347
[New] Add "$PATH" to nvm debug output
2018-02-06 08:17:20 +08:00
Peter Dave Hello
9f34b3e95c
Remove trailing space
2018-02-26 01:03:01 +08:00
Peter Dave Hello
41ec44f6b5
Add missing final newline in test script
2018-02-26 01:02:41 +08:00
Peter Dave Hello
2cd2c0f72e
Remove useless trailing newlines
2018-02-26 01:01:30 +08:00
Peter Dave Hello
f3076d14c9
[Fix] Add missing "command" prefixes for few commands
2018-02-20 04:05:47 +08:00
Peter Dave Hello
bb803492d8
Remove duplicate code in nvm_npm_global_modules()
...
No matter what's the result of the condition here, the path is the same.
2018-02-22 09:43:09 +08:00
Peter Dave Hello
f290ccf1d5
[Fix] Add missing "command" prefix for "tr", fix #1725
2018-02-19 13:59:26 +08:00
Peter Dave Hello
225e447b54
[Doc] Update Docker image build info in README.md
2018-02-19 00:27:04 +08:00
Peter Dave Hello
77da9f5a6d
Optimize ShellCheck installation in Docker image
...
Use pre-built static release binary instead of building ShellCheck from
the source code, this change would save disk space, time, and much
computing resources.
2018-01-18 00:33:41 +08:00
Peter Dave Hello
3ed47431f8
[New] Print $SHLVL in nvm debug
2017-11-05 03:25:04 +08:00
Peter Dave Hello
aad269d224
Display FreeBSD and SunOS with correct caps
2018-02-12 02:15:01 +08:00
Christoph Krautz
74f455e610
[Docs] Add reminder that NVM_DIR should not contain trailing slash, fix for #1708
2018-02-09 11:51:46 +01:00
Karthik K
f5b5f2d41d
[copyright] year to 2010 obsoleting future updations
2018-01-26 12:20:13 +05:30
Peter Dave Hello
a23f7169a6
[Fix] Correct nvm.sh indent
2018-01-26 11:30:57 +08:00
Jordan Harband
71032cfaa1
[Tests] update to latest npm in this test
2018-02-08 22:53:41 -08:00
Jordan Harband
6dd9ecb607
[Docs] add nvm which current to nvm --help output
2018-01-16 16:55:50 -08:00
Yannick Ihmels
7ca8acc98d
[Docs] [Tests] Add escape sequences; add test for aliased .
2018-01-13 21:25:30 +01:00
Paul Norman
d34bb3247d
install.sh: Don't give detached HEAD advice when installing
2018-01-10 13:21:27 -08:00
Jordan Harband
3e81904525
Update minimum git version to v1.17.10
...
Per https://github.com/creationix/nvm/pull/1704#discussion_r161366186
2018-01-12 23:24:56 -08:00
Jordan Harband
7cba6cd6d0
install.sh: detect a defined but nonexistent $NVM_DIR
...
(ref: #1700 )
2018-01-06 09:34:11 -08:00
p-salido
9273f23bc8
[Docs] Explain .nvmrc better
2017-11-23 23:09:44 -05:00
Jordan Harband
2a259435c8
Merge pull request #1684 from PeterDaveHello/ShellCheck-v0.4.7-fixes
...
ShellCheck v0.4.7 fixes
2017-12-13 14:49:34 -08:00
Peter Dave Hello
2a8a81da94
[Fix] ShellCheck SC1117 in nvm.sh & install.sh
2017-12-14 03:26:17 +08:00
Peter Dave Hello
fce7f4ed13
[Fix] Disable ShellCheck SC2207 in bash_completion line 14
2017-12-14 02:11:50 +08:00
Jordan Harband
7ad6d98ced
v0.33.8
2017-12-12 10:43:17 -08:00
Jordan Harband
fa9c50520d
[Fix] nvm install-latest-npm: fix for node 4.5/4.6.
2017-12-12 00:13:00 -08:00
Jordan Harband
4846d57c69
nvm use: perfect pre-npm-config env var checking
2017-12-05 00:00:18 -08:00
Jordan Harband
65f0572bdc
v0.33.7
...
Fixes
- fix unassigned variable (#1665 , #1664 )
- Fix for $path used by zsh (#1669 )
- `set -u`: ensure `NVM_USE_OUTPUT` is always set (#1671 )
- `install.sh`: Fix a bug that block that installation of node in install.sh (#1676 )
- `nvm install-latest-npm`: fix node 4-4.6
Documentation
- Make `nvm cache clear` message less ambiguous (#1644 )
- Added missing piece (#1658 )
2017-12-08 21:21:42 -08:00
Jordan Harband
b6a7a54d04
[Fix] nvm install-latest-npm: fix node 4-4.6
2017-12-08 21:20:59 -08:00
Jordan Harband
8a8dcbb393
Merge pull request #1676 from Quadric/fix-node-version-in-install-script
...
`install.sh`: Fix a bug that block that installation of node in install.sh
2017-12-03 11:47:39 -08:00
Ahmad Magdy
bacdd95591
Update test/install_script/nvm_install_with_node_version to use nvm ls 8 instead of grep!
2017-11-30 15:33:01 +01:00
Ahmad Magdy
4b0563093c
Add test nvm_install_with_node_version under test/install_script
2017-11-30 15:23:37 +01:00
Ahmad Magdy
c7ac69bfbb
Fix nvm_install_node function in install.sh script to not override the actual NODE_VERSION value
2017-11-30 14:47:42 +01:00
Jordan Harband
a57fe846e8
[Fix] set -u: ensure NVM_USE_OUTPUT is always set.
...
Fixes #1671 .
2017-11-23 10:02:37 -06:00
Jordan Harband
7bfd1e0644
Merge pull request #1669 from mail6543210/master
...
Fix for $path used by zsh
2017-11-22 08:52:13 -08:00
mail6543210
9352f6913a
Add symbolic link for printf in case of command-not-found
2017-11-22 02:01:38 +08:00
mail6543210
16d3e6d2dc
Remove unnecessary, incorrect workaround.
...
The "\printf" calls zsh shell builtin instead of `command printf` in scripting.
The workaround is no longer needed given 91a29c0 .
2017-11-22 00:57:27 +08:00
mail6543210
91a29c0da2
Fix for $path used by zsh
...
"The lower-case version of PATH is an array parameter
bound to the scalar upper-case parameter."
-- http://www.zsh.org/mla/users/2015/msg00178.html
2017-11-20 22:32:13 +08:00
Jordan Harband
4b48556e92
Merge pull request #1665 from norpol/fix_issue_1664_unassigned_variable_20171115
...
Fix #1664 : unassigned variable
2017-11-17 23:31:26 -06:00
Phileas Lebada
be171bba33
Add unset-variable as exit error
2017-11-15 17:19:05 +01:00
Phileas Lebada
049a86022f
Add empty value to local variable
2017-11-15 17:17:57 +01:00
David Gatti
a7b7eec0c5
[Docs] Added missing piece
...
This sentence broke my brain when I read it the first time :) I hope this helps.
2017-11-08 01:02:15 +01:00
Jordan Harband
9953a52afb
Merge pull request #1644 from citrusui/patch-1
...
[Docs] Make `nvm cache clear` message less ambiguous
2017-10-28 22:42:14 -07:00
Avery Magnotti
fc30e0ade4
Make nvm cache clear message less ambiguous
2017-10-28 20:30:28 -04:00
Jordan Harband
b546436113
v0.33.6
2017-10-23 23:53:26 -07:00
Darío Hereñú
016bc134d5
Typo
2017-10-23 02:23:04 -03:00
Peter Dave Hello
9c25a8f316
[Cleanup] Remove ghc related things in .travis.yml, cc #1619
2017-10-22 00:42:07 +08:00
Christopher Beland
a954458829
[Docs] Improve git installation instructions
2017-10-18 10:39:11 -04:00
Jordan Harband
09951b49c5
Only apps should have lockfiles
2017-10-05 13:34:54 -07:00
Jordan Harband
3b133fac2f
[Fix] install-latest-npm: npm v5.4+ breaks on node v4.5 and v4.6.
2017-10-04 11:04:27 -07:00
Michał Gołębiowski-Owczarek
6ac8ebafba
Add a Git .mailmap with my new name
...
In this way my past contributions are mapped correctly.
2017-10-04 12:55:41 +02:00
Jordan Harband
62fb0d0ad6
Merge pull request #1605 from PeterDaveHello/fix-install.sh
...
[Fix] install.sh shouldn't use not existed variable
2017-10-03 22:23:48 -07:00
Peter Dave Hello
a461a0fffc
[Fix] install.sh shouldn't use not existed $NVM_PROFILE
2017-10-04 10:10:47 +08:00
Jordan Harband
6597e11971
v0.33.5
2017-09-29 12:50:27 -04:00
Jordan Harband
707d268a76
Merge pull request #1619 from PeterDaveHello/refactor-travis-config
...
Remove the manual ShellCheck install proecss on Travis CI
2017-09-28 10:45:49 -07:00
Peter Dave Hello
73ad812215
Remove the manual ShellCheck install proecss on Travis CI
2017-09-29 00:22:43 +08:00
Jordan Harband
8c578b864d
[Fix] ensure all grep calls go through nvm_grep.
...
Fixes #1615 .
2017-09-22 19:11:43 -07:00
Peter Dave Hello
d535c97d0f
Enhance nvm debug with more tools info
2017-09-21 22:09:15 +08:00
Xandor Schiefer
334897ae39
Preserve PATH locations order when changing versions
2016-11-14 19:19:39 +02:00
Jordan Harband
7b8af94fc9
[Tests] retry io.js test runs, since iojs.org is flaky.
2017-09-08 01:32:54 -07:00
Peter Dave Hello
7753b24948
[Docs] Update README.md for Alpine linux reference
...
Add 4 packages as Alpine Linux wiki suggested:
(grep util-linux binutils findutils)
https://wiki.alpinelinux.org/wiki/How_to_get_regular_stuff_working
2017-09-07 18:00:08 +08:00
Xandor Schiefer
44ab611421
[Fix] unset NVM_RC_VERSION when unloading
2017-09-07 16:52:05 +02:00
Jordan Harband
c0b56d03a1
[Fix] install-latest-npm: io.js v1.0.x has weird behavior with npm v4.6.x.
...
- comment out node 0.6 test due to travis-ci breakage
2017-09-07 15:57:09 -07:00
Jordan Harband
d91b6197f3
v0.33.4
2017-09-04 22:59:50 -07:00
Jordan Harband
e3d1519567
[Fix] install-latest-npm: io.js v1.0.0 has weird behavior with npm v4.6.x.
2017-09-04 22:01:46 -07:00
Jordan Harband
6f19babbff
v0.33.3
2017-09-03 12:46:59 -07:00
Jordan Harband
b3e25b15f9
nvm_install_latest_npm: npm v5.4+ breaks on node v4-4.4 and v5-5.9, due to missing Buffer.alloc.
2017-09-02 14:04:37 -07:00
Jordan Harband
cf5272e1a0
[Fix] set -u: nvm install: fix unbound vars
...
Fixes #1587 .
2017-08-08 20:53:51 -07:00
Jordan Harband
3e1b4591bd
[New] install.sh: install bash_completion via script method.
...
Fixes #1588 .
2017-08-08 10:11:41 -07:00
Jordan Harband
389a53cca9
[Fix] set -u: nvm use: ensure these two vars don’t error out.
...
Fixes #1587 .
2017-08-08 00:05:38 -07:00
Peter Dave Hello
248706d5f8
[New] Clean up git reflog history before git gc
2017-07-14 00:37:58 +08:00
Peter Dave Hello
ab591b07ef
[New] Print $TERM_PROGRAM in nvm debug if it exists
2017-07-14 01:48:27 +08:00
Peter Dave Hello
38a568c9c9
[New] Add --auto to git gc to speed up install & upgrade
2017-07-11 09:19:02 +08:00
GeekBlogTV
b3bdbb2712
[Docs] updated to reflect current script output
2017-07-08 01:31:13 -05:00
Mike Ferrari
6921adb2f4
[Docs] add note about Linux troubleshooting
2017-06-26 12:22:34 -07:00
Peter Dave Hello
f37ddea78f
[Docs] Fix typos in Docker instructions
2017-07-08 18:50:06 +08:00
Peter Dave Hello
1e69c4c77d
[New] Speedup process to install nvm from git by dropping commit history
2017-04-02 15:49:01 +08:00
Peter Dave Hello
3ac49e5ef1
[New] Introduce Docker environment for nvm
2017-04-02 08:03:32 +08:00
Peter Dave Hello
0356839d05
[Fix] Adjust $CURL_COMPRESSED_FLAG usage for curl, fix #1562
2017-06-27 15:04:28 +08:00
Peter Dave Hello
b5034bb2b2
[bash completion] add missing install-latest-npm; remove undocumented clear-cache
2017-06-23 14:21:10 +08:00
Jiri Spac
d073bc96c7
[Docs] bump sample version numbers
2017-06-01 16:46:53 +02:00
Peter Dave Hello
11370fe823
[Fix] curl should fail if something wrong, fix #1556
2017-06-14 10:58:38 +08:00
Jordan Harband
cbdd41eee2
[New] nvm install: add --latest-npm option to automatically try to upgrade to the latest working version of npm.
...
- also add `nvm install-latest-npm` top-level command
2017-06-11 14:15:04 -07:00
J Huang
28fe93cd15
[Fix] nvm install -s: properly precompute clang version
2017-06-13 13:06:53 +08:00
J Huang
7965796569
[Fix] enable curl compression only on curl >=7.21.0
...
curl < 7.21.0 will output redirection reponse body to the output when compressed, which will cause tarball is prepended with redirection reponse body and leads to checksum mismatch.
- add `nvm_curl_use_compression` and `nvm_curl_version`
2017-06-10 15:25:26 +08:00
Shiva Bhusal
d2644b22f9
[Docs] Install script - Improve installation guide
...
If installation is prompted to be successful, yet `which nvm` command returns `not found` then you might need to restart your terminal instance. Try opening a new tab/window in your terminal and retry.
2017-06-03 11:49:33 +05:45
Nicolás Bevacqua
051ef09daf
Fix --version help text
2017-06-01 10:06:43 -03:00
Jordan Harband
3497474fef
[Docs] move the install script to the top; put the notes in a separate section.
2017-05-26 21:09:59 -07:00
Peter Dave Hello
c3c2d350e9
[Tests] Fix cache for WITHOUT_CURL tests in Travis
2017-05-19 13:58:14 +08:00
Jordan Harband
4f626eac0d
[Fix] set -u: when ALIAS is unset, don’t reference an unbound variable.
...
Fixes #1526 .
2017-05-16 22:58:26 -07:00
Weston Ganger
7f3145bc98
[New] add support for $NVM_DIR/default-packages file
2017-03-28 09:37:14 -07:00
Jordan Harband
dc5dfe3bc1
[Fix] set IFS to default for all nvm commands.
...
Fixes #1227 . Fixes #1244 . Fixes #1514 . Fixes #1518 .
2017-04-28 00:41:55 -07:00
Jordan Harband
accd6ae298
[Fix] ensure if npm link fails, that $IFS is not improperly set.
...
https://github.com/creationix/nvm/issues/1519#issuecomment-297850323
2017-04-28 00:39:48 -07:00
Jumpei Ogawa
caa7de37af
[Fix] set -u: ensure that potentially unbound variables aren’t called unchecked.
...
This commit is follow up for 853afbf .
Fixes remaining bug in #1363
2017-04-27 20:17:21 +09:00
Jordan Harband
0a95e77000
v0.33.2
2017-04-26 00:50:33 -07:00
Piper Chester
964c7b3115
[Docs] README.markdown → README.md
2017-04-08 09:19:15 -07:00
Peter Dave Hello
bee7b9970e
[Docs] Remove archlinux python tips in "Problems"
...
This is not working at all.
2017-04-23 23:33:42 +08:00
Peter Dave Hello
f38d21c529
[Docs] Improve "Problems" README section readability
2017-04-13 17:56:46 +08:00
Peter Dave Hello
7aa3448259
[Tests] Add curl back when WITHOUT_CURL test done since cache needs it
2017-04-09 13:13:25 +08:00
Peter Dave Hello
a66a9caa1c
[Tests] Use node v0.10.7 for thread para test as other install from src tests
2017-04-09 13:08:04 +08:00
Jordan Harband
ec2b02e187
npm run doctoc
2017-04-12 16:11:01 -07:00
rouzbeh84
0f25994c8e
[Docs] git install update
...
- added git as the last method before full manual install.
- added the directory on `git clone` command
- added the `git checkout v0.33.1` as the -v gets updated automatically
2017-04-06 16:23:50 -07:00
Peter Dave Hello
229c7e6f0c
[Tests] Test "make release" in Travis CI
2017-04-09 15:16:13 +08:00
Peter Dave Hello
d80686c7cd
[Makefile] Introduce _ensure-current-version to ensure version tags
2017-04-09 15:09:31 +08:00
Piper Chester
65aedc105a
[Docs] capitalize C++
2017-04-08 09:16:54 -07:00
Peter Dave Hello
153f8e7b31
[Fix] To confirm curl exists before detecting curl libz feature
2017-04-09 13:44:07 +08:00
Peter Dave Hello
e87f395b7a
[Refactor] minor "if" and "return" improvement
2017-04-06 03:55:42 +08:00
Peter Dave Hello
2ec2d31012
[Tests] Re-enable WITHOUT_CURL tests
2017-04-06 14:52:26 +08:00
Peter Dave Hello
daa9c3604d
[Fix] To confirm curl exists before detecting curl libz feature
2017-04-06 05:20:55 +08:00
Peter Dave Hello
ec3ba1973a
[New] install.sh: Parallel script download jobs
2017-04-05 04:54:38 +08:00
Peter Dave Hello
c6866eeb37
[Test] "nvm alias" lts test bug fix
2017-04-02 14:34:04 +08:00
Peter Dave Hello
7bd7a35cb2
[Docs] Improve nvm usage examples
...
Correct two double [tab] and try to improve its readability
2017-04-06 00:36:13 +08:00
Peter Dave Hello
e84bcaabdc
[Refactor] Improve profile detection in install script
2017-04-03 23:06:04 +08:00
Yanick Champoux
d4e3f0943b
[Docs] add 'fnm' as part of the fish alternatives
2017-04-04 15:01:39 -04:00
Peter Dave Hello
3f5fd57881
[Refactor] Reduce a sed command with pipe
2017-04-05 04:58:34 +08:00
Peter Dave Hello
f524bcb973
[Fix] Correct indent in install.sh
2017-04-05 05:01:54 +08:00
Peter Dave Hello
a0534b720a
[Tests] Reduce apt package dependencies calculation complexity
2017-04-02 16:48:28 +08:00
Peter Dave Hello
424056c839
[Tests] Remove ShellCheck manual dependency install under Ubuntu 14.04
2017-04-02 15:49:01 +08:00
Peter Dave Hello
18df8e3d2e
[Tests] Remove ppa source since we migrated to Ubuntu Trusty
2017-04-02 07:24:56 +08:00
Jordan Harband
4249b1c2bb
[Fix] nvm_ensure_version_installed: add system support.
...
Relates to #1238
2017-03-31 00:52:56 -07:00
Peter Dave Hello
5776cc952a
[copyright] update to 2017
2017-03-29 17:54:15 +08:00
Peter Dave Hello
6c24346af5
[New] Add missing commands in bash_completion
2017-03-30 19:49:30 +08:00
Peter Dave Hello
450088e51a
[Refactor] Improve if conditoion logic in "use"
2017-03-30 00:41:31 +08:00
Peter Dave Hello
9a6e657e53
[Docs] Remove curl --compressed notes since we added its detection
2017-03-29 17:51:23 +08:00
Peter Dave Hello
8fc7e854de
[Tests] Comment out ksh dependency installation, cc #574
...
- Mistakenly uncommented in 70370a857f
- per afba4e08fd / #574
2017-03-29 18:05:15 +08:00
Peter Dave Hello
93c1036758
[Tests] Move to Ubuntu 14.04 on Travis CI
...
Since Ubuntu 12.04 is pretty old now, it's also going to EOL next month,
maybe we can just move on Ubuntu 14.04 first.
2017-03-26 05:19:57 +08:00
Ægir Örn Símonarson
4411abf82e
[Docs] Add Mac OS "troubleshooting" to README
...
It has a section on nvm node version not being found in vim.
2017-03-29 19:04:31 -07:00
Peter Dave Hello
a36af70571
[Docs] Update issue #900 title in README.markdown
2017-03-28 22:47:34 +08:00
Peter Dave Hello
059ab0e1ac
[Refactor] Make the code a little bit cleaner
2017-03-28 15:27:49 +08:00
Jordan Harband
b9f9977cdd
[Fix] nvm install -s: npm detection
...
- add `nvm_use_if_needed`
- add `nvm_install_npm_if_needed`
2017-03-27 15:00:50 -07:00
Peter Dave Hello
676fff0219
[completions] Remove nospace in bash_completion
2017-03-26 06:10:53 +08:00
Peter Dave Hello
7b253c8c0a
[New] Supercharge nvm debug output
...
Try to get shell version, OS and its version, curl/wget/git version.
2017-03-23 14:48:00 +08:00
Peter Dave Hello
f344d0694b
[Tests] Move cabel, nvm & npm install into TravisCI "install" section
2017-03-26 05:22:48 +08:00
Peter Dave Hello
d9704471ff
[Tests] Cache "node_modules" in CI
2017-03-26 04:06:32 +08:00
Peter Dave Hello
82aaa0a20d
[Tests] Do not install nodejs, npm deps for SHELLCHECK
2017-03-25 16:57:42 +08:00
Peter Dave Hello
e41197ea94
[Tests] Improve npm dependencies installaion in travis ci
2017-03-24 13:46:50 +08:00
Peter Dave Hello
6ef2be8db4
[Docs] Get https://nodejs.org/dist header instead of its body, fix #1451
2017-03-23 14:12:31 +08:00
Peter Dave Hello
d465493832
[Docs] Use https protocol for nodejs.org in issue template
2017-03-23 14:07:07 +08:00
Peter Dave Hello
0e5fba2dfb
[Docs] Also add --compressed for curl in issue template, cc #1437
2017-03-23 14:01:46 +08:00
Peter Dave Hello
973dfc6d4a
[New] Dynamically detect if curl supports --compressed
2017-03-23 16:51:20 +08:00
Peter Dave Hello
6a3b1dd2c3
[New] Enable curl auto compression/decompression
...
Enable `--compressed` parameter on curl to automatically enable
compression on request content by sending coressponding header, if the
server side supports compression format like deflate or gzip, curl will
also decompress the content automatically, so there is no additional
works need to done manually on client side, but just enjoy the benifits
of bandwidth and time saving!
Take https://nodejs.org/dist/index.tab as an example which is last
modified on Tue, 14 Mar 2017 22:41:05 GMT, the compressed transmission
only take 4829 bytes howevet the not compressed on taks 48000 bytes,
which is about 10 times larger!
This feature can be traced back to Sep 3 2002, in curl commit:
- 64bbe9dfaf
So should be supported on various versions widely.
2017-03-23 16:51:20 +08:00
Peter Dave Hello
4c97828f79
Update .gitattributes
2017-03-23 04:52:46 +08:00
Peter Dave Hello
ccd9697ef2
Delete .npmignore
2017-03-23 08:47:53 +08:00
Peter Dave Hello
20a40dd8c2
[Docs] Update CONTRIBUTING.md
2017-03-23 04:46:49 +08:00
Peter Dave Hello
237c3a78e2
[Tests] Add retry on urchin setup which has no built in retry feature
...
Unlike other built in functions like git fetch or apt-get dependencies,
manual installations won't have retry by default, enabling retry could
help reduce the impact of network issues and furthur prevent getting
build error like Job #1956.21:
- https://travis-ci.org/creationix/nvm/jobs/212640007
Ref:
- https://docs.travis-ci.com/user/common-build-problems/
2017-03-22 20:42:33 +08:00
Peter Dave Hello
fa3631fee3
[Refactor] Add nvm_has_non_aliased
2017-03-20 16:57:26 +08:00
Peter Dave Hello
316c9f34c6
[Performance] Use awk's comparison to save a pipe to grep
2017-03-20 04:50:32 +08:00
Peter Dave Hello
6cb12b0f99
[Performance] Improve awk usage
2017-03-21 04:23:53 +08:00
Peter Dave Hello
6ed73b0696
[Refactor] Improve sed usage for performance
2017-03-20 17:53:44 -07:00
Shirsh Zibbu
dcd008ff61
[Refactor] remove unnecessary quotes
2017-03-07 05:46:45 +05:30
Peter Dave Hello
039afb9470
[Docs] Update Installation section
...
1. If we are not going to install nodejs or io.js from source, we may
not need to have c++ compiler or libssl-dev package
2. the `build-essential` and `libssl-dev` packages should work on all
the Debian and Ubuntu based GNU/Linux distros
3. Remove useless blank lines
2017-03-16 04:22:29 +08:00
Peter Dave Hello
b879628394
[Fix] declare MANPATH if and only if it's not set
...
By manpath's man page in Ubuntu 16.04:
> If $MANPATH is set, manpath will simply display its contents and issue
> a warning.
By fa22d712ff for #1413 , `nvm` now will
declare the "MANPATH" variable, no matter if it's set or not, so in the
situation that $MANPATH is set, you'll get the warning:
> manpath: warning: $MANPATH set, ignoring /etc/manpath.config
2017-03-19 02:19:14 +08:00
Jordan Harband
9b2629384f
[Fix] nvm install -s: ensure additional params lack a trailing space.
...
Note: I believe this does not fix the underlying issue in zsh, which is
that it does not split up `$ADDITIONAL_PARAMETERS` and instead passes
the contents as one single argument.
2017-03-17 23:20:17 -07:00
Peter Dave Hello
50ae1e5199
[Fix] Install failed should return correct exit status, fix #1347
2016-12-10 00:20:04 +08:00
Matthew McEachen
1e6b5ce039
[Fix] stop setting mirror env vars unnecessarily
...
Fixes #1429
2017-03-16 23:54:55 -07:00
Peter Dave Hello
952d0067b3
[Fix] bash_completion should make sure nvm loaded
2017-03-15 14:34:28 +08:00
Peter Dave Hello
911ff87601
[Fix] bash_completion source prompt, remove &&
2017-03-15 14:34:28 +08:00
Peter Dave Hello
9593616b8c
[Fix] NVM_PROFILE bash/zsh detection in installation
2017-03-15 14:34:28 +08:00
Peter Dave Hello
d8538dad84
[Refactor] nvm.sh minor refactor
2017-03-14 17:45:54 +08:00
Alex Ryan
257f16fb13
[Docs] fi README typo
2017-03-13 03:16:08 -07:00
Peter Dave Hello
182a18d911
[Fix] Github should be GitHub
2017-03-09 23:02:08 +08:00
Peter Dave Hello
8e6201b5b1
[Tests] Update test mocks
2017-03-10 18:02:47 +08:00
Dominyk Tiller
b676bf7d0e
[Fix] checksums: remove libressl command support
...
This was an "oops" on my part when I was testing changes for my work
that was later adapted & merged in f1bca106a8 .
LibreSSL is never installed as a `libressl` as it is intended to be a
replacement for `openssl` as much as possible, and consequently the
executable is called `openssl`.
2017-03-08 12:54:37 +00:00
Jordan Harband
fa22d712ff
[Fix] ensure this variable is not unbound.
...
Fixes #1413 .
2017-03-06 09:35:58 -08:00
Jordan Harband
286090b607
Merge pull request #1408 from PeterDaveHello/doctoc
...
[Docs] [Tests] Introduce doctoc for "Table of Contents" autogeneration
2017-03-01 00:57:05 -08:00
Peter Dave Hello
1689b174b3
[Test] Add doctoc up-to-date test in TravisCI
2017-02-28 08:45:48 +08:00
Peter Dave Hello
f8aaa32d17
README minor adjustment, generate "Table of Content" via doctoc
2017-02-27 18:33:41 +08:00
Peter Dave Hello
3dc5777b66
Add doctoc devDependency and npm script
...
Will use it to generate "Table of Contents"
2017-02-27 01:35:36 +08:00
Jordan Harband
6669e91bd8
v0.33.1
2017-02-20 17:59:20 -08:00
John-David Dalton
7c271729ef
Enable working without tput.
2017-02-19 23:01:47 -08:00
Jordan Harband
b54e147442
[Fix] nvm unload: run nvm deactivate before unsetting everything.
...
Fixes #1399 .
2017-02-18 00:50:33 -08:00
Jordan Harband
e7e4a9b3d6
[Fix] unset NVM_RC_VERSION env var immediately after it’s no longer needed.
...
Relates to #1399 .
2017-02-18 00:48:41 -08:00
Jordan Harband
49e446dac1
[debug] include mirrors in nvm debug output.
2017-02-14 09:06:23 -08:00
Robin Schneider
1b8b7b31ed
Add CII best practices badge
...
Thanks to @ljharb for applying for it!
Related to: #1395
2017-02-12 11:00:10 +01:00
Jordan Harband
6fc0241c21
[Fix] install.sh: only un-interpolate $HOME for the profile source string.
...
Fixes #1384 .
2017-02-12 00:32:49 -08:00
Jordan Harband
affcc5087c
[Fix] set -e: nvm install lts/something: call nvm_ensure_default_set with the proper value.
...
Fixes #1394 .
2017-02-11 23:19:29 -08:00
Ryan Wheale
1b2305232f
[install script] Use $HOME variable in NVM_DIR
2017-01-12 10:55:56 -07:00
butlerx
f1a5f2a15f
[Docs] [Fix] zsh autochange: only nvm install if we can’t nvm use
2016-12-19 12:00:47 +00:00
Jordan Harband
40e40975eb
v0.33.0
2016-12-29 21:22:13 -10:00
Jordan Harband
ae8eb80d0b
make release should pop up the EDITOR for the annotated tag.
2016-12-29 21:22:08 -10:00
Jordan Harband
186509be24
[github] modify the issue template
2016-12-28 09:04:12 -10:00
Jordan Harband
853afbf595
Revert "Revert "[Fix] set -u: ensure that potentially unbound variables aren’t called unchecked.""
...
This reverts commit a8c465018e .
Fixes #1363 .
2016-12-26 21:57:55 -08:00
Jordan Harband
a8c465018e
Revert "[Fix] set -u: ensure that potentially unbound variables aren’t called unchecked."
...
This reverts commit 60239e39cd .
2016-12-25 12:18:56 -08:00
Jordan Harband
1cac5194b9
[github] Flesh out issue template a bit.
2016-12-25 12:07:08 -08:00
Peter Dave Hello
71b49f1744
Add GitHub issue template
2016-12-26 02:46:49 +08:00
Jordan Harband
60239e39cd
[Fix] set -u: ensure that potentially unbound variables aren’t called unchecked.
...
Fixes #1363 .
2016-12-25 11:31:37 -08:00
Jordan Harband
0f6997d90a
[Tests] remove the unused and broken $NVM_PATH.
2016-12-16 11:23:23 -08:00
Jordan Harband
fcd6331f09
[Fix] remove the unused and broken $NVM_PATH.
...
Added in 359a83e . Fixes #1353 .
2016-12-16 10:57:22 -08:00
Peter Dave Hello
2af47b0034
[Docs] Remove mixed addtional indent in the Bash completion codeblock
2016-12-03 21:33:54 +08:00
Peter Dave Hello
7c0dc2be68
[Docs] Make the indent in readme consistenly use soft tabs
2016-12-03 21:32:41 +08:00
Peter Dave Hello
d5340539d9
[Docs] Link version badge to the release page
2016-12-02 19:33:48 +08:00
Peter Dave Hello
45771499ee
[Fix] nvm should respect CC/CXX env var
...
- Also set CC for Freebsd, not only CXX
- Also set CC=cc, CXX=c++ on Mac OS by default as upstream
Reference:
1bd871655a/configure (L16-L17)
2016-11-29 15:30:01 +08:00
Peter Dave Hello
84575cf353
[Refactor] Use "case" instead of multi "if"
2016-11-28 03:39:48 +08:00
Jordan Harband
47c60dfc1d
[Tests] add test to ensure that nvm unload unloads all functions.
2016-11-28 12:50:35 -08:00
Peter Dave Hello
c96c561c88
[Fix] nvm unload missed node_version_has_solaris_binary()
2016-11-28 18:35:32 +08:00
Peter Dave Hello
f29cd1a2ab
[Fix] nvm unload missed NVM_CD_FLAGS NVM_BIN NVM_MAKE_JOBS NVM_PATH
2016-11-28 04:14:21 +08:00
Peter Dave Hello
00a1ee6c4d
[Fix] nvm unload missed nvm_cache_dir() nvm_cd()
2016-11-28 04:10:42 +08:00
George Adams
a7648ebd9f
[Fix] nvm install -s: aix: detect number of threads on aix and not just number of processors
2016-11-23 06:36:52 -05:00
Peter Dave Hello
26fec8035f
[Docs] update alpine environment installation info
2016-11-28 02:43:59 +08:00
Peter Dave Hello
c58540666d
[Docs] update readme about compile nodejs v0.10+ from src
2016-11-27 21:21:49 +08:00
Gibson Fahnestock
7f1917d0aa
[Refactor] Rename NVM_CPU_THREADS to NVM_CPU_CORES
2016-11-24 18:04:14 +00:00
Peter Dave Hello
7d08ad4311
[Tests] also cache $HOME/.ghc for cabal
2016-11-25 23:57:08 +08:00
Jordan Harband
5b820a453c
[Refactor] avoid S2181 spellcheck error.
2016-11-25 00:56:28 -06:00
Jordan Harband
af73102481
[Fix] fix a typo i made in 20ae7ee309
2016-11-25 00:35:33 -06:00
Peter Dave Hello
20ae7ee309
[Tests] Run shellcheck on nvm-exec in Travis CI
2016-11-24 14:07:56 +08:00
Peter Dave Hello
ac63638469
[Fix] add missing quotes for $NODE_VERSION in nvm-exec
2016-11-24 13:44:39 +08:00
Peter Dave Hello
7ed1e71944
[Refactor] Add missing backslash for dots
...
Related: #1279 , 2a2b8bd , cadbbce
2016-11-24 13:47:20 +08:00
Peter Dave Hello
b7f9fbd3a7
[Tests] run shellcheck for bash_completion in Travis CI
2016-11-24 16:00:23 +08:00
Peter Dave Hello
9963660a11
[shellcheck] SC1004,SC2086 fixes in bash_completion
2016-11-24 15:59:16 +08:00
Peter Dave Hello
60ba4bca0c
[Tests] Remove not working clang part until we refactor the workflow
2016-11-24 14:38:22 +08:00
Peter Dave Hello
e47b313b85
[readme] Auto install not exist version in zsh .nvmrc script
...
Fixes #1272 .
2016-11-14 19:44:55 +08:00
Peter Dave Hello
4b4e71f05c
[shellcheck] disable "Check exit code directly" warning on line 273, 666
...
We need to use both the exit state and result form the previous commit,
so SC2181 should be disabled here.
2016-11-23 22:04:45 +08:00
Peter Dave Hello
5508f8dc70
[Tests] switch to use Cabal to install ShellCheck
...
1. This can help speed up the apt process since we decrease the
complexity of apt sources and package dependencies resolving by dropping
an additional ppa source.
2. Stack doesn't update ShellCheck to v0.4.5 after it has been released
more than one month, Cabal can provide ShellCheck v0.4.5
2016-11-23 22:04:45 +08:00
Peter Dave Hello
1ffa41886a
[New] Install bash programmble completions automatically
2015-05-23 14:07:34 +08:00
Peter Dave Hello
49e8068271
[CI] Drop manual apt source and package installation
...
- Use Travis CI apt addon source whitelist to load apt source
- Use Travis CI apt addon to install additional packages
This can prevent duplicating apt package list update and dependencies
calculation which means it can speed up the CI build.
2016-11-17 21:11:48 +08:00
Jordan Harband
ab6be9c0c1
Merge pull request #1300 from PeterDaveHello/clang-llvm
...
[New] `nvm install -s`: Use clang as C/C++ compiler if detected
Fixes #902
2016-11-17 00:19:04 -08:00
Peter Dave Hello
61ae478c38
[Doc] Add current version on the top of README
2016-11-16 21:23:20 +08:00
Peter Dave Hello
8c03637023
[Fix] nvm install: Handle 'N/A' version instead of asking to install it
...
Fixes #1304 .
2016-11-14 19:31:35 +08:00
Peter Dave Hello
65acb403ce
Add nvm_clang_version to ensure clang version > 3.5
2016-11-14 12:28:41 +08:00
Peter Dave Hello
9f67d3ef66
[Tests] Upgrade clang from llvm in Travis-ci
2016-11-14 12:04:36 +08:00
Peter Dave Hello
38934bf16c
[New] nvm install -s: Use clang as C/C++ compiler if detected.
...
Fixes #902 .
2016-11-14 05:39:34 +08:00
Peter Dave Hello
03608291a6
[caching] nvm install: Do not remove src dir after compilation succeeds
...
This will help speed up the installation time for the non-first time
installation, especially can speed up the build time and test time on
Travis-CI as we'll cache .cache dir.
2016-11-14 03:45:52 +08:00
Peter Dave Hello
fd33179119
Revert "Also run git gc after nvm upgraded"
...
This reverts commit ce7f6d6e52 .
2016-11-14 06:19:29 +08:00
Jordan Harband
e5316ddbe3
[Fix] allow uninstalls when files are nonwritable but self-owned.
...
Fixes #1270 .
2016-11-13 00:09:29 -08:00
Peter Dave Hello
eab41ed8ef
[Fix] add missing "command" prefix call for some commands
2016-11-13 04:53:41 +08:00
Peter Dave Hello
c5303a6973
Improve nvm_download_artifact() process, fix #1291
...
- Delete broken/checksum not matched local cache
- More output message.
2016-11-13 04:02:06 +08:00
Peter Dave Hello
7ef38cf7e8
fix/retab indent in bash_completion [no-ci]
2016-11-11 19:43:36 +08:00
George Adams
8f82eab5db
Add AIX support
...
Currently AIX isn't supported in nvm so I have made a few small changes
to make this work:
change tar to gtar for AIX
change make to gmake for AIX
Set ARCH as ppc64 for AIX
2016-11-10 13:52:00 -05:00
Peter Dave Hello
9c92b5a4ea
[New] nvm install: Print the version that is being installed
2016-11-06 20:43:47 +08:00
Peter Dave Hello
f7763c8ba9
[Tests] die() in tests should quote "$@" for echo
2016-11-07 03:34:36 +08:00
Jordan Harband
24f8ae5c46
[New] support external install hook “$NVM_INSTALL_THIRD_PARTY_HOOK”.
...
Fixes #1207 .
2016-11-03 23:42:55 -07:00
Qiangjun Ran
cadbbced20
[Tests] Replace all dots with backslash dots
2016-11-03 23:44:59 -07:00
Qiangjun Ran
2a2b8bdeb3
[Robustness] use backslash when sourcing in case of overridden dot
...
Fixes #1278 .
2016-11-03 23:44:20 -07:00
Jordan Harband
942e9ab1f5
[Fix] bypass aliased cd in a few places.
...
Fixes #1284 .
2016-11-03 10:08:24 -07:00
Peter Dave Hello
a458ccbb87
Retab tab to 4 spaces and use echo instead of cat in install.sh
2016-10-29 11:17:54 +08:00
Peter Dave Hello
ce7f6d6e52
Also run git gc after nvm upgraded
2016-10-28 09:08:54 +08:00
Peter Dave Hello
f3cddf8271
[Doc] Bold leading "Note:" in readme for readability
2016-10-28 11:20:12 +08:00
Jordan Harband
589a9112bd
v0.32.1
2016-10-18 13:16:51 -07:00
Jordan Harband
76fe1ab1c6
[Fix] ensure that lts/* points to boron/latest, not argon/earliest.
...
- update test mocks
- fix tests for Boron release
Fixes #1268 .
2016-10-18 11:33:07 -07:00
sunxiaobo
a338f98a5a
accerlate nvm invoke when change directory
2016-10-14 16:31:26 +08:00
Hiro Asari
4b88613508
Consolidate APT packages
...
Consolidate APT packages definition into one place, so that the folding is displayed correctly.
2016-10-12 13:58:24 -04:00
Atsushi Yamamoto
3342367981
Fix indent at L2672
2016-10-08 18:01:27 -07:00
Jordan Harband
f9e14b7d4d
[Fix] nvm uninstall: work around nomatch zsh option.
...
Fixes #1228 .
2016-10-04 01:43:24 -07:00
Jordan Harband
a29d0e49dc
[Tests] improve + update test mocks
2016-09-28 22:42:48 -07:00
Peter Dave Hello
702d52f23b
update test mocks
2016-09-29 10:27:24 +08:00
Joseph Frazier
7ca1186dbc
Fix "Manual upgrade" link in readme
2016-09-27 21:40:36 -04:00
Jordan Harband
160a39c844
[Refactor] fix copy-paste error from 5c68141ede
2016-09-18 19:06:18 -07:00
Jordan Harband
d12ccb130d
[Fix] zsh: when warncreateglobal is set, this line warns for some reason. Use env to suppress it.
...
Fixes #1236 .
2016-09-18 13:39:50 -07:00
Jordan Harband
acbdd9a3fa
[Fix] Fix trailing whitespace in nvm ls-remote
2016-09-18 12:26:06 -07:00
Jordan Harband
f60edbb6b4
[Tests] update test mocks
2016-09-18 11:58:18 -07:00
Jordan Harband
256e75c789
[Fix] Remove un-local var EXIT_CODE.
...
Might possibly be a fix to part of #1236
2016-09-18 02:00:32 -07:00
Peter Dave Hello
8b3cf6cbcb
add a menu for readme for easier readability
2016-09-18 16:10:21 +08:00
Jordan Harband
5c68141ede
[Refactor] nvm ls-remote: make the main ls-remote command call into nvm_remote_versions directly.
2016-09-15 23:52:01 -07:00
Jordan Harband
dc1d3aa943
[Refactor] nvm_install_source, nvm_install_binary, nvm_download_artifact: ensure a version is provided.
2016-09-17 09:24:42 -07:00
Jordan Harband
51b21bcad1
[Refactor] Use ||: and &&: when appropriate
2016-09-16 23:16:58 -07:00
Erez Zukerman
4a7973ea61
Removes fin from the readme
...
If you go to the [fin repo](https://github.com/fisherman/fin ) you'll see that it isn't a node version manager, but simply a plugin manager for Fish. Seems out of scope for the readme, and there are other plugin solutions for fish as well. I suggest removing the reference.
2016-09-13 10:25:17 -04:00
Peter Dave Hello
68761c3200
Manually run git gc after nvm installation, fix #1226
2016-09-17 13:24:04 +08:00
Peter Dave Hello
ef5670fd82
Bump to require git v1.7+ and add docs, fix #1232
2016-09-17 13:23:04 +08:00
b264
9db5c06a63
[Docs] copyedit readme
2016-09-16 16:19:55 -05:00
Jordan Harband
3b5f088e01
[Refactor] nvm_ls_remote_index_tab: clean up to use nvm_get_mirror
2016-09-15 22:45:10 -07:00
Jordan Harband
dca0220275
[Refactor] nvm_install_binary: remove unused nvm_get_mirror call
2016-09-15 21:40:44 -07:00
Jordan Harband
63fe22d635
v0.32.0
2016-09-15 15:02:56 -07:00
Jordan Harband
01695056af
[Road Map] update with completed feature
2016-09-15 14:23:30 -07:00
Jordan Harband
25c7260f1e
[Tests] improve test matrix
2016-09-04 11:28:35 -07:00
Jordan Harband
ecba036cbf
[Tests] show type output for debugging
2015-12-21 23:59:44 -08:00
Jordan Harband
332f413eb3
[New] expand xz support to more versions.
...
Per https://github.com/nodejs/node/pull/4894#issuecomment-175989848
2016-02-09 11:19:14 -08:00
Jordan Harband
6784767bea
Merge pull request #1204 from ljharb/iojs_source
...
[New] [Refactor] Rewrite installation code path
2016-09-03 01:19:09 -07:00
Jordan Harband
25fa40e7cb
v0.31.7
2016-09-02 23:43:04 -07:00
Jordan Harband
6abc36ee4f
[Fix] ensure LTS alias dir exists before writing to it.
...
Fixes #1216
2016-08-29 09:15:57 -07:00
Jordan Harband
68bf93514b
[Fix] when originally installed without git, ensure it can be upgraded to use git.
...
Fixes #1212 . Closes #1213 .
2016-08-25 00:59:32 -07:00
Jordan Harband
7e18328a88
Merge pull request #1214 from ljharb/shellcheck
...
[Tests] add `shellcheck`
2016-08-25 01:00:13 -07:00
Jordan Harband
85c5e12710
[Refactor] install.sh: use curlies in a few places.
2016-08-24 00:50:08 -07:00
Jordan Harband
d0180f7eb2
[shellcheck] build from source to get v0.4.4
2016-08-24 00:30:08 -07:00
Jordan Harband
5ba6e748b7
[Tests] run shellcheck in tests.
2016-08-23 23:07:42 -07:00
Jordan Harband
31c68adbcf
v0.31.6
2016-08-23 14:36:15 -07:00
Aria Stewart
451b67fe78
Revert %s-formatting for SOURCE_STR when writing to shell profile
2016-08-23 17:32:28 -04:00
Jordan Harband
d179810b25
v0.31.5
2016-08-23 11:12:21 -07:00
Jordan Harband
1ac7e236b1
[New] Add lts/foo support to remote commands.
...
- `nvm ls-remote`
- `nvm version-remote`
- `nvm install`
- `nvm uninstall`
Document existing support:
- `nvm use`
- `nvm exec`
- `nvm run`
Fixes #1208 .
2016-08-23 10:58:00 -07:00
Jordan Harband
681c81ad30
[shellcheck] clean up install.sh
2016-08-23 00:45:38 -07:00
Jordan Harband
2228323c0b
[shellcheck] disable intentional violations via comments
2016-08-23 00:31:39 -07:00
Jordan Harband
cbeb654692
[shellcheck] properly quote arguments.
2016-08-23 00:31:36 -07:00
Jordan Harband
24a9c089ff
[shellcheck] fix incorrect A && B || C usages.
2016-08-23 00:31:25 -07:00
Jordan Harband
d5f1d4530f
[Tests] chmod a-x on io.js source tests, for now.
...
TODO: fix.
2016-08-21 22:52:54 -07:00
Jordan Harband
bc4639c1c9
[Docs] add a road map.
2016-08-21 12:11:43 -07:00
Jordan Harband
a5d7ff7440
[Tests] explicitly set $CXX and $CC
2016-08-15 14:45:42 -07:00
Jordan Harband
c7515bf108
[Tests] trying an alternative syntax for gcc upgrades
2016-08-15 12:58:51 -07:00
Jordan Harband
f178a09d89
[Tests] update gcc to 4.8
2016-08-15 12:55:49 -07:00
Jordan Harband
54cc3a383e
[Tests] set -ex options on more tests
2016-08-14 09:48:25 -07:00
Jordan Harband
d3d768adcd
Add nvm_get_mirror
2016-08-10 23:09:54 -07:00
Jordan Harband
9c65197b22
Add nvm_get_checksum_alg
2016-08-09 22:24:09 -07:00
Jordan Harband
bd3ca47714
[Fix] nvm unload: ensure all functions are unset
2016-08-11 10:58:16 -07:00
Jordan Harband
ec4efa3ec7
[Refactor] nvm install: remove unused REINSTALL_PACKAGES_FROM argument to inner installation helpers.
2016-08-11 10:42:32 -07:00
Jordan Harband
08cbcf2254
[Fix] when not using xz on merged node versions, use z to extract, not x
2016-08-10 23:26:29 -07:00
Jordan Harband
4aa6902dbe
[Refactor] nvm_install_merged_node_binary: reduce nesting, fix var curlies.
2016-08-10 16:57:03 -07:00
Jordan Harband
0678652bd3
[New] nvm ls/nvm ls-remote/nvm alias: add --no-colors
2016-08-09 14:46:19 -07:00
Jordan Harband
206878460c
[Refactor] always shift first argument to nvm
2016-08-09 13:33:43 -07:00
Jordan Harband
79270a579c
[Refactor] create nvm_list_aliases
2016-08-06 22:33:37 -07:00
Jordan Harband
b6eb565ea1
[Refactor] nvm alias: reorganize so alias listing is done last
2016-08-08 15:50:05 -07:00
Jordan Harband
091c64c7c5
[Refactor] nvm alias: add in ---based argument support.
2016-08-08 13:37:14 -07:00
Jordan Harband
21b8f556b2
[Refactor] nvm alias: use named vars instead of positional args.
2016-08-08 13:21:42 -07:00
Jordan Harband
a3bc4d3e62
[Refactor] nvm alias: shift out the “alias”
2016-08-08 13:18:53 -07:00
Jordan Harband
150ed490d0
[Refactor] use curlies with variables
2016-08-07 23:31:16 -07:00
Peter Dave Hello
364096a3c3
Add trailing newline char to $SOURCE_STR
...
Line 302/301 `printf "$SOURCE_STR"` is missing a trailing newline char,
while line 281/282 and 285/286 have their own new line char, so I just
remove the manually added newline char, and add it to the end of the
variable "$SOURCE_STR", so no more manually newline char needed there.
2016-08-05 15:52:01 +08:00
Peter Dave Hello
88fc93a71b
Fix nvm dir path in install script, fix #1189
2016-08-05 15:23:09 +08:00
Jordan Harband
f9f140ec13
[Performance] make auto-using faster.
...
Per https://github.com/creationix/nvm/issues/539#issuecomment-236830764
2016-08-02 00:59:51 -07:00
Luke Childs
f653bdc606
Print shell version on Travis
2016-07-31 21:14:30 +01:00
Jordan Harband
31e58d1827
v0.31.4
2016-07-29 16:54:13 -07:00
Julien Gilli
a32b914bab
Fix nvm on SmartOS setups using 64 bits pkgsrc repository
...
On SmartOS setups using 64 bits pkgsrc repositories, `nvm_get_arch`
would not handle pkg_info's output properly.
This would result in nvm not being to install any node binary when
running on SmartOS setups using a 64 bits pkgsrc repository.
This change fixes this problem, and fixes the tests suite on similar
setups.
2016-07-29 14:08:31 -07:00
Joe Lencioni
f51b1bf8ae
Document required git version
...
git-describe was taught `--abbrev=0` in 1.5.0:
https://github.com/git/git/blob/master/Documentation/RelNotes/1.5.0.txt
git-describe was taught `--match` in 1.5.5:
https://github.com/git/git/blob/master/Documentation/RelNotes/1.5.5.txt
I don't see anything else potentially weird in here, so I think it is
safe to proclaim that the minimum git version required to run these
commands is 1.5.5.
Documenting this minimum version required here should help people debug
possible issues and help maintainers of this project understand the
impacts of modifying these commands in the future.
2016-07-28 10:51:00 -07:00
Jordan Harband
c874a17479
Merge pull request #1179 from lencioni/improve-upgrade-instructions
...
[Docs] Improve installation and upgrade instructions
2016-07-28 10:41:31 -07:00
Joe Lencioni
6eef4ce4d2
Use NVM_DIR in installation instructions
...
As suggested by @ljharb, this might be a little cleaner. I'm not
entirely sure, but in any case, it is consistent with the upgrade
instructions, so that is nice.
2016-07-28 10:36:51 -07:00
Joe Lencioni
54476476ab
Use subshells for installation and upgrade instructions
...
I recently upgraded my copy of nvm and I was disappointed to be dropped
in the .nvm directory at the end of it. I also didn't like having to
copy and paste two separate blocks of code into my terminal, because I
missed the second one the first time around and was left in a slightly
confusing state. So, I decided to make this easier by utilizing
subshells and moving all of the instructions into one code block in this
document. I think this will improve people's experience maintaining this
tool.
2016-07-28 10:36:51 -07:00
Joe Lencioni
87a3a4425d
Ensure git describe only matches version tags
...
`git describe` will match the latest tags, regardless of what it looks
like. We can make this a little safer by adding a `--match` flag to
match tags that look like version tags. This allows the maintainers of
this repo to more safely add other types of tags if they so wish,
without causing people to install or upgrade to those versions.
2016-07-28 10:36:51 -07:00
Joe Lencioni
17a3272b8a
Ensure git describe gives latest tag
...
I recently ran the upgrade instructions and I ended up with the version
I was already on. This happened because `git describe` describes a
commit using the most recent tag reachable from it. Since I already had
a tag checked out, it was describing the tag I had already checked out.
Thankfully, `git describe` accepts an optional commit-ish, which it will
use instead of what we have currently checked out. Testing this in my
terminal now gives me the latest tag on origin, which is what I am
interested in when updating to the latest version.
~/.nvm ❯❯❯ git describe --abbrev=0 --tags
v0.30.1
~/.nvm ❯❯❯ git describe --abbrev=0 --tags origin
v0.31.3
I also added it to the manual install instructions for consistency and
extra safety.
2016-07-28 10:36:51 -07:00
Luke Childs
c08010f610
Fix typo in readme
2016-07-28 17:48:23 +01:00
Jordan Harband
2ee8ec886f
Merge pull request #1178 from lukechilds/installation-improvements
...
Installation improvements
2016-07-28 08:49:28 -07:00
Luke Childs
978f7b4435
Only source nvm, not entire profile
2016-07-27 22:44:51 +01:00
Luke Childs
3417e9d9a3
Add message explaining how to use nvm
2016-07-27 22:39:50 +01:00
Luke Childs
eb4de62bc1
Remove incorrect message
2016-07-27 21:43:13 +01:00
Jordan Harband
8a199e00a2
Merge pull request #1173 from wiserweb/master
...
[Docs] Specify the lines that will be added by the installation script
2016-07-26 08:30:56 -07:00
wiserweb
6ac7ecf7dc
Update README.markdown
...
Specifies the lines that will be added by the installation script.
2016-07-26 02:31:07 -04:00
Luke Childs
a09f225ec7
Update zsh-nvm upgrade command in readme
2016-07-24 21:13:51 +01:00
Jordan Harband
e0e1c0379a
Merge pull request #1163 from sebthom/patch-1
...
[Fix] fix "find: warning: Unix filenames usually don't contain slashes" warning
Fixes #871 .
2016-07-20 10:30:47 -07:00
Sebastian Thomschke
f4d57cc17d
Fix for #871 find: warning: Unix filenames usually don't contain slashes
2016-07-20 13:31:47 +02:00
Jordan Harband
56417f88f9
v0.31.3
2016-07-20 00:51:48 -07:00
Jordan Harband
dbb65d98c2
Merge pull request #1070 from ljharb/display_lts_remote
...
[New] Add remote LTS support
2016-07-20 00:22:29 -07:00
Jordan Harband
fb49bf6f70
completion: add LTS aliases.
2016-07-18 23:40:32 -07:00
Jordan Harband
28822ff81e
[Docs] update README for LTS.
2016-07-18 23:39:35 -07:00
Jordan Harband
876d117376
[Tests] add nvm run --lts tests.
2016-07-18 00:35:01 -07:00
Jordan Harband
b2c5616d7a
[Tests] avoid accidental command execution in test failure message.
2016-07-17 19:54:26 -07:00
Jordan Harband
58a82a1d31
[Tests] add nvm exec --lts tests.
2016-07-17 19:54:10 -07:00
Jordan Harband
ecbd7d4572
[Tests] use -ex option during tests when possible
...
Relates to #1130
2016-07-10 19:58:32 -07:00
Jordan Harband
186eb8838d
[Tests] make “nvm use iojs” test actually test that thing.
2016-07-07 15:38:34 -07:00
Jordan Harband
803adac676
[Fix] ensure proper checking of the “shwordsplit” zsh option.
2016-07-08 02:11:51 -07:00
Jordan Harband
940f850f8d
[Tests] clean up some tests
2016-07-07 01:14:37 -07:00
Luke Childs
54d58f88db
Link to zsh-nvm in readme
2016-07-09 09:24:01 +01:00
Jordan Harband
78a008c3c7
[Fix] use Solaris-compatible tail options.
...
Fixes #1148 .
2016-07-06 15:31:25 -07:00
Owen Smith
8c8bf1204c
[Fix] install should not exit after successful git clone
...
Fixes #1146 by grouping the commands that handle the error.
I also removed a subshell wrapper from a similar set of lines right
above. It looks to me like that is no longer necessary.
2016-07-05 22:03:52 -07:00
Jordan Harband
f3ce324e22
Merge pull request #1145 from robotlolita/patch-missing-version-error
...
`nvm install`: Improve error messages for missing versions
2016-07-05 19:10:45 -07:00
Quildreen Motta
730b253174
Updates tests for the new output messages
2016-07-05 21:40:45 -03:00
(Soreλ\a)
0f26656c2c
npm -> nvm, and minor formatting issues
2016-07-05 20:34:08 -03:00
(Soreλ\a)
79d62fb16d
Improve error messages for missing versions
...
`nvm use`, `nvm run` and others check if the version is installed before executing Node, but the error message could be clearer on what steps the user has to take to achieve what they want, this makes that clearer.
2016-07-05 19:55:39 -03:00
Mohit Agarwal
322d81d75f
use git options instead of cd in install script
2016-07-06 01:26:06 +05:30
Cezar Augusto
70b8c59722
Add info about 'nvm: command not found'. Ref #576
2016-07-04 02:28:05 -03:00
Jordan Harband
42fedf6bc9
[Tests] add some basic nvm use --lts tests
2016-07-03 08:37:03 -07:00
Jordan Harband
4c010f442e
[Tests] add tests for auto-creation of LTS aliases on nvm_ls_remote
2016-07-02 21:21:16 -07:00
Jordan Harband
0b40139caa
[Tests] set x option in update mock to better locate failures
2016-07-02 18:42:57 -07:00
Jordan Harband
1bcd2f4743
Merge pull request #898 from PeterDaveHello/patch-1
...
[refactor] use "case" instead of if/else in install
2016-07-02 13:02:24 -07:00
Peter Dave Hello
d47887ae8f
use sh syntax highlight in README.markdown
2016-07-02 14:01:39 +08:00
Peter Dave Hello
07bb79f405
Use case instead of multiple if/else statement.
2016-07-02 14:01:24 +08:00
Peter Dave Hello
9e09c30621
update nodejs version list
2016-07-01 23:39:54 +08:00
Jordan Harband
43c3c23928
[Fix] install script: remove more unnecessary cding.
...
Fixes #1137 .
2016-06-30 13:26:31 -07:00
Jordan Harband
cb4e010de7
[Fix] install script: Don’t attempt to cd twice.
...
Fixes #1137 .
2016-06-30 13:04:45 -07:00
Xavier Cambar
a24ff3e605
Optionally installs Node.js if a version is provided
2016-06-29 09:57:30 +02:00
Jordan Harband
39c119c5db
Merge pull request #566 from xcambar/nvm_install_dir
...
[install script] Refactors NVM_DIR; adds tests
2016-06-28 23:17:27 -07:00
Xavier Cambar
6cee20a071
testing NVM_DIR
2016-06-28 12:36:08 +02:00
Jordan Harband
c4be39b8be
[Fix] remove the need for sed -E
...
Fixes #1126
2016-06-27 21:50:45 -07:00
Jordan Harband
73aa35f508
[Tests] use $NVM_DIR instead of relative paths
2016-06-26 15:52:26 -07:00
Jordan Harband
f0668fd577
[Tests] nvm alias --lts: add tests
2016-06-26 15:11:37 -07:00
Jordan Harband
655830eb58
[Tests] nvm install --lts: add tests
2016-06-26 13:57:01 -07:00
Jordan Harband
e6606458f7
[Tests] add nvm version-remote unit tests.
2016-06-26 13:01:12 -07:00
Jordan Harband
ce60b6c44a
[Tests] update test mocks
2016-06-25 17:03:46 -07:00
Jordan Harband
d2744014df
[Tests] add some basic nvm ls-remote unit tests.
2016-06-25 17:00:19 -07:00
Jordan Harband
bcb1f0b1c7
nvm ls-remote: skip io.js lookup when LTS is set.
2016-07-17 10:54:24 -07:00
Jordan Harband
c3b16603c0
nvm uninstall: add --lts support
2016-07-17 20:18:05 -07:00
Jordan Harband
e1fdd316b7
[Refactor] create nvm_grep and remove standalone GREP_OPTIONS line.
2016-06-25 13:27:56 -07:00
Jordan Harband
9f5322ee84
v0.31.2
2016-06-25 09:42:53 -07:00
Jordan Harband
b0244a133b
[Fix] nvm ls: avoid use of maxdepth which is not on Solaris/SmartOS
...
Fixes #1121 .
2016-06-24 01:38:27 -07:00
Jordan Harband
fdc08122e3
[Tests] swap order of slow + sourcing tests.
2016-05-08 23:52:51 -07:00
Jordan Harband
62696cb0d6
Partially revert 494aa60bd8
2016-05-08 22:33:39 -07:00
Myles Borins
494aa60bd8
travis: enable trusty beta
2016-09-02 23:43:47 -07:00
Jordan Harband
adb6a187a9
[Tests] try v3.3 instead of v1 in hopes they will compile faster.
2016-09-02 23:43:47 -07:00
Jordan Harband
32a1b4124c
Use watch to keepalive stdout while installing.
2016-09-02 23:43:47 -07:00
Jordan Harband
88ce2103f5
Use watch to keepalive stdout while installing.
2016-09-02 23:43:46 -07:00
Jordan Harband
4060de5285
[New] enable io.js and node 4+ source installs.
...
- consolidate `nvm_install_iojs_source` and `nvm_install_node_source` into `nvm_install_source`
2016-09-02 23:43:46 -07:00
Jordan Harband
715bb59c3b
Adapt nvm_install_iojs_source to support specifying make jobs.
2016-09-02 23:43:46 -07:00
Jordan Harband
9b8eab3163
[New] Add nvm install -s iojs support.
2016-09-02 23:43:46 -07:00
Jordan Harband
e546149f7b
[New] add nvm cache with “dir” and “clean” commands.
...
- cache the nvm cache on travis
2016-09-02 23:43:46 -07:00
Jordan Harband
57c2004ab2
[Breaking] adapt nvm_install_node_binary to nvm_install_binary, eg, io.js too.
...
- `nvm_get_checksum` now accepts 5 args (from 3): flavor (node/iojs), type (binary/source), version, slug, compression (xz/gz)
- `nvm_install_binary` accepts 3 args (from 2): flavor (node/iojs), kind (std), version
- remove `nvm_install_iojs_binary`
2016-09-02 23:43:46 -07:00
Jordan Harband
2214cb7ad7
[Breaking] cache previously downloaded artifacts for source installs
...
- `nvm uninstall` no longer removes source artifacts
2016-09-02 23:43:46 -07:00
Jordan Harband
ba3ad8e460
[Breaking] cache previously downloaded artifacts for binaries
...
- consolidate `nvm_install_merged_node_binary` with `nvm_install_node_binary`
- add `nvm_get_download_slug`, `nvm_download_artifact`
- `nvm uninstall` no longer removes artifacts
2016-09-02 23:43:45 -07:00
Jordan Harband
eba50de75e
Add nvm_compare_checksum, nvm_compute_checksum, and nvm_get_checksum
2016-09-02 23:43:45 -07:00
Jordan Harband
c9b7ccdaea
Run node and io.js installation test suites separately.
2016-05-08 22:21:33 -07:00
Jordan Harband
d000624489
Merge pull request #1114 from brajpanda/patch-1
...
[Docs] Slightly elaborated the instruction for manual install
2016-06-19 22:26:58 -07:00
Jordan Harband
36b1ea9236
[Fix] do not print help text on sourcing when an empty .nvmrc file is found.
...
Fixes #1113 .
2016-06-14 09:57:37 -07:00
Jordan Harband
45ae48df2d
[Fix] nvm install -s: when “core id” doesn’t appear in /proc/cpuinfo, fall back to counting “processor” lines.
...
Fixes #1115 .
2016-06-13 08:41:17 -07:00
Braj
d50272040d
Slightly elaborated the instruction for manual install
2016-06-11 17:56:11 +05:30
ra100
b6481583af
On aarch64 use arm64 packages
2016-06-10 08:00:51 +02:00
Jordan Harband
03cf6950ce
[shellcheck] remove use of expr
2016-06-06 17:55:06 -07:00
Jordan Harband
20c551c608
Merge pull request #1106 from neilstuartcraig/patch-1
...
[Docs] Add info WRT installing on Alpine Linux / Busybox
2016-06-03 13:57:50 -07:00
chriskohlbrenner
9327e49ab5
[docs] replace "simple" with "simply", revise to consistent colon usage
2016-06-01 14:20:57 -04:00
Neil Craig
337ddbac16
Lowercase NVM
...
Lowercase NPM
Ref @mhart
Add information WRT installling on Alpine Linux
2016-06-01 13:35:41 +01:00
Jordan Harband
251a2f3409
[Fix] ensure uname is unaliased.
...
Closes #1105
2016-05-30 21:50:30 -07:00
Jordan Harband
b227f4dc77
[Docs] add some OS X notes to the README
...
Update README.markdown
2016-05-25 11:34:54 +02:00
Rudolph Sand
a2111c735e
Update README.markdown
...
Added notes for OS X users regarding globally installed modules.
2016-05-25 11:31:38 +02:00
Stephan DONIN
f62747c29c
[Fix] set -u: is variable set test
2016-05-22 15:59:04 +09:00
Dayton
74f9674a5d
Update README.markdown with some stylistic changes
2016-05-17 16:49:18 -05:00
Jordan Harband
ccde2898f8
[help] Add nvm ls-remote <version>.
...
Fixes #1094 .
2016-05-13 10:14:12 -05:00
Jordan Harband
6e18d959c7
[shellcheck] clean up unquoted args etc
2016-05-11 15:37:21 -07:00
Jordan Harband
6dd6a0d213
[Fix] dash does not support string substitution :-(
2016-05-10 01:17:31 -07:00
Jordan Harband
36c65d7115
[shellcheck] add spellcheck override comments
2016-05-10 01:11:17 -07:00
Jordan Harband
ec2f450b6e
v0.31.1
2016-05-09 22:06:43 -07:00
Jordan Harband
eeaddf9ab0
Don’t restrict colors to TTYs.
...
This restriction prevents subcommands from producing colors and passing them up the tree to the actual TTY.
2016-05-08 21:24:24 -07:00
Jordan Harband
0880539972
nvm_strip_path: Error out when $NVM_DIR is not set.
...
Per https://github.com/creationix/nvm/issues/1083#issuecomment-217752185
2016-05-08 20:06:17 -07:00
Jordan Harband
6311a0e9c4
nvm ls/nvm alias/nvm ls-remote: only colorize when colors are supported.
2016-05-07 18:51:21 -07:00
Jordan Harband
bc3d028152
nvm alias: colorize output when creating aliases.
2016-05-07 18:14:11 -07:00
Jordan Harband
fc82742a8b
[Robustness] add a missing command to a sed call
2016-05-06 12:29:01 -07:00
Jordan Harband
a551306275
Merge pull request #1076 from ejinotti/master
...
[Docs] Improve zsh script in README
2016-05-06 10:24:07 -07:00
Edward J. Jinotti
d4d879e622
zsh script: Check version / .nvmrc on new shell also.
2016-05-06 09:32:52 -04:00
Edward J. Jinotti
05a2d986a4
Improve zsh script to revert to default node version when exiting a .nvmrc directory.
2016-05-06 09:32:52 -04:00
Jordan Harband
a94ade8ec2
[Fix] don’t use bash == in conditionals
2016-05-06 01:00:56 -07:00
Jordan Harband
eb329ae7a9
[minor] display chmod command as well to fix file permissions.
2016-05-05 23:58:27 -07:00
Jordan Harband
1ca2aa648f
[minor] Echo nonwritable file path to stderr.
2016-05-05 23:53:13 -07:00
Jordan Harband
f49eb61f8e
[Improvement] Use nvm_sanitize_path in nvm_check_file_permissions.
2016-05-05 23:52:51 -07:00
Jordan Harband
d1962c6742
[Refactor] clean up nvm_sanitize_path
2016-05-05 23:52:26 -07:00
Jordan Harband
06c1cfcd85
[Refactor] avoid some pipes to awk
2016-05-05 01:30:38 -07:00
Jordan Harband
8a138d98ed
[Refactor] Use awk to improve version comparison performance
2016-05-05 01:27:17 -07:00
Jordan Harband
4842641e78
[Refactor] create nvm_echo and nvm_err
2016-05-05 00:17:35 -07:00
Jordan Harband
62cca4e6d8
Prefer nvm --help over nvm help
2016-05-05 00:14:12 -07:00
Jordan Harband
ab49a5b0c3
[refactor] nvm run: call through to nvm exec to remove redundant code
2016-05-04 00:58:12 -07:00
Jordan Harband
a69f9a8898
[fix] nvm run: pass through --silent on bare nvm run
2016-05-04 00:58:08 -07:00
Jordan Harband
e8355e3189
[refactor] nvm run: refactor argument parsing.
2016-05-04 00:35:43 -07:00
Jordan Harband
0d62626ac6
[refactor] nvm exec: refactor argument parsing.
2016-05-04 00:34:07 -07:00
Jordan Harband
6fb94e0dab
[fix] nvm exec: show “io.js” for io.js versions.
2016-05-04 00:33:56 -07:00
Jordan Harband
0dd2846215
[fix] set -e: ensure nvm_version returning 3, and nvm_alias returning 2, doesn’t terminate the process.
2016-05-04 01:03:14 -07:00
Jordan Harband
859be3f6a1
nvm run: add --lts/--lts=argon support
2016-05-04 00:29:37 -07:00
Jordan Harband
45627d0a40
nvm exec: add --lts/--lts=argon support.
2016-05-03 23:18:44 -07:00
Jordan Harband
d1e51f361c
nvm use: Add --lts/--lts=argon support
2016-05-01 23:41:39 -07:00
Jordan Harband
bf683272ea
nvm alias: colorize LTS aliases.
2016-04-30 12:50:59 -07:00
Jordan Harband
c83664960e
Automatically create LTS aliases every time we talk to nodejs.org/dist
2016-04-27 15:20:22 -07:00
Jordan Harband
1c3f8da6c3
nvm alias: factor out alias creation to nvm_make_alias
2016-04-27 14:23:34 -07:00
Jordan Harband
2d50606a78
[Tests] flesh out nvm_print_default_alias tests
2016-04-30 00:38:49 -07:00
Jordan Harband
d705ec7ebf
[refactor] run through shellcheck
2016-04-30 00:33:28 -07:00
Jordan Harband
09f86b0e6e
[Refactor] Create and use nvm_is_version_installed
2016-04-27 17:11:16 -07:00
Cătălin Mariș
1f336ffbfe
Use language: generic in .travis.yml
...
Since the tests don't rely on / fall into any of the language
categories¹ defined by Travis CI, `language: generic`² can be used.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
¹ https://docs.travis-ci.com/user/languages/
² https://github.com/travis-ci/travis-ci/issues/4895#issuecomment-150703192
2016-04-29 00:57:10 +03:00
Jordan Harband
fc68e615b2
nvm alias: colorize output to match nvm ls
2016-04-27 22:35:14 -07:00
Jordan Harband
379d079c30
[Tests] Ensure color codes are stripped in alias tests.
2016-04-27 17:05:33 -07:00
Philip Ingrey
9106cc25a4
Switch from pull to fetch in the manual update guide
2016-04-28 08:57:16 +01:00
Jordan Harband
91c77c6ba8
[Tests] fix shebangs
2016-04-27 17:34:53 -07:00
Jordan Harband
ec54c925c1
[Tests] use mocks for nvm_ls_remote/nvm_ls_remote_iojs tests.
2016-04-27 01:25:56 -07:00
Jordan Harband
17c9bef4aa
nvm alias: add lts/ support.
2016-04-26 23:07:22 -07:00
Jordan Harband
677c69dda0
nvm alias: explicitly forbid user aliases in subdirs.
2016-04-26 23:07:10 -07:00
Jordan Harband
1eb4d482e0
nvm alias: If the alias target is empty, call into nvm unalias
2016-04-26 22:58:31 -07:00
Jordan Harband
4df2a7fca9
nvm alias: factor out alias printing logic to functions
2016-04-26 22:29:55 -07:00
Jordan Harband
7b1a4e5126
nvm alias: slightly speed up alias resolution.
2016-04-26 22:21:57 -07:00
Jordan Harband
886cde7da5
Readme: Clean up trailing whitespace
2016-04-27 01:08:20 -07:00
Oskar Eriksson
804eae30fb
Added section about verifying nvm install using the command util
2016-04-27 09:59:36 +02:00
Jorge Bucaran
b0693f2d6a
Add fin https://github.com/fisherman/fin .
...
fin is a pure fish, node version manager for fish-shell.
2016-04-27 11:24:59 +09:00
Jordan Harband
9bd743e0be
nvm install: Add support for --lts and --lts=argon
2016-04-25 00:44:24 -07:00
Jordan Harband
44f4817f7d
Prevent attempts to nvm install --lts
2016-04-25 00:44:24 -07:00
Jordan Harband
4699657e98
Add --lts=argon etc, so the LTS line can be targeted.
2016-04-25 00:55:35 -07:00
Jordan Harband
1d908d8256
Add --lts support to nvm version-remote
2016-04-24 16:26:32 -07:00
Jordan Harband
584bdd8ba3
Print the LTS version on all versions with that info, but put the non-latest in gray.
2016-04-24 10:55:30 -07:00
Jordan Harband
ae07c3c345
Add support for nvm ls-remote --lts
2016-04-23 23:47:25 -07:00
Jordan Harband
cb326cb19d
For now, keep the grep to do proper filtering
2016-04-22 10:25:47 -07:00
Jordan Harband
96afff7af2
[Tests] Set up “mocks” directory, and updater script.
2016-04-19 22:49:49 -07:00
Jordan Harband
ac18d01854
[Tests] update index.tab data mocks.
2016-04-18 20:43:08 -07:00
Jordan Harband
755c39209e
[Refactor] make check_file_permissions be pure instead of relying on a closure.
...
Also, make it return early, to be a bit more efficient.
(from #847 )
2016-04-18 19:23:51 -07:00
Jordan Harband
86c8b116d1
Merge pull request #847 from lukechilds/uninstall-bug
...
[New] `nvm uninstall`: Check installation dir permissions before uninstalling
2016-04-18 17:53:41 -07:00
Luke Childs
3a2d35f167
Check permissions in shell rather than using find -exec
2016-04-19 01:40:16 +01:00
Luke Childs
5970a06b19
Add slow test to check nvm uninstall with file permission error
2016-04-18 22:08:40 +01:00
Luke Childs
dff4f80f32
Add fast test to check nvm uninstall with file permission error
2016-04-18 21:17:44 +01:00
Luke Childs
6fb528f4e4
Add slow test to check nvm uninstall
2016-04-18 21:17:44 +01:00
Luke Childs
005e29a223
Check dir permissions before attempting to nvm uninstall
2016-04-18 21:16:37 +01:00
Jordan Harband
01c8b04fd5
Format LTS version when present.
2016-04-18 00:42:56 -07:00
Jordan Harband
865d2fe3d6
Include LTS version in nvm_ls_remote output.
2016-04-17 23:39:27 -07:00
Jordan Harband
9d8841a46c
Ensure only the version string is printed out in relevant places.
2016-04-18 01:00:55 -07:00
Jordan Harband
d3e334d86d
[Fix] read exits 1 when .nvmrc lacks a trailing newline - avoid that.
...
Per https://github.com/creationix/nvm/issues/993#issuecomment-205399603
2016-04-04 22:08:36 -07:00
igrayson
6299cba467
Update README.markdown
...
Add mention for ~/.bashrc
2016-04-02 16:48:37 -07:00
Vincent Tunru
b6f160a7b3
Fixes #995 : Add example .nvmrc to the README
2016-03-27 00:15:31 +01:00
Jordan Harband
273ebedc55
[Fix] avoid an unbound variable when nounset bash option is set.
...
Per https://github.com/creationix/nvm/issues/868#issuecomment-198232952
2016-03-18 00:28:30 -07:00
Frankie Bagnardi
d03f575446
Adds fast-nvm-fish to README
2016-03-17 14:14:21 -07:00
Robson Peixoto
8fb4ee0789
Unset unnecessary environment variables
2016-03-11 14:53:36 -03:00
flowmemo
d8a3b074a6
fixed the number of alternatives in Windows in README.markdown
2016-03-11 23:31:28 +08:00
Whitney Young
972be30a1a
Add link to avn
...
Also, clarified the existing shell integration intro text.
2016-03-08 19:48:27 -08:00
Tobias Witt
ae70d558cb
Add section about "Deeper shell integration"
...
Also adds a snippet for zsh user to auto-issue `nvm use` when entering a
directory.
2016-03-08 18:44:30 +01:00
Adam Patridge
e76221fd15
Added note about OSX's missing .bash_profile file.
2016-03-03 14:01:23 -07:00
Jordan Harband
2176894a5b
v0.31.0
2016-02-15 09:18:15 -08:00
Jordan Harband
cf7d5d8042
Merge pull request #1011 from dohse/keep-parameters
...
[Fix] Do not modify args of sourcing script when parsing `--install`/`--no-use` arg
Fixes #976 .
2016-02-15 09:17:24 -08:00
Jonas Dohse
7135873f80
Do not modify parameters of sourcing script in zsh
...
When sourcing a script without parameters in zsh the sourced scripts
gets the same parameters as the sourcing file and is able to modify
these parameters. Prevent nvm from removing all parameters of sourcing
script by processing a copy of the parameters in a function.
2016-02-15 17:49:46 +01:00
Jordan Harband
dc9020b133
Merge pull request #1004 from tlevine/env-bash
...
[Fix] use env bash rather than /bin/bash
2016-02-14 12:05:10 -08:00
Thomas Levine
0eaa7e0bde
use env bash in nvm-exec and install.sh
2016-02-14 19:34:19 +00:00
Thomas Levine
06b81f0f36
use env bash rather than /bin/bash
...
My bash is not installed in /bin/bash.
2016-02-14 19:34:19 +00:00
gmisra
8a20234586
Document how to reload nvm after upgrading
2016-02-09 19:12:22 -08:00
Jordan Harband
44541b416f
[New] After installing, ensure that the default is set.
2016-02-04 00:26:33 -08:00
Jordan Harband
731c2f3f70
Add nvm_get_minor_version
2016-02-04 11:16:09 -08:00
Jordan Harband
de64a2d95f
[Fix] nvm_format_version should only return 3 version groups
2016-02-06 22:34:49 -08:00
Jordan Harband
77e0449c89
[Fix] nvm-exec: properly exit when failing; improve error messages, suppress nvm use --help output
...
Fixes #997 .
2016-02-04 11:19:34 -08:00
Sébastien Larivière
649e416017
[Refactor]Double quote to prevent globbing and word splitting.
2016-01-30 22:17:15 -05:00
Jordan Harband
754a0d7c5b
Merge pull request #981 from woodb/node-v4-checksums
...
[New] Added support for sha256 checksums on `io.js` / merged `node`.
Fixes #664 , relates to #736 and #687 .
2016-01-24 10:40:06 -08:00
Brandon Wood
f73bfb6578
Updated warning message when sha256sum utility not found
...
Relates to @ljharb's comment on the warning message not including all of the
utilties searched for.
https://github.com/creationix/nvm/pull/981#discussion_r50638351
2016-01-24 11:53:19 -06:00
Brandon Wood
f1bca106a8
Added (optional) support for sha256 checksum utils
...
This commit adds (optional) support for additional sha256 checksum utilities
for newer versions of node.js and io.js that use sha256 checksums rather than
sha1.
If nothing is found to do a sha256 checksum on the client machine, a warning is
printed and things continue on as normal.
Following comments from @ljharb on incorporating some of @DomT4's PR
creationix/nvm#664 , and making this checksum optional. If I could I would
gladly include this as an addon to the now closed PR creationix/nvm#664 . I am
choosing not to file it onto that PR because it's closed and (currently)
significantly behind the master branch.
@DomT4 did the hard work of actually finding all the different ways in which
one could verify a sha256 checksum, I've just included those here in an effort
to move forward with sha256 checksum support.
2016-01-24 10:31:26 -06:00
Brandon Wood
560c8c9500
Added support for sha256 checksums
2016-01-23 21:25:03 -06:00
Jordan Harband
21c3727955
v0.30.2
2016-01-21 00:23:01 -08:00
Jordan Harband
4fcf37fa29
[New] support --no-use on sourcing, in supported shells.
...
Fixes #972 .
2016-01-20 12:50:45 -08:00
Nick Hwang
e76fe61d95
Add missing space before closing bracket
2016-01-19 13:03:11 -05:00
Jordan Harband
00a8b36b78
[Fix] handle unbound shell variables.
...
Fixes #868 .
2016-01-17 15:12:02 -08:00
Dwayne Crooks
1e1a005a53
[Docs] Add manual upgrade instructions to README.markdown
2016-01-16 07:01:46 -04:00
Jordan Harband
1ba8a96ec9
Merge pull request #957 from matthew-campbell/fix-profile-var
...
[Fix] `install.sh`: honor PROFILE var.
Closes #888 . Fixes #830 .
2016-01-02 09:04:07 -08:00
Matthew Campbell
4f4ff208eb
Improve error messages
2016-01-02 11:16:50 -05:00
Matthew Campbell
78fee866f5
Remove usage of declare
2016-01-01 22:33:45 -05:00
Matthew Campbell
8dc53d4dd5
Refactor and fix nvm_detect_profile tests
...
close #833
close #957
2016-01-01 20:45:36 -05:00
Matthew Campbell
645bda4987
Addresses comments to close #833
2016-01-01 14:09:35 -05:00
David Mankin
918fcb4bd2
PROFILE env var should override detected profile
...
Add tests for PROFILE overriding detected files
2016-01-01 14:00:36 -05:00
David Mankin
cb138a1815
Fix error messages in tests
2016-01-01 13:34:34 -05:00
Jordan Harband
6094dac1c1
[Fix] nvm debug was printing a red herring error message in non-zsh.
2015-12-30 09:45:13 -08:00
Jordan Harband
0aa3118de3
v0.30.1
2015-12-28 12:46:41 -08:00
Jordan Harband
2541baaf7d
[Refactor] Create nvm_get_make_jobs to abstract out “-j” logic.
2015-12-28 12:20:14 -08:00
Jordan Harband
dc8b63cb25
[Fix] nvm install -s: fix syntax errors.
2015-12-28 12:19:50 -08:00
Jordan Harband
f3cc95bc66
Merge pull request #952 from davemay99/install-fix-quotes
...
[Fix] install.sh: quote `$DETECTED_PROFILE`
2015-12-28 09:24:42 -08:00
Dave May
00d4520d35
Merge remote-tracking branch 'creationix/master' into install-fix-quotes
2015-12-28 12:08:57 -05:00
Jordan Harband
8ec056f768
v0.30.0
2015-12-27 23:19:14 -08:00
Dave May
f113c5d030
fix quoting for usernames with space
2015-12-28 00:34:38 -05:00
Jordan Harband
f279837d5c
[Refactor] fix some bugs in nvm_is_natural_num, add unit tests.
2015-12-27 13:15:53 -08:00
Jordan Harband
32d184099c
[Tests] fix cleanup in nvm_supports_xz unit test
2015-12-27 13:18:28 -08:00
Jordan Harband
31457fec3f
[Refactor] nvm install: make -j and -s order-independent.
2015-12-27 12:52:01 -08:00
thelostspore
1a6f85da46
README: troubleshooting scenario and homebrew unsupported note
2015-12-27 12:55:35 -08:00
Jordan Harband
d40eca8126
Merge pull request #752 from PeterDaveHelloKitchen/parallel_build
...
[New] `nvm install`: Enable multiple jobs for make when build from source via `-j`
2015-12-27 12:37:48 -08:00
Peter Dave Hello
cfccf03b3d
add test for install from source
2015-12-28 01:37:57 +08:00
Peter Dave Hello
e78dc5110e
fix CPU_THREADS/CPU_THREAD_VALID/MAKE_JOBS prefix
2015-12-28 01:37:57 +08:00
Peter Dave Hello
6320719dd8
Support parameter -j to set jobs for make
2015-12-28 01:37:57 +08:00
Peter Dave Hello
a8e6fee001
Enable multiple jobs for when build from source
2015-12-28 01:37:57 +08:00
Mathias Meyer
f851716601
Add workaround for Travis CI environment issue.
...
Per https://github.com/travis-ci/travis-ci/issues/5363
2015-12-22 11:28:25 +01:00
Jordan Harband
9787c438bb
Merge pull request #950 from kui/commands-includes-spaces
...
[Fix] fix `nvm-exec` for commands including spaces.
Relates to #903 .
2015-12-24 08:42:01 -08:00
Keiichiro Ui
b76d43e9f8
Fix nvm-exec for the commands includes white-spaces
2015-12-24 19:48:35 +09:00
emparq
91ce41b702
[Fix: Install] incorrect check for "$NVM_DIR/nvm.sh"
...
Should be using `-f` if checking for a file.
Closes #887 .
2015-10-30 18:48:08 -07:00
Kilian Ciuffolo
6638ac3318
[refactor] improved bootstrap time
...
Fixes #860 , closes #927 .
2015-12-06 23:52:40 -08:00
Peter Dave Hello
605a305300
add iojs as one of the keywords in package.json
2015-12-21 23:07:52 -08:00
Jordan Harband
4976788d1b
Merge pull request #945 from PeterDaveHello/update_nodejs_index.tab
...
[tests] update nodejs.org-dist-index.tab
2015-12-21 23:06:40 -08:00
Peter Dave Hello
ec9232bb06
update nodejs.org-dist-index.tab and related test
...
Src: https://iojs.org/dist/index.tab
2015-12-21 20:50:54 +08:00
Jordan Harband
c56c26badd
Merge pull request #938 from tomByrer/patch-1
...
[Docs] del `nvmw` link
2015-12-13 22:55:03 -08:00
Jordan Harband
04c5e3540e
nvm unalias: Provide a restore command when unaliasing.
...
Fixes #916 .
2015-12-13 21:34:28 -08:00
Tom Byrer
2a8caf48e8
del nvmw link
...
Seems to be abandoned:
- https://github.com/hakobera/nvmw/issues/67
- https://github.com/hakobera/nvmw/issues/66
- https://github.com/hakobera/nvmw/issues/69
2015-12-13 18:16:14 -07:00
Daniel Kmak
896199facc
Update README.markdown and LICENSE.md
2015-12-12 20:00:49 +01:00
Jordan Harband
8746344e02
Merge pull request #925 from riyadhalnur/patch-1
...
[Docs] add note about Xcode Command Line Tools on OS X
2015-12-04 23:57:57 -08:00
Riyadh Al Nur
dbe2a1b2b4
Updated README
...
Updated README to inform OSX users that XCode doesn't need to be installed in order to get stsrted using `nvm`.
Fixes #921
2015-12-05 13:52:30 +06:00
Jordan Harband
317f8f9e68
Merge pull request #901 from PeterDaveHello/patch-4
...
[Docs] add FreeBSD info to README
2015-12-04 23:42:51 -08:00
Peter Dave Hello
4ef9e1583c
Update README.markdown
...
Talk about FreeBSD support.
Hope user can easily know that earlier, and also hope we can get much more help about this topic.
2015-12-05 15:41:04 +08:00
Jordan Harband
09bf45ce6c
Merge pull request #908 from nullivex/master
...
[Docs] Add another Windows alternative.
2015-12-04 23:35:30 -08:00
Jordan Harband
641abc8407
Merge pull request #899 from PeterDaveHello/patch-2
...
[install] on install, indicate that there's no binary for FreeBSD
2015-12-04 23:31:49 -08:00
Peter Dave Hello
2a174d03d8
Update nvm.sh
...
Add prompt when there is no binary for node version greater than v1.0.0
Currently, on FreeBSD, if we try `nvm install 4.2`, we will only get:
> Installing node v1.0 and greater from source is not currently supported
In fact I had no idea what's wrong because I didn't use `-s` parameter for it,
and then I found that there are two reasons:
1. There was no pre-built nodejs binary from official for FreeBSD, which means we need to build from source.
2. nvm doesn't support build for v1.0 and greater version from source yet.
So I think there should be a prompt message to tell the user about the reason why nvm will go to build from source,
no matter it will succeed or fail.
2015-12-05 15:00:00 +08:00
Jordan Harband
803be3a4eb
[Tests] temporarily disable WITHOUT_CURL tests.
...
Blocked by https://github.com/nodejs/build/issues/233
2015-12-02 22:49:38 -08:00
Jordan Harband
6d2c9a95b0
[Docs] remove note about "global install", since nvm is not intended for multiuser installs.
...
Per https://github.com/creationix/nvm/issues/918#issuecomment-161527422
2015-12-02 22:14:08 -08:00
Bryan Tong
720087b009
Add another Windows alternative.
...
Nodist is a similar CLI interface providing similar functionality. Nodist also recently added a Windows install wizard.
2015-11-18 20:18:55 -07:00
Jordan Harband
c742ab7e66
Fix npm version output for nvm run and nvm exec
2015-11-10 23:31:16 -08:00
Jordan Harband
e10705b896
[Docs] improve manual install instructions
2015-11-09 11:36:30 -08:00
Jordan Harband
9972de6dec
[Docs] update version numbers in the readme; add default alias info
2015-11-04 21:19:32 -08:00
Jordan Harband
45e4387ce3
[Tests] Print out curl and wget versions inside travis-ci
2015-11-02 00:50:40 -08:00
Jordan Harband
cb03acf458
Merge pull request #892 from wbyoung/stable-node
...
[Docs] use "node", not "stable", since everything is stable now
2015-11-03 10:46:14 -08:00
Whitney Young
9cceded178
Updated docs for alias default.
2015-11-03 10:44:07 -08:00
Jordan Harband
772d3223e9
Merge pull request #875 from mrueg/remove-backticks
...
[shellcheck] Replace backticks with $() command substitution
2015-10-29 01:15:02 -07:00
Manuel Rüger
1adcabf5e8
Replace backticks with $() command substitution
2015-10-28 20:53:15 +01:00
Jordan Harband
a43ff7c9d9
Ensure that npm doesn't print out excess data, regardless of the user's log level.
...
Fixes #881 .
2015-10-23 00:12:14 -07:00
Jordan Harband
149e5d483d
Use real snapshot of iojs.org data for nvm_ls_remote_iojs tests.
2015-10-17 12:05:44 -07:00
Jordan Harband
114f27a075
Use nvm_ls_remote_index_tab for listing nodejs.org versions.
...
Enabled by https://github.com/nodejs/build/issues/218 , unblocks #870 .
2015-10-17 10:34:42 -07:00
Jordan Harband
690543d6ad
Rename nvm_ls_remote_iojs_org → nvm_ls_remote_index_tab and make it generic.
2015-10-17 10:19:39 -07:00
Jordan Harband
b5e0603e64
Merge pull request #876 from derekstavis/patch-1
...
README: Add link to a dedicated nvm wrapper for fish shell
2015-10-15 17:17:13 -07:00
Derek Willian Stavis
84c2d6a91f
README: Add link to a dedicated nvm wrapper for fish shell
...
Includes references to `nvm` plugin for Oh My Fish framework,
which implements not only a fish wrapper to official `nvm` script,
but also provides completions.
2015-10-15 21:00:23 -03:00
Jordan Harband
0b9526e3b4
Don't check $1 unless $# is >= 1.
...
Fixes #873 . Partially fixes #868 .
2015-10-14 23:02:00 -07:00
Jordan Harband
016e7dfdab
[nvm run / nvm exec]: Silence "find nvmrc" output when --silent is provided.
...
Per https://github.com/creationix/nvm/issues/846#issuecomment-147588453
2015-10-13 21:58:35 -07:00
Jordan Harband
2a0316f80d
[shellcheck] Remove useless echo
2015-10-13 01:26:43 -07:00
Jordan Harband
e7e28f436e
[shellcheck] double-quote vars in more places
2015-10-12 16:07:29 -07:00
Jordan Harband
84aad508f7
Check $# before trying to check $1. Avoids failure due to nounset bash option.
...
Partially fixes #868 .
2015-10-12 16:57:45 -07:00
Jordan Harband
8f3ee23390
[shellcheck] Correct redirection order: we want both stdout and stderr sent to /dev/null here.
2015-10-12 16:48:12 -07:00
Jordan Harband
032fab7172
locals need to be declared and assigned separately, for ksh.
2015-10-12 16:30:59 -07:00
Jordan Harband
46833efd79
[shellcheck] Remove useless echo
2015-10-12 16:10:43 -07:00
Jordan Harband
9407f850f1
[shellcheck] read without -r will mangle backslashes.
...
http://pubs.opengroup.org/onlinepubs/009695399/utilities/read.html / https://github.com/koalaman/shellcheck/wiki/SC2162
2015-10-12 16:05:55 -07:00
Jordan Harband
bf284203cb
[shellcheck] Declare and assign separately to avoid masking return values
...
https://github.com/koalaman/shellcheck/wiki/SC2155
2015-10-12 16:02:35 -07:00
Jordan Harband
c957989fa9
Add nvm --version and $HOME to nvm debug
2015-10-10 14:27:00 -07:00
Jordan Harband
bc4d14bea6
Merge pull request #866 from jfirebaugh/patch-1
...
[Docs] Note compatibility issue with `set -e` (#866 , #865 , #721 )
2015-10-09 11:32:52 -07:00
John Firebaugh
affe0baa95
Note compatibility issue with set -e
...
See discussion in #865 .
2015-10-09 11:01:07 -07:00
Jordan Harband
e1c84bae37
v0.29.0
2015-10-09 01:52:19 -07:00
Jordan Harband
a928a8f181
nvm exec: don't fall back to .nvmrc when the provided version is not installed.
2015-10-08 17:37:53 -07:00
Jordan Harband
937c29c95a
nvm run: use common code path for "ensure version installed"
...
Better than cb033adc6f
2015-10-08 16:48:17 -07:00
Jordan Harband
a0e94e16de
Make sure nvm debug doesn't use an overridden sed
2015-10-08 00:19:53 -07:00
Jordan Harband
7028e5df19
Merge pull request #823 from jbergstroem/feature/prefer-xz
...
Support `xz` tarballs if available (on io.js >= 2.3.2 and node >= 4)
2015-10-08 00:19:35 -07:00
Johan Bergström
b8e4917646
Use xz tarballs if available
...
Saves us ~25% bandwidth while downloading the payload. This only applies
to hosts that has the `xz` binary and attempts to use iojs 2.3.2 or newer
(this includes nodejs 4.0+ as well). Older targets are unaffected.
2015-10-08 16:45:26 +11:00
Jordan Harband
cb033adc6f
nvm run: use common code path for "ensure version installed"
2015-10-07 18:08:48 -07:00
Jordan Harband
20f4acdd25
[installing] echo the URL that the tarball is being downloaded from.
2015-10-07 20:28:18 -07:00
Jordan Harband
41153e207d
Ensure nvm use output shows up *after* prefix check passes.
2015-10-07 14:40:31 -07:00
Jordan Harband
6b3c34313c
Fix nvm_ls when $NVM_DIR has spaces in it.
...
Mostly fixes #861 .
2015-10-07 13:57:29 -07:00
Jordan Harband
8541e2e1ee
Properly quote some possible variables with spaces.
2015-10-07 13:57:13 -07:00
Jordan Harband
1efc8b4dbe
Merge pull request #859 from fresheneesz/patch-1
...
[docs] Make sure to note "Install OR update"
2015-10-05 16:01:58 -07:00
fresheneesz
49f2c95013
Install OR update
2015-10-05 15:56:41 -07:00
Jordan Harband
06a21284ed
Protect against cat clobbering. Fixes #858 .
2015-10-04 14:28:38 -07:00
Jordan Harband
ebdcdc4363
v0.28.0
2015-10-02 01:50:44 -07:00
Jordan Harband
b805de80cb
Add PREFIX and NPM_CONFIG_PREFIX env vars to nvm debug
2015-10-01 10:05:13 -07:00
Jordan Harband
44f416d58f
Create and use nvm_sanitize_path for nvm debug
2015-10-01 09:41:34 -07:00
Jordan Harband
3d1ccfec70
Sort nvm ls results by semver version, so the order goes: "unmerged node", "iojs", "merged node".
2015-09-30 22:05:18 -07:00
Jordan Harband
f73ee40dfe
Merge pull request #854 from misterdjules/fix-node-smartos-support
...
Fix support for installing node on SmartOS
2015-10-01 00:04:13 -07:00
Julien Gilli
2d692d9d78
Fix support for installing node on SmartOS
...
uname on SmartOS cannot be used to guess if 32 and/or 64 bits binaries
are supported, and its output is different than other uname commands on
other operating systems.
This change uses pkg_info to determine what types of binaries pkgsrc
would install. If pkg_info fails to run or is not present, this change
falls back to using isainfo -n, which determines what the kernel
supports.
It allows users to install node binaries on Solaris derivatives. io.js
can also be installed on Solaris derivatives starting with version
v3.3.1.
2015-09-30 22:10:29 -07:00
Jordan Harband
8aebf86329
v0.27.1
2015-09-27 06:40:29 -07:00
Jordan Harband
39dad845cf
Do not exit install.sh on errors (revert part of 0787a559). Fixes #853 .
2015-09-27 06:32:00 -07:00
Jordan Harband
838d72688f
v0.27.0
2015-09-26 10:13:10 -07:00
Jordan Harband
8ee6f30352
Add support for $NPM_CONFIG_PREFIX to nvm_die_on_prefix.
...
Fixes #606 .
2015-09-23 06:25:55 -07:00
Jordan Harband
1458de7293
Ensure that if npm config get prefix is set to something outside nvm, that nvm use refuses to work.
...
Fixes #606 .
2015-09-21 04:47:37 -07:00
Jordan Harband
a1def71062
Add nvm_die_on_prefix
2015-09-21 04:47:30 -07:00
Jordan Harband
eb81fba8f7
Add support for --silent to nvm run and nvm exec.
...
Fixes #842 .
2015-09-23 05:16:45 -07:00
Jordan Harband
7496a24bd6
Print the npm version when using nvm exec or nvm run.
2015-09-23 05:02:41 -07:00
Jordan Harband
c64a0343af
[Docs] Add nvm help documentation for nvm exec
2015-09-23 04:51:55 -07:00
Jordan Harband
643365a948
Allow --silent option to nvm use to be in any position.
2015-09-23 04:51:55 -07:00
Jordan Harband
6e894520ec
Use a tighter grep to avoid dnvm.sh conflicts.
...
Fixes #838 .
2015-09-19 22:55:19 +09:00
Jordan Harband
9e389eb9fe
Attempt to fix #829 .
2015-09-19 13:37:08 +09:00
Jordan Harband
151efc32f5
Merge pull request #827 from lukechilds/master
...
Revert "Source the nvm.sh file"
2015-09-13 23:57:45 +09:00
Luke Childs
bda1d2ec29
Revert "Source the nvm.sh file"
...
Fixes #826
This reverts commit b4151e1446 .
2015-09-12 23:05:56 +01:00
Jordan Harband
e3528b0d9e
Fix nvm_ensure_version_installed iojs to not print an empty string for the version.
2015-09-11 10:42:47 +09:00
Jordan Harband
014a44e154
Minor refactoring to "install from source" logic tree.
2015-09-10 22:37:50 +09:00
Jordan Harband
c9215a127f
When no io.js versions are installed, show N/A, not io.js-, as the resolved default alias.
...
Fixes #822 .
2015-09-09 22:37:32 +09:00
Jordan Harband
c92effc6da
Don't double-print *default* alias resolutions either.
2015-09-09 22:38:54 +09:00
Jordan Harband
1e2a7a8de4
Sort nvm ls-remote output so the order is: "pre-merged", "iojs", "post-merged".
2015-09-09 22:23:22 +09:00
Jordan Harband
d4caf9fb67
Fix some logic errors in the new "merged node" code path.
2015-09-09 09:46:39 +09:00
Jordan Harband
0ef20199dc
Use NVM_VERSION instead of VERSION to be a bit less intrusive.
...
Fixes #820 .
2015-09-07 21:43:21 +09:00
Jordan Harband
0d898b0aa4
When node version is not io.js and is v1.0 or later, on nvm install, run nvm_install_merged_node_binary
2015-08-28 00:51:19 -07:00
Jordan Harband
0181821b51
Add nvm_install_merged_node_binary
2015-08-28 00:51:19 -07:00
Jordan Harband
f34fef96d8
Add nvm_is_merged_node_version
2015-08-28 00:51:18 -07:00
Jordan Harband
26ee4aafc0
v0.26.1
2015-08-22 20:54:31 -07:00
Jordan Harband
8746d63041
Ensure after node v4.0 is released, stable will simply refer to the latest node.
2015-08-22 09:45:49 -07:00
Jordan Harband
b7e2d7d24d
Oops, the string passed to awk isn't the same as a shell command.
...
Fixes #808 .
2015-08-16 18:08:50 -07:00
Jordan Harband
58ffa407c2
Prefixing more commands with command to bypass aliases.
...
Related to #805 and #804 .
2015-08-15 23:56:32 -07:00
Jordan Harband
49abc9ce02
v0.26.0
2015-08-13 17:10:08 -07:00
Jordan Harband
15876280f7
Remove trailing whitespace.
2015-08-13 17:09:22 -07:00
Jordan Harband
9f653cc196
Merge pull request #802 from Alex7Kom/master
...
Replace links to nvm-fish and nvm-fish-wrapper with a link to bass
2015-08-13 00:04:07 -07:00
Alexey Komarov
543b86c060
Replace links to nvm-fish and nvm-fish-wrapper with a link to bass
2015-08-13 09:09:51 +03:00
Jordan Harband
ba01993ea6
Merge pull request #799 from hkdobrev/neither
...
[Docs] Use "neither" in README
2015-08-10 11:09:46 -07:00
Haralan Dobrev
31e7d5b36a
Use neither in README
...
Correct usage of the [neither-nor](https://en.wiktionary.org/wiki/neither ) construction.
2015-08-10 20:34:10 +03:00
Jordan Harband
17c68075e8
Use single quotes instead of double quotes for help output.
2015-08-05 23:53:29 -07:00
Jordan Harband
3fcff872af
Add explanatory note for <version>
...
Per https://github.com/creationix/nvm/pull/797#discussion_r36379740
2015-08-05 23:53:17 -07:00
Jordan Harband
c07838fcc0
Merge pull request #797 from Sequoia/patch-1
...
Add usage string for --reinstall-packages-from
2015-08-05 21:03:30 -07:00
Sequoia McDowell
fe1ed37520
Add usage string for --reinstall-packages-from
2015-08-05 22:26:17 -04:00
Jordan Harband
ae1c488fe1
Merge pull request #795 from reybango/master
...
Updated readme file to include --reinstall-packages-from
2015-08-04 14:38:38 -07:00
Rey Bango
d9662f138f
Updated based on feedback from @ljharb on syntax description and functionality
2015-08-04 17:35:03 -04:00
Jordan Harband
071323847c
Add nvm version-remote; document nvm version
2015-08-04 14:03:57 -07:00
Rey Bango
b7a93be02e
Updated to added npm to the text
2015-08-04 15:23:07 -04:00
Rey Bango
3543cd5d2f
Updated usage instructions to include --reinstall-packages-from syntax and example
2015-08-04 15:19:38 -04:00
Jordan Harband
d7035c5e61
Redirect stderr output from npm ls -g to /dev/null.
...
Fixes #756 .
2015-08-03 16:41:47 -07:00
Jordan Harband
1f679fc055
Merge pull request #765 from CristianCantoro/master
...
Detect shell type from $SHELL variable instead of .$SHELLrc files
2015-07-21 16:37:03 -07:00
Cristian Consonni
c37dbbecb4
Detect shell type from $SHELL variable instead of .$SHELLrc files
2015-07-19 02:03:15 +02:00
Jordan Harband
f81b6d6b7b
Update semver
2015-07-18 12:20:53 -07:00
Jordan Harband
d57f7ea54a
Merge pull request #776 from IonicaBizauKitchen/source-nvm.sh
...
Source the nvm.sh file upon install
2015-07-18 12:02:08 -07:00
Jordan Harband
759f86f946
Tweaking local variable name to avoid pollution under ksh.
2015-07-18 09:31:07 -07:00
Jordan Harband
60c2f3705e
Merge pull request #780 from alanmquach/silent-source
...
Adding --silent option for nvm use, and using it to disable processing certain output to speed up shell startup
Relates to #781 .
2015-07-18 09:29:40 -07:00
Alan Quach
657192dd27
Adding unit tests for --silent
2015-07-10 10:27:35 +10:00
Alan Quach
98e40a8da5
Expanding to full if statements because the shorthand results in non-zero exit codes
2015-07-09 18:40:52 +10:00
Alan Quach
2da44f90d2
Silencing error outputs as well (for consistency and following after things like curl)
2015-07-09 18:00:13 +10:00
Alan Quach
88a50780fc
Removing global NVM_SILENT and adding/using '--silent' option to nvm use instead
2015-07-09 17:44:09 +10:00
Alan Quach
9419794b19
Guarding npm version printing with NVM_SILENT flag check; when sourcing nvm.sh, a considerable amount of time is spent running npm --version only for that output to be black-holed to /dev/null
2015-07-09 09:56:26 +10:00
Ionică Bizău
b4151e1446
Source the nvm.sh file
...
Fixes #775 . After everything is installed, instead of restarting the terminal, just load the nvm.sh file.
2015-07-06 11:19:48 +03:00
Jordan Harband
f2d31b0458
Some refactoring to clear up the path to io.js release candidate support.
...
(unblocks #779 )
2015-07-04 17:05:24 -07:00
Jordan Harband
0b41352210
Factor out global installs/links into nvm_npm_global_modules function.
2015-07-02 23:47:29 -07:00
Jordan Harband
be5e8de0c8
Fix nvm reinstall-packages for linked packages, broken in 7bce6c6c68
2015-07-02 23:12:06 -07:00
Jordan Harband
3ef937a64e
Make nvm_ensure_version_installed slightly more efficient.
2015-06-28 18:15:15 -07:00
Jordan Harband
a21b2e6962
Refactor this nvm use case statement out into an nvm_match_version function.
2015-06-28 18:08:38 -07:00
Jordan Harband
cc090f4476
Speed up nvm_print_npm_version.
2015-06-28 16:23:12 -07:00
Jordan Harband
c31b072145
Fix nvm debug output in zsh.
2015-06-28 17:19:15 -07:00
Jordan Harband
7bce6c6c68
nvm reinstall-packages should install the same version it had before.
2015-06-29 00:04:59 -07:00
Jordan Harband
fb2f1ac627
Merge pull request #778 from williamboman/chore/rewording
...
nvm.sh: s/copying/reinstalling/
2015-07-02 12:44:37 -07:00
William Boman
bc3840b6f3
nvm.sh: s/copying/reinstalling/
2015-07-02 21:21:51 +02:00
Jordan Harband
6b8fd19d76
Merge pull request #766 from lukechilds/master
...
Add --without-snapshot configure flag to ARM devices by default
2015-06-18 13:42:48 -07:00
lukechilds
c1ef31df53
Remove unnecessary nvm use
2015-06-13 19:38:28 +01:00
lukechilds
3b67b3b9bb
Use node instead of nvm run and check v8_use_snapshot in node rather than shell
2015-06-13 18:52:54 +01:00
lukechilds
83466446ce
Added newline to end of ARM test
2015-06-13 16:10:49 +01:00
lukechilds
3214caa4ec
Adding installation test for disabling V8 snapshot on ARM
2015-06-13 15:58:27 +01:00
lukechilds
67f2ee82ca
POSIX compatibility
2015-06-13 10:18:58 +01:00
lukechilds
1f13f15620
Add --without-snapshot configure flag to ARM devices
2015-06-12 23:36:02 +01:00
Jordan Harband
fe044c5e3b
spawn-sync now dedupes to the top level with this group of packages.
2015-06-07 01:10:55 -07:00
Jordan Harband
3cfa1ed4e1
Remove $NVM_IOJS_ORG_VERSION_LISTING env var.
2015-06-06 22:39:03 -07:00
Jordan Harband
d78722b284
v0.25.4
2015-05-29 11:11:40 -07:00
Jordan Harband
4c475b2767
Use the original ls instead of aliases.
...
Fixes #755
2015-05-29 11:11:14 -07:00
Jordan Harband
a539cba11e
v0.25.3
2015-05-22 15:18:46 -07:00
Jordan Harband
472ba5fc46
Make sure sourcing nvm.sh on shells that don't support source options doesn't exit nonzero.
...
Fixes #721
2015-05-22 00:15:43 -07:00
Jordan Harband
96c96ec714
v0.25.2
2015-05-19 14:05:43 -07:00
Jordan Harband
475b8bd6b4
Update semver
2015-05-17 21:12:03 -07:00
Jordan Harband
5e805905ca
Add undocumented nvm debug to print out helpful debugging info.
2015-05-14 14:56:26 -07:00
Jordan Harband
2dec01da9c
nvm reinstall-packages: On systems where npm ls -g --depth=0 does not include npm for some reason, make sure to filter out (empty).
2015-05-08 14:24:51 -07:00
Jordan Harband
63672641a5
Add wrapping curly braces to ensure that the entire scripts are downloaded.
...
If the closing curly brace isn't present, the script will error out.
2015-05-11 01:46:18 -07:00
Jordan Harband
94bba31de3
Make sure that nvm reinstall-packages system has the right std output.
2015-05-08 14:15:42 -07:00
Jordan Harband
f70530ef18
Fix installation instructions.
2015-05-07 10:43:47 -07:00
Jordan Harband
ec33e8b720
v0.25.1
2015-05-03 15:31:54 -07:00
Jordan Harband
a4f89c6223
Make sure to ignore ~/.curlrc if it exists.
2015-05-01 02:00:49 -07:00
Jordan Harband
517817f1a3
Actually try to install from source when the error message says "binary failed, trying source".
2015-04-27 14:02:45 -07:00
Jordan Harband
a6f5eff0f3
Use uname -m instead of uname -a.
...
Fixes #744 .
2015-04-28 22:56:43 -07:00
Jordan Harband
0aac462b15
Improve the error message when the binary tarball URL 404s.
...
Fixes #743
2015-04-27 13:48:22 -07:00
Jordan Harband
bb2fe618cb
The install script only runs in bash.
2015-04-27 16:55:21 -07:00
Jordan Harband
eb5cecc970
v0.25.0
2015-04-26 12:58:05 -07:00
Jordan Harband
36f933984d
Remove trailing whitespace.
2015-04-25 11:21:33 -07:00
Jordan Harband
54d2d70048
Merge pull request #742 from sjasperse/bugfix/rasp-pi-2-arch-detect
...
adding architecture detection for Raspberry Pi 2
2015-04-26 00:04:00 -07:00
Scott Jasperse
e1009149c9
adding architecture detection for Raspberry Pi 2
2015-04-25 19:10:02 -04:00
Jordan Harband
153ee6887e
Merge pull request #741 from phillipsj/master
...
Adding .gitattributes to force unix line endings.
Fixes #728
2015-04-25 10:58:52 -07:00
Jamie Phillips
295f2b7db4
Adding .gitattributes to force unix line endings.
...
Hopefully this helps with issue #728
2015-04-25 10:35:22 -04:00
Jordan Harband
356ac7a697
install.sh: Ensure that the --quiet option is available before trying to use it.
...
Fixes #738 , #657 .
2015-04-22 00:40:27 -07:00
Jordan Harband
64c88ce62e
Merge pull request #735 from madarche/fix-doc
...
Remove source bashism
2015-04-19 10:32:48 -07:00
Marc-Aurèle DARCHE
4612d8d827
Remove source bashism
...
Using `.` and not `source`, since it's more portable
cf. #704 and https://wiki.ubuntu.com/DashAsBinSh#source
2015-04-19 16:25:34 +02:00
Jordan Harband
6644f33a77
Update semver, use ^ instead of ~
2015-04-17 00:24:44 -07:00
Jordan Harband
cbf0f12aac
Create nvm_print_npm_version and use that when printing the npm version.
2015-04-12 10:59:17 -07:00
Jordan Harband
de93dc46d0
Merge pull request #726 from SeeThruHead/master
...
README: Add note about `~/.npmrc` compatibility issues.
Relates to #606 .
2015-04-13 13:58:53 -07:00
Shane Keulen
7ea15a7618
Added compatibility issues section
...
Sections includes warnings for cretain nonstandard path settings and environment variables that conflict with nvm.
2015-04-13 16:54:20 -04:00
Jordan Harband
6a114eddcc
Merge pull request #722 from ajcrites/list-npm-version
...
Include npm version when displaying results of switch.
2015-04-12 10:53:37 -07:00
Andrew Crites
e4149c380b
Only print npm version if it exists
2015-04-09 02:31:57 -04:00
Andrew Crites
caa69bc500
npm version: shell compatibility, test update
...
* Update test string that checks printed node version to pass with additional npm version display
* Remove echo -n for compatibility with shells that do not support it
2015-04-09 02:12:35 -04:00
Andrew Crites
e01bcb740b
Include npm version when displaying results of switch.
...
When running nvm use, successful changing of versions lists the new node version. The npm version may also be switched, but this is not listed.
This commit updates nvm to display the npm version that was switched to alongside the node version
2015-04-09 01:20:51 -04:00
Jordan Harband
276d55c912
Merge pull request #718 from joliss/performance
...
Consolidate and avoid sed/cut calls, clean up pattern matches
2015-04-06 21:06:46 -07:00
Jo Liss
0dc177bf9c
Consolidate and avoid sed/cut calls, clean up pattern matches
...
Some patterns contained a no-op `*`; the `*` would match the empty string
because # or % replacement (unlike ## or %%) tries to find the shortest match.
2015-04-06 20:30:38 +00:00
Jordan Harband
c34502ebc2
nvm_num_version_groups should report 0 when given just a v or a .
2015-04-06 11:10:43 -07:00
Jordan Harband
3d764e6833
Add nvm_ensure_default_set
2015-04-05 16:49:29 -07:00
Jordan Harband
a26ef4f1be
Consolidate reinstall-packages-from logic to one place nvm install
2015-04-05 16:09:47 -07:00
Jordan Harband
d68f667464
When no arguments are passed to nvm run X, use nvm exec to open a REPL.
...
Fixes #625 . Tests will be in #717 .
2015-04-05 15:13:35 -07:00
Jordan Harband
c966204cd6
v0.24.1
2015-04-05 12:55:17 -07:00
Jordan Harband
d72b35b7b8
Remove external calls to sed using parameter filtering.
...
POSIX-compliant per http://stackoverflow.com/a/25536935/632724
Relates to #709
2015-04-05 02:35:05 -07:00
Jordan Harband
d50a0f46e9
Avoid some external calls by using case statements.
...
Relates to #709 .
2015-04-04 23:59:12 -07:00
Jordan Harband
82393f5b36
Making sure this test passes whether a system node is installed or not.
2015-04-04 23:49:43 -07:00
Jordan Harband
a1a8e5a51b
Clean up logic a bit.
2015-04-04 14:53:38 -07:00
Jordan Harband
108f630732
Cache the nvm_node_prefix call.
2015-04-04 14:31:56 -07:00
Jordan Harband
96e73825bd
Consolidate faster default alias lookup, and use that explicit version to avoid a second default alias lookup in nvm use default.
...
Related to #709 .
2015-04-04 15:45:40 -07:00
Jordan Harband
9fc20bb14b
Merge pull request #710 from joliss/sed
...
Combine sed and grep commands
2015-04-02 17:00:20 -07:00
Jordan Harband
3401d15a18
Merge pull request #705 from joliss/performance
...
Improve startup performance. Closes #703
2015-04-02 16:59:38 -07:00
Jo Liss
394e8505d9
Combine sed and grep commands
2015-04-02 16:58:31 +00:00
Jo Liss
fc86834e29
Add comment re nvm_ensure_version_installed performance
2015-04-02 15:30:33 +00:00
Jo Liss
609d9ee4ea
Improve startup performance. Closes #703
2015-04-02 15:30:33 +00:00
Jordan Harband
70370a857f
No more need for sudo to install ksh and zsh.
2015-03-19 11:05:31 -07:00
Jordan Harband
65a986c633
Merge pull request #693 from hax/reinstall-links
...
support npm link for reinstall-packages
2015-03-18 22:22:23 -07:00
Jordan Harband
3cc5d6af67
Merge pull request #694 from pfac/pfac-fix-source-nvm-sh-error-message
...
Fix error message when sourcing nvm.sh
2015-03-18 10:05:22 -07:00
Pedro Costa
999c4111c1
Supresses error message on checking source options
2015-03-18 10:21:11 +00:00
HE Shi-Jun
3d69cf7437
update testcase
2015-03-17 15:54:50 +08:00
HE Shi-Jun
207521d54b
support npm link
2015-03-17 14:19:32 +08:00
Jordan Harband
7750253bca
Merge pull request #690 from hax/patch-1
...
Only filter the package `npm`, not any package name that contains 'npm'
2015-03-16 03:10:50 -07:00
HE Shi-Jun
14b23bfa95
fix reinstall-packages test
2015-03-15 06:21:35 +08:00
HE Shi-Jun
bf7bd3e793
Only filter the package npm, not any package name contains 'npm'
2015-03-15 06:21:35 +08:00
Jordan Harband
2b63f37f8d
Make nvm_resolve_local_alias not return N/A - that should be done as shallowly as possible.
2015-03-14 10:55:31 -07:00
Jordan Harband
230b479648
Making help error output actually output to stderr consistently.
2015-03-14 10:34:52 -07:00
Jordan Harband
5802ac3ea7
v0.24.0
2015-03-05 21:35:37 -08:00
Jordan Harband
b18126cb15
Merge pull request #686 from jarrettchisholm/master
...
- fixed return code of 1 when updating from git
2015-03-05 16:53:39 -08:00
Jarrett Chisholm
c16919becd
- fixed return code of 1 when updating from git
2015-03-05 18:21:46 -05:00
Jordan Harband
8ae7a37d43
Fix bare nvm use when nvm_ls_current is "none".
2015-03-03 11:29:15 -08:00
Jordan Harband
ceb66d1356
Merge pull request #680 from sayanee/armv6l-armv7l-support
...
fix: download url for iojs armv6l and armv7l. #678 #227
2015-03-01 22:57:21 -08:00
Sayanee
16a730f4cc
amend all variables nvm_arch to capitalise
2015-03-02 12:28:21 +08:00
Sayanee
f8064b259d
fix: if case and capitalising variable
2015-03-02 12:19:34 +08:00
Sayanee
f8ee25ab5b
fix: local declaration of ksh compatibility
2015-03-02 01:04:29 +08:00
Sayanee
fb48129cd4
add support for node builds for armv6l named as arm-pi
2015-02-28 14:48:38 +08:00
Sayanee
9e154b159e
fix: download url for iojs armv6l and armv7l. #678 #227
2015-02-27 09:49:45 +08:00
Jordan Harband
fb853614a7
Use nvm_ensure_version_installed to consistently check if a version is installed.
...
Fixes #675 .
2015-02-22 11:10:19 -08:00
Jordan Harband
0d9329435c
Create nvm_ensure_version_installed
2015-02-22 02:26:27 -08:00
Jordan Harband
a0d04d0b6b
Preventing an unalias error in tests.
2015-02-22 02:21:00 -08:00
Jordan Harband
6c1a310846
Fix nvm_resolve_alias default from 7d22e0c458
2015-02-22 00:43:14 -08:00
Jordan Harband
758141f41e
Remove trailing whitespace
2015-02-22 00:29:25 -08:00
Jordan Harband
7d22e0c458
Separate nvm_resolve_alias's nvm_version behavior into nvm_resolve_local_alias.
2015-02-21 16:10:42 -08:00
Jordan Harband
cd481ff548
When none of the directories exist, don't find within them.
2015-02-20 23:12:44 -08:00
Jordan Harband
12ca8f2607
Add nvm_is_alias unit tests.
...
Fixes 670.
2015-02-20 13:59:08 -08:00
Jordan Harband
e58d4abf11
Add bash_completion for nvm exec
2015-02-16 00:39:05 -08:00
Jordan Harband
820074e1d7
Make sure checksum commands are not aliases.
...
Fixes #659 , #420 , #640 .
2015-02-16 00:16:54 -08:00
Jordan Harband
3d6b7976e7
Attempt to fix script install - no shadowing $NVM_SOURCE; nvm-exec and nvm.sh should not both use $NVM_SOURCE since they're different URLs.
...
Fixes #654 .
2015-02-11 14:32:25 -08:00
Jordan Harband
3190effedd
Add support for node and iojs implicit aliases.
2015-02-10 23:43:47 -08:00
Jordan Harband
d0617b5b79
Suppressing extraneous output from #622 .
2015-02-10 11:07:13 -08:00
Jordan Harband
286c808739
Cache values in local variables to avoid repeated lookups.
2015-02-10 10:36:12 -08:00
Jordan Harband
f0d81e2d33
Revert "install: adding some debugging output"
...
This reverts commit c8efe3d28a .
Conflicts:
install.sh
2015-02-09 17:16:56 -08:00
Jordan Harband
4768973a85
Merge pull request #631 from ELLIOTTCABLE/notify-about-global-modules
...
Notify the user that they're losing access to global modules
2015-02-09 16:54:20 -08:00
elliottcable
4508f7c33e
install: further support for older npm versions
2015-02-08 02:43:05 -06:00
elliottcable
ea4264645b
install: support npms lower than v2
2015-02-07 21:12:46 -06:00
elliottcable
a216f56443
tests: fail install_script test if npm can't install package
2015-02-07 20:53:53 -06:00
elliottcable
c8efe3d28a
install: adding some debugging output
2015-02-07 20:50:10 -06:00
elliottcable
0717d5f995
install: some tweaks and clean-up
2015-02-07 17:17:43 -06:00
elliottcable
6cfc309336
install: Pass global-module check in the absence of npm
2015-02-07 17:17:43 -06:00
elliottcable
dd1a9ca6a0
install: Adding global-module check to function resets
2015-02-07 17:17:43 -06:00
elliottcable
4ba7ee5797
install: Show a warning when global packages exist
2015-02-07 17:17:43 -06:00
Jordan Harband
40c9d6fd11
Merge pull request #648 from passcod/patch-1
...
Update README: Point fish users in the right direction (relates to #303 )
2015-02-07 14:33:20 -08:00
Félix Saparelli
2db71a85a5
Move mention of Fish near the Windows alternatives
2015-02-08 11:31:31 +13:00
Félix Saparelli
64b16faf72
Point fish users in the right direction
2015-02-08 11:05:21 +13:00
Jordan Harband
be56ff3b2e
Make sure multiple nvm run arguments get passed through to node/iojs properly.
...
Fixes #641 .
2015-02-07 10:09:37 -08:00
Jordan Harband
59e27f8108
Prevent VERSION='' output caused by double local declaration.
...
Fixes #644 .
2015-02-03 17:28:40 -08:00
Jordan Harband
0f1f3ed29c
v0.23.3
2015-02-02 20:26:00 -08:00
Jordan Harband
2116d2ff91
Filter out the io.js version dir from nvm_ls output.
...
Fixes #642 .
2015-02-02 17:41:04 -08:00
Jordan Harband
0b4c1e14cf
Ensure that nvm run 0.12 --version errors out sensibly when 0.12 isn't installed.
2015-02-01 13:02:46 -08:00
Jordan Harband
e1b7496cf0
Add nvm_is_valid_version
2015-02-01 13:01:40 -08:00
Jordan Harband
8a87133f71
When there's no nvm run output, don't echo an empty line.
2015-02-01 12:45:51 -08:00
Jordan Harband
0792945824
Bypass sha1sum/sha1 aliases. Fixes #640 .
2015-01-30 23:46:42 -08:00
Jordan Harband
a6819b3018
Fix nvm ls v1.0.3 so that it locates iojs-v1.0.3.
...
Also fix `nvm uninstall v1.0.3` so it won't uninstall it if it's the current version.
node versions will still take priority if there's ever a version overlap.
2015-01-25 12:31:19 -08:00
Jordan Harband
3d3d9d3a8d
Merge pull request #633 from gsklee/patch-1
...
Update README.markdown
2015-01-25 10:13:53 -08:00
G. Kay Lee
3e74bac964
Update README.markdown
...
Add link to io.js repo as suggested in #618
2015-01-25 15:29:36 +08:00
Jordan Harband
1eaf6b53e4
v0.23.2
2015-01-23 13:53:03 -08:00
Jordan Harband
24c60e4e51
Fix a bug in nvm_remote_version that was breaking nvm install stable/nvm install unstable.
...
Fixes #630 .
2015-01-23 12:09:13 -08:00
Jordan Harband
8822bd719a
v0.23.1
2015-01-23 02:08:36 -08:00
Jordan Harband
d90c1eca39
Remove trailing whitespace
2015-01-23 02:08:13 -08:00
Jordan Harband
223f388693
Merge pull request #622 from ohcibi/master
...
Prefer tee over > to maximize compatibility
2015-01-23 01:52:52 -08:00
Tobias Witt
cba5094652
Provide test case for testing the noclobber option from zsh
...
This tests the absence of the bug from #615
2015-01-23 09:29:13 +01:00
Tobias Witt
b5d9e547f2
Use tee to replace the alias files content instead of >
...
As mentioned in #615 it is possible to configure `>` to not override
existing files by default. `tee` is a standard tool that can be used
shell independent.
2015-01-23 09:29:12 +01:00
Jordan Harband
15598899b6
Merge pull request #628 from imyelo/patch-1
...
add iojs mirror to README
2015-01-22 20:25:13 -08:00
yelo
c8f712a334
add iojs mirror to README
2015-01-23 11:18:51 +08:00
Jordan Harband
2d9494af45
Clarifying install messages, to help with #559 and https://github.com/creationix/nvm/issues/400#issuecomment-71043828
2015-01-22 10:21:04 -08:00
Jordan Harband
2755227d40
Merge pull request #618 from mikeal/patch-1
...
Adding iojs to README.
2015-01-22 02:27:46 -08:00
Jordan Harband
dd146519a2
Improve nvm use success output for io.js.
...
Fixes #623
2015-01-21 22:06:38 -08:00
Jordan Harband
7243bd77d3
Refactor and create nvm_remote_versions and nvm_remote_version.
...
Fixes #620 - an oh-my-zsh issue where `nvm install v1` didn't work.
2015-01-21 20:48:25 -08:00
Jordan Harband
7d113a2b2f
Inline this use of nvm_remote_version
2015-01-21 16:27:20 -08:00
Jordan Harband
17df0b9912
Moving the N/A check earlier in nvm install
2015-01-21 16:19:22 -08:00
Jordan Harband
6cac732141
Including this omitted test.
2015-01-20 23:46:29 -08:00
Jordan Harband
9ee864b06f
Remove unused variables.
2015-01-20 18:33:51 -08:00
Mikeal Rogers
0471d0ffd6
Adding iojs to README.
...
Not entirely sure this is the best place for this but it was the best I could find.
2015-01-20 10:21:18 -05:00
Jordan Harband
43a7d78693
v0.23.0
2015-01-19 22:15:06 -08:00
Jordan Harband
879dda6c3d
Merge pull request #616 from ljharb/iojs
...
Add `io.js` support.
This branch adds support for https://github.com/iojs/io.js / https://iojs.org/
The following features should now work:
- `nvm install iojs` will install the latest `io.js` version. `nvm ls iojs` and `nvm use iojs` will function as you'd expect.
- `nvm install node` will install the latest stable `node` version. `nvm ls node` and `nvm use node` will function as you'd expect.
- In general, a specific `io.js` version can be referenced with the "iojs-" prefix. If `node` were to ever release a `v1.0.0`, `v1.0.0` would refer to `node`, and `iojs-v1.0.0` would refer to `io.js`. In the near future, `node-v1.0.0` will also refer to `node` unambiguously. This applies to all `nvm` commands, including working with aliases and `.nvmrc` files.
- `io.js`, unlike `node`, does not have a SunOS binary. Please open an issue on https://github.com/iojs/io.js if this is actually a problem for anyone, as currently it seems like this won't be for anybody.
**Note**: checksum support upon installation is currently disabled. Relates to https://github.com/iojs/io.js/issues/368 .
**Note**: installation of `io.js` directly from source (via the `-s` option) is not yet enabled. This will be added soon.
Relates to https://github.com/iojs/io.js/issues/40 https://github.com/iojs/io.js/issues/420
Fixes #590
2015-01-19 22:14:46 -08:00
Jordan Harband
ea12784629
Clean up nvm ls-remote behavior when one of node/iojs reports N/A.
...
This change:
- removes a superfluous N/A
- fixes the exit code to return 0 unless no version is found
- enables `nvm install v1` and similar patterns.
2015-01-19 18:35:05 -08:00
Jordan Harband
f1f11e3b7a
Ensure nvm_version node and nvm_version node- report the latest stable node version.
2015-01-19 10:05:36 -08:00
Jordan Harband
247bd310ef
Clean up nvm uninstall node and nvm uninstall iojs behavior.
2015-01-19 10:04:12 -08:00
Jordan Harband
dbeeb683da
Fix nvm_strip_path for >= v0.12.0 node, and all io.js versions.
2015-01-18 23:55:26 -08:00
Jordan Harband
39a75e616d
Add support for nvm use node, nvm use iojs, nvm ls node, and nvm ls iojs
...
Also add `nvm_version node` and `nvm_version iojs` support.
2015-01-18 20:45:02 -06:00
Jordan Harband
3cf68dc18d
Add nvm_has_system_iojs
2015-01-18 20:55:48 -06:00
Jordan Harband
654c37bc29
Make sure to add a test for implicit source installation.
2015-01-18 12:11:21 -06:00
Jordan Harband
c6a9f7baae
Merge pull request #613 from jsha/https
...
Move some URLs to HTTPS.
2015-01-18 22:25:12 -08:00
Jacob Hoffman-Andrews
bb2564d6db
npmjs.org -> npmjs.com
2015-01-18 22:24:22 -08:00
Jacob Hoffman-Andrews
896a7eddd3
Move some URLs to HTTPS.
2015-01-18 12:05:44 -08:00
Jordan Harband
8ae7b33632
Improving failure messages on this test
2015-01-17 11:52:06 -06:00
Jordan Harband
eb8c3414dd
Move nvm_get_latest tests from "installation" to "slow"
2015-01-17 11:52:06 -06:00
Jordan Harband
9615672243
Move node-specific installation tests to their own directory.
2015-01-17 11:52:06 -06:00
Jordan Harband
78c1f2cf9d
Split up this nvm current and node 0.6.21-pre test into separate tests.
2015-01-16 15:36:32 -06:00
Jordan Harband
ed22d3de2d
Add support for nvm install node and nvm install iojs
2015-01-16 11:10:37 -06:00
Jordan Harband
448bd38a55
v0.22.2
2015-01-14 15:44:40 -08:00
Jordan Harband
0ad5a450fe
Put node versions >= 0.12 in versions/node instead of just versions
2015-01-14 12:23:06 -08:00
Jordan Harband
d5e21be164
Add nvm_ensure_version_prefix unit tests.
2015-01-13 23:51:54 -08:00
Jordan Harband
797c5ab70b
Move "install node from source" logic into nvm_install_node_source function.
2015-01-13 18:15:42 -08:00
Jordan Harband
952096d034
Add iojs support to "install"
2015-01-13 17:52:18 -08:00
Jordan Harband
dd3a3763ce
Add io.js support to nvm uninstall
2015-01-16 10:41:40 -06:00
Jordan Harband
41c379839d
Make sure nvm run works with iojs prefixes.
2015-01-15 01:38:47 -08:00
Jordan Harband
d9340b6a53
io.js does not have a SunOS binary.
2015-01-13 17:48:15 -08:00
Jordan Harband
b0d6c05d6e
Make nvm ls-remote iojs [foo] only show iojs versions, and nvm ls-remote node [foo] only show node versions.
2015-01-13 14:19:58 -08:00
Jordan Harband
0e209ce890
Move "install node binary" logic into nvm_install_node_binary function.
2015-01-13 14:08:56 -08:00
Jordan Harband
9a57a891b9
Refactor OS and architecture detection into separate functions.
2015-01-13 02:41:55 -08:00
Jordan Harband
58ab2c3128
Add iojs support to nvm_remote_version
2015-01-13 02:22:22 -08:00
Jordan Harband
d70f0357f5
Add nvm_ls_remote_iojs and nvm ls-remote support for iojs.
2015-01-13 02:14:29 -08:00
Jordan Harband
5143de9653
Make nvm_ls_current work with iojs-prefixed versions.
2015-01-13 01:04:45 -08:00
Jordan Harband
5c336a7ccb
Make nvm_print_versions support iojs via nvm_version_path.
2015-01-13 00:49:31 -08:00
Jordan Harband
3d5ded1815
Update the way nvm_ls sorts things.
2015-01-13 00:21:33 -08:00
Jordan Harband
f661617f1c
Make nvm_ls foo work with iojs-prefixed version strings.
2015-01-12 18:16:11 -08:00
Jordan Harband
d28703f9e0
Update nvm_ensure_version_prefix to support iojs-prefixed version strings.
2015-01-12 18:15:51 -08:00
Jordan Harband
b7983842aa
Add nvm_add_iojs_prefix
2015-01-13 00:57:32 -08:00
Jordan Harband
c12104cecd
Add nvm_strip_iojs_prefix
2015-01-12 18:15:25 -08:00
Jordan Harband
98e0655198
Add nvm_is_iojs_version
2015-01-12 18:15:15 -08:00
Jordan Harband
c46748a379
Add nvm_node_prefix
2015-01-13 14:16:35 -08:00
Jordan Harband
8be97c8abb
Add nvm_iojs_prefix
2015-01-12 18:15:04 -08:00
Jordan Harband
7807a9f09e
Consolidate "alias" directory to a method.
2015-01-12 01:27:53 -08:00
Jordan Harband
835c006b5e
Better way to search multiple directories in nvm_ls
2015-01-12 01:15:48 -08:00
Jordan Harband
3fa11c35cb
Add io.js support to nvm_version_dir
2015-01-12 00:33:13 -08:00
Jordan Harband
34e51f9f02
Proper quoting and $(…) vs ….
2015-01-11 12:13:14 -08:00
Jordan Harband
4b5885d69d
Store the version path in a local variable for reuse.
2015-01-11 12:04:26 -08:00
Jordan Harband
bf794ff8da
Consistently prefix builtins with command
2015-01-11 11:53:24 -08:00
Jordan Harband
0bd7372c64
Rename this local var in nvm_version_dir
2015-01-11 11:38:55 -08:00
Jordan Harband
0a142b7e7a
v0.22.1
2015-01-10 19:43:36 -08:00
Jordan Harband
3fc82d6b2f
Use command sed for people who alias sed.
...
Fixes #493 .
2015-01-09 01:50:05 -08:00
Jordan Harband
c6489440dc
Add nvm_ls_current test for #605 and zsh.
2015-01-01 23:31:55 -08:00
Jordan Harband
67e8939311
Merge pull request #605 from dhcmrlchtdj/fix_which
...
Fix which command in zsh (#604 ).
2015-01-01 22:28:30 -08:00
niris
a26007ec0d
fix test suit
2015-01-02 12:51:59 +08:00
niris
3f5ce8b93a
Fix which command in zsh ( #604 ).
2015-01-02 10:20:57 +08:00
Jordan Harband
8328741792
Removing an unnecessary return $?
2014-12-28 22:29:26 -08:00
Jordan Harband
8e45afb9f1
Move the version to a single location, nvm_latest_version.
2014-12-28 15:59:06 -08:00
Jordan Harband
fd2fb24b03
Refactor nvm_source a bit.
2014-12-28 15:55:44 -08:00
Jordan Harband
4708cc73ef
Update semver
2014-12-27 01:39:48 -08:00
Jordan Harband
c91e8d0ba2
v0.22.0
2014-12-26 16:30:21 -08:00
Jordan Harband
f8b143c594
Merge pull request #602 from ljharb/install_on_source
...
Support `--install` option on sourcing `nvm.sh`
2014-12-26 14:03:22 -08:00
Jordan Harband
9a4e9060d8
Don't bother testing --install option on source, or supporting it, unless the shell supports passing options upon sourcing.
2014-12-26 13:33:33 -08:00
Jordan Harband
3df0caefa5
Support --install option upon sourcing.
2014-12-26 12:19:35 -08:00
Jordan Harband
274369dc40
Remove trailing whitespace
2014-12-22 23:08:03 -08:00
Jordan Harband
bef3a5ce3a
v0.21.0
2014-12-22 12:03:33 -08:00
Jordan Harband
0cb8c9ac2f
Merge pull request #599 from ljharb/nvm_get_latest
...
Add `nvm_get_latest`
This relates to #522 , #561 , #400 .
`nvm_get_latest` uses http://latest.nvm.sh which redirects to https://github.com/creationix/nvm/releases/latest which in turn redirects to the latest release tag.
2014-12-22 11:02:07 -08:00
Jordan Harband
25c61594fe
Tests for nvm_get_latest
2014-12-21 18:13:59 -08:00
Jordan Harband
0a739e3fa9
Add nvm_get_latest
2014-12-21 16:33:52 -08:00
Jordan Harband
c0a20f2fa3
Update semver
2014-12-19 17:13:00 -08:00
Jordan Harband
2d78d69d4c
Properly outputting the version when nvm_version_path outputs the new "versions" subdirectory.
2014-12-19 17:12:38 -08:00
Jordan Harband
9e17b5059c
Return the proper exit code of which directly.
2014-12-19 16:23:27 -08:00
Jordan Harband
0ac2c787be
Merge pull request #597 from danielb2/which
...
Fix `nvm which` to use conventional direct path to program, like system `which`
2014-12-19 13:05:39 -08:00
Daniel Bretoi
99ca0de18f
revert echoing path. make tests even better
2014-12-19 11:31:46 -08:00
Daniel Bretoi
f196ace5dd
style
2014-12-19 11:10:50 -08:00
Daniel Bretoi
d1a90ca15c
work like system which. show system node without changing to use it
2014-12-19 11:10:50 -08:00
Jordan Harband
b3178ca925
Add "--quiet" to git commands post-install.
...
Mentioned in #595 .
2014-12-18 10:37:10 -08:00
Jordan Harband
b9df3fccb4
Remove trailing whitespace.
2014-12-17 01:30:29 -08:00
Jordan Harband
f408d68afc
Add nvmrc note to nvm which blurb.
2014-12-17 01:30:23 -08:00
Jordan Harband
fc3a30dd0e
Add nvm which to bash_completion
2014-12-17 01:29:38 -08:00
Jordan Harband
74b36b09ff
Merge pull request #583 from danielb2/which
...
Adds `nvm which`
2014-12-17 01:26:50 -08:00
Jordan Harband
080f2149ac
Update urchin
2014-12-08 21:51:06 -08:00
Jordan Harband
3bd148056e
Fixing deactivate tests.
...
Fixes #357 .
2014-12-03 00:04:43 -08:00
Jordan Harband
5edf013127
Merge pull request #591 from mklement0/fix_make_file
...
obsolete check for the urchin cross-shell test feature; fix for spurious...
2014-12-02 23:40:24 -08:00
Michael Klement
ae908cbff6
obsolete check for the urchin cross-shell test feature; fix for spurious warnings; improved robustness
2014-12-03 01:47:54 -05:00
Daniel Bretoi
7805492bda
merge with master
2014-12-02 13:01:37 -08:00
Daniel Bretoi
a1c0c34088
fix to proper echo of nvm which. Checkin test which had been left out
2014-12-02 12:58:07 -08:00
Daniel Bretoi
234b925c7a
style and remove nvm deactivate in nvm which
2014-12-02 12:40:23 -08:00
Jordan Harband
8964cb46d3
v0.20.0
2014-11-29 11:23:16 -08:00
Jordan Harband
383f39ab61
Global modules should not be requireable, and npm root -g should not be in $NODE_PATH.
...
Fixes #586 .
2014-11-29 11:22:10 -08:00
Jordan Harband
052743816f
$NODE_PATH is special, so this function shouldn't risk clobbering it.
2014-11-28 11:59:45 -06:00
Jordan Harband
7bbcd3a977
v0.19.0
2014-11-23 14:49:38 -08:00
Jordan Harband
e728577627
Rename nvm copy-packages to nvm reinstall-packages, and --copy-packages-from install option to --reinstall-packages-from
...
For #341 . `nvm copy-packages` and install option `--copy-packages-from` will continue to be supported for for at least a full minor release version.
2014-11-22 13:22:24 -08:00
Jordan Harband
c33074cb54
Tweaking formatting of help output; adding nvm exec example.
2014-11-22 10:48:12 -08:00
Jordan Harband
689c52c90d
Install nvm-exec as well when installing via script.
...
Fixes #553 .
2014-11-22 10:34:20 -08:00
Jordan Harband
5904d41b25
Fixing a bug in install_as_script, from 516e553093
2014-11-22 10:29:48 -08:00
Daniel Bretoi
0c33fd2598
change to use default behavior for which
2014-11-22 08:17:15 -08:00
Daniel Bretoi
c9a53fe0c7
include nvm which in documentaiton
2014-11-21 17:55:46 -08:00
Daniel Bretoi
8b25457b74
remove redundant lines from test file
2014-11-21 17:53:08 -08:00
Daniel Bretoi
ee520abf78
adding some tests for nvm which
2014-11-21 17:51:49 -08:00
Daniel Bretoi
b63042bd9f
forgot to append bin
2014-11-21 16:59:15 -08:00
Daniel Bretoi
382c3aa85e
implements nvm which
2014-11-21 16:54:31 -08:00
Jordan Harband
afba4e08fd
Temporarily disable ksh tests, per #574
2014-11-15 11:02:00 -06:00
Jordan Harband
ce82109229
Merge pull request #567 from xcambar/nvm_source
...
[install script] Refactors NVM_SOURCE
2014-11-15 10:23:40 -06:00
Xavier Cambar
516e553093
Refactors NVM_SOURCE
2014-11-06 22:35:24 +01:00
Jordan Harband
e28a257f23
Merge pull request #573 from mklement0/amend_travis_yml
...
.travis.yml now obtains latest urchin version from the npm registry
2014-11-05 21:54:53 -08:00
Michael Klement
2d8adac785
.travis.yml now obtains latest urchin version from the npm registry instead of directly from GitHub
2014-11-05 23:22:55 -05:00
Jordan Harband
bf4bf008ac
Update urchin
2014-11-05 13:58:30 -08:00
Jordan Harband
5f5eb47f14
v0.18.0
2014-11-05 10:59:59 -08:00
Jordan Harband
d09b84de3c
Ensure that a system has manpath before invoking it.
...
Closes #531 , fixes #557 .
2014-11-02 13:54:54 -08:00
Jordan Harband
4b6075e29b
Merge pull request #568 from mklement0/fix_make_file
...
Fixed Urchin invocation problem in zsh and dash. Makefile "future-proofed" to take advantage of true cross-shell testing with Urchin, once available.
2014-11-02 13:43:28 -08:00
Michael Klement
781f72c9c8
Makefile now makes use of the -s <shell> option for Urchin, IF it is available, for true cross-shell testing.
...
Conversely, a warning is issued if it is missing, because that implies that no actual cross-shell testing will take place.
Also, the shell command that determines the set of available test suites is now POSIX-compliant.
2014-11-01 02:18:10 -04:00
Jordan Harband
6ec62fcc79
Merge pull request #564 from xcambar/nvm_detect_profile
...
Tests for PROFILE detection
2014-10-30 10:24:53 -07:00
Jordan Harband
fc17aaafb1
Merge pull request #541 from mklement0/fix_make_file
...
Makefile enhanced to error out with instructions if invoked without a target.
2014-10-30 10:23:37 -07:00
Michael Klement
ac912afc4c
Many makefile enhancements (support for direct invocation, instructions if invoked without target, release mechanism improved), package.json scripts now invoke the makefile.
...
- Using `npm test` and `npm run …` scripts defined in package.json now invokes the makefile and runs the test with the same shell that npm was invoked from.
- The makefile can now be invoked directly - supporting utilities from locally installed npm packages are automatically discovered.
- Invoking the makefile without a target errors out with a hint.
- Shell-specific test targets are now named 'test-<shell>'.
- Both 'test-<shell>' targets and the all-shells 'test' target now run all test suites by default.
- On `make TAG=<new-version> release` there must be no uncommitted changes. '<new-version>' can now also be one of the following increment specifiers: 'patch', 'minor', 'major'.
- It is ensure that <new-version>, if not an increment specifier, is a valid semver version number that is higher than the previous release's.
- The previous release tag is now located with a pattern so as to exclude tags that aren't version numbers.
- Switched from lightweight to annotated tags for releases.
2014-10-30 00:13:22 -04:00
Xavier Cambar
b9f15b0ab0
Tests for PROFILE detection
2014-10-29 18:50:04 +01:00
Jordan Harband
d30c0fe146
Cleaning up install_script tests.
2014-10-28 13:47:21 -07:00
Jordan Harband
21534ec0c9
Merge pull request #556 from xcambar/install_function_for_testing
...
Add install_script test suite; wrap installation in a function, for testing.
2014-10-28 13:42:59 -07:00
Xavier Cambar
3cdec8e875
Testable install script
...
* wraps main code into a function
* EnvVar-based install start
* Clean environment after install
2014-10-28 11:44:01 +01:00
Jordan Harband
cec1c38a84
Move sourcing tests to a separate test suite.
2014-10-26 23:40:32 -07:00
Jordan Harband
ad0a5cd8c7
Merge pull request #560 from brock/pwd
...
use `command -p pwd` to use the system default pwd
2014-10-26 01:23:41 -07:00
Brock Angelo
1c9a5ba2d8
use slash pwd instead of command
2014-10-25 22:19:27 -05:00
Brock Angelo
fd1f2cdf66
use command -p pwd to use the system default pwd
2014-10-25 13:55:20 -05:00
Jordan Harband
2d529cc8b7
Prevent attempts to nvm use a circular reference.
2014-10-22 18:15:21 -07:00
Jordan Harband
9b91734f0b
Show "∞" when there's a circular alias reference.
2014-10-22 18:15:21 -07:00
Jordan Harband
0f5997f754
Clean up from some more tests
2014-10-22 18:15:21 -07:00
Jordan Harband
7a339bdd3c
Adding nvm_resolve_alias
2014-10-22 01:30:40 -07:00
Jordan Harband
08aa09e664
Prevent test pollution.
2014-10-22 01:26:39 -07:00
Jordan Harband
8284cd0f81
Ensuring that there's a stable and unstable version "available" for this test.
2014-10-21 01:02:59 -07:00
Jordan Harband
e421a0dc5f
Ensure nvm follows redirects to nodejs.org
2014-10-20 16:02:46 -07:00
Jordan Harband
601490ac1d
Merge tag 'v0.17.3'
2014-10-20 15:50:47 -07:00
Jordan Harband
4748b3a236
v0.17.3
2014-10-20 15:48:49 -07:00
Jordan Harband
2a61569881
http://nodejs.org/dist now redirects to https://nodejs.org/dist
2014-10-20 15:48:35 -07:00
Jordan Harband
a7b1f93592
README cleanup: Use the Oxford comma, properly lowercase commands
2014-10-19 19:26:17 -07:00
Jordan Harband
ca89cceb99
Default $NVM_SYMLINK_CURRENT to off (create a "current" symlink on use).
...
Fixes #499 .
2014-10-14 18:14:12 -07:00
Jordan Harband
7b6e06e556
Add tests for "nvm use default on source" behavior.
2014-10-13 23:55:58 -07:00
Jordan Harband
370dfcab7c
Merge pull request #548 from BanzaiMan/ha-bug-npm-update
...
Fix npm update code
2014-10-12 16:35:13 -07:00
Hiro Asari
44d5776110
Fix npm update code
...
https://npmjs.org/install.sh redirects to https://www.npmjs.org/install.sh
so this code would fail if it ever npm was absent when we get here.
2014-10-12 12:28:38 -04:00
Jordan Harband
d49443e1fb
Properly handle nvm_print_implicit_alias splitting in zsh.
...
Hopefully fixes #546 .
2014-10-11 00:41:16 -04:00
Jordan Harband
e99645f402
Don't list uninstalled implicit aliases
2014-10-10 23:46:25 -04:00
Jordan Harband
8f76b35370
Fix nvm alias tests to have both stable and unstable mocks.
2014-10-10 23:46:25 -04:00
Jordan Harband
a2633e5980
Fixing "nvm alias" output redirection.
2014-10-09 00:19:14 -07:00
Jordan Harband
6c89e96f67
Ensure that we don't try to uninstall the current version of node in test teardowns.
2014-10-09 00:19:14 -07:00
Jordan Harband
1ee708b79b
Fix an output redirection error.
2014-10-06 16:18:21 -07:00
Jordan Harband
035334fd34
Merge pull request #544 from coreybutler/patch-1
...
Fixed links
2014-10-05 12:02:30 -07:00
Corey Butler
2edc86d574
Fixed links
...
The links were relative to github.com/creationix/nvm/master instead of the intended sites.
2014-10-05 10:15:10 -05:00
Jordan Harband
9d23f609ad
Add note about Windows options. Related to #284 .
2014-10-04 16:42:29 -07:00
Jordan Harband
9d9cfdc2c8
Two spaces after a period is incorrect.
2014-10-04 16:38:56 -07:00
Jordan Harband
1931f7f3f8
Remove '-e' option from installation tests, in favor of explicit failures.
2014-10-03 03:03:48 -07:00
Jordan Harband
2f2c6f0727
Use nvm_alias in nvm_ls.
2014-10-02 17:19:21 -07:00
Jordan Harband
0eef553a88
Use -f instead of -e in nvm_alias.
2014-10-02 16:06:09 -07:00
Jordan Harband
5135577a3c
Ensure nvm run has the same semantics as nvm use
2014-10-01 01:46:46 -07:00
Jordan Harband
5bc6e289ce
Silencing nvm_version_path error output in nvm_print_versions
2014-10-01 01:46:35 -07:00
Jordan Harband
d0c6b87b2e
Use nvm_alias in nvm alias
2014-09-30 00:24:37 -07:00
Jordan Harband
66b214651f
Add nvm_alias and unit tests.
2014-09-30 00:23:37 -07:00
Jordan Harband
acfc459bc5
Adding notes to the README for "stable", "unstable", and "system".
2014-09-29 21:43:58 -07:00
Jordan Harband
fc16d20766
Merge pull request #537 from ljharb/add_stable_unstable_aliases
...
Add stable & unstable aliases.
Fixes #336 .
With these changes, the following `nvm` commands will now support "stable" and "unstable" default/implicit aliases:
- `ls`/`list`
- `use`
- `alias`
- `run`
- `exec`
- `uninstall`
- `copy-packages`
For these, "stable" will be the latest even minor version that's locally installed; "unstable" will be the latest odd minor version that's locally installed.
In addition, `nvm ls-remote` and `nvm install` will accept the same implicit aliases, however, these will actually call nodejs.org and output the latest even and odd minor versions available for installation.
`nvm alias stable foo` and `nvm alias unstable foo` will *override* the default/implicit aliases. `nvm alias` output will reflect this by showing "(default)" when the alias is not user-defined.
2014-09-29 21:35:44 -07:00
Jordan Harband
f0471acbf5
v0.17.2
2014-09-29 14:32:44 -07:00
Jordan Harband
fda05fb64b
Remove trailing whitespace.
2014-09-29 14:26:19 -07:00
Jordan Harband
2737a95645
Create nvm_ensure_version_prefix, and make nvm_format_version actually format the version.
2014-09-29 01:36:02 -07:00
Jordan Harband
5706aef3d0
nvm_format_version: add unit tests.
2014-09-29 01:34:50 -07:00
Jordan Harband
4cdf356cdc
Support nvm ls-remote stable and nvm ls-remote unstable
2014-09-29 00:10:06 -07:00
Jordan Harband
c918e570b6
Add support for nvm ls stable and nvm ls unstable
2014-09-29 00:09:48 -07:00
Jordan Harband
5dc7af6285
Make nvm alias list implicit "stable" and "unstable" aliases when they're not already aliases.
2014-09-29 00:09:17 -07:00
Jordan Harband
f9565ff675
Adding nvm_print_implicit_alias success tests
2014-09-29 00:08:55 -07:00
Jordan Harband
cea0e88489
Adding nvm_print_implicit_alias error tests.
2014-09-28 22:43:46 -07:00
Jordan Harband
5aad535d53
Adding nvm_print_implicit_alias
2014-09-28 22:40:17 -07:00
Jordan Harband
fcdd1ef431
Add nvm_validate_implicit_alias
2014-09-28 22:36:02 -07:00
Jordan Harband
cd4fc8fb2c
Adding unit tests for nvm_ls_remote
...
`nvm_download` is stubbed, to avoid making network calls.
2014-09-28 22:00:20 -07:00
Jordan Harband
050a2ee9d3
nvm_remote_version: add unit tests
...
`nvm_ls_remote` is stubbed out to avoid making network calls here.
2014-09-28 18:12:25 -07:00
Jordan Harband
ff92ba7f43
Silence more secondary "deactivate" output.
2014-09-28 16:50:50 -07:00
Jordan Harband
804f2759f8
Ensure that nvm use works when .nvmrc contains "system"
2014-09-28 16:50:50 -07:00
Jordan Harband
d5fe657382
Ensure nvm_rc_version always modifies $NVM_RC_VERSION, rather than retaining its value from previous runs.
2014-09-28 16:50:50 -07:00
Jordan Harband
3e4613fd66
Don't output nvm deactivate output when running nvm use system
2014-09-28 16:50:50 -07:00
Jordan Harband
9aec19a692
Update bash completion commands for nvm
2014-09-28 16:50:49 -07:00
Jordan Harband
b707d8b072
nvm_ls: format the version immediately, so that nvm ls 0.0.1 doesn't return nvm ls 0.0.10
2014-09-28 10:14:27 -07:00
Jordan Harband
be605cb12b
Adding a failing test: nvm ls 0.0.x includes v0.0.xy
2014-09-28 10:18:00 -07:00
Jordan Harband
3c66c20570
Improving "nvm alias" tests to test for all cases.
2014-09-28 10:07:50 -07:00
Jordan Harband
59bfdb9863
Making sure fast alias tests do their own teardown.
2014-09-28 09:54:35 -07:00
Jordan Harband
25bd2bb018
Make nvm ls-remote return nvm_ls_remote's exit code.
2014-09-28 09:41:02 -07:00
Jordan Harband
4a8a5a1180
Shell-quoting some more things.
2014-09-27 17:30:09 -07:00
Jordan Harband
145da7eef8
v0.17.1
2014-09-26 23:22:56 -07:00
Jordan Harband
4cf56ae186
Remove unnecessary local var declaration. Fixes #535
2014-09-26 23:22:38 -07:00
Jordan Harband
5ad00f13fa
Suppress error messages in case there's no master branch.
...
Fixes #533 .
2014-09-25 22:10:48 -07:00
Jordan Harband
53f9841c6c
v0.17.0
2014-09-24 14:58:07 -07:00
Jordan Harband
444efdb08b
Adding some more quotes and $()
2014-09-23 23:51:02 -07:00
Jordan Harband
6fde379707
Use _ instead of ~ as a sentinel
2014-09-23 23:50:12 -07:00
Jordan Harband
ce69c8413e
More shellcheck recommendations
2014-09-23 23:49:51 -07:00
Jordan Harband
51f6109f8d
Use $() instead of backticks; add quotes
2014-09-23 23:49:10 -07:00
Jordan Harband
4f081ce4be
Collapsing some if/else conditions with elif
2014-09-23 23:48:31 -07:00
Jordan Harband
db0051753a
Compare shell variable contents with a sentinel.
2014-09-23 23:47:17 -07:00
Jordan Harband
cf1110ecea
Quote $NVM_DIR in commands
2014-09-23 23:46:23 -07:00
Jordan Harband
34b97bf76d
Adding shell var quotes in nvm alias
2014-09-23 17:23:37 -07:00
Jordan Harband
b962a590a2
Removing an extra mkdir -p
2014-09-23 17:23:09 -07:00
Jordan Harband
ddb25ed5a3
Merge pull request #530 from creationix/copy_packages_from_on_install
...
nvm install: Add --copy-packages-from option
2014-09-21 18:57:04 -07:00
Jordan Harband
486d14f5f8
Copy packages when applicable, whenever nvm install would normally nvm use and exit.
2014-09-21 18:25:15 -07:00
Jordan Harband
622fdd2cd0
Error out early if the --copy-packages-from version is invalid.
2014-09-21 18:03:11 -07:00
Jordan Harband
eddbe15ee8
Extract --copy-packages-from argument.
2014-09-21 18:03:11 -07:00
Jordan Harband
2e161fe414
nvm install: Remove this redundant "already installed" check.
2014-09-21 11:22:05 -07:00
Jordan Harband
a42b90d215
Adding some helpful output to nvm copy-packages
2014-09-21 11:02:03 -07:00
Jordan Harband
6bae6c07f2
Merge pull request #528 from creationix/remove_last_expr
...
Remove last usages of `expr`
2014-09-19 12:37:33 -07:00
Jordan Harband
7fd6d05426
Instead of using expr to check if paths need cleaning, compare cleaned paths to original paths and export appropriately.
2014-09-19 10:10:53 -07:00
Jordan Harband
5ef092b2c8
Using nvm_version_greater and nvm_version_greater_than_or_equal_to instead of expr in nvm install.
2014-09-19 10:10:37 -07:00
Jordan Harband
cb6456fd85
Using nvm_version_greater_than_or_equal_to instead of nvm_version_greater where it increases readability.
2014-09-19 10:10:01 -07:00
Jordan Harband
991fb85047
Adding nvm_version_greater_than_or_equal_to
2014-09-19 10:09:45 -07:00
Jordan Harband
edf36a8ea7
Merge pull request #526 from creationix/add_nvm_num_version_groups
...
Replace `expr` with `nvm_num_version_groups`
2014-09-16 10:13:57 -07:00
Jordan Harband
35466187f2
Noting the changed behavior of nvm ls vx.y. to return something useful.
2014-09-16 09:03:48 -07:00
Jordan Harband
c992b1766c
Use nvm_num_version_groups in nvm_ls
2014-09-16 09:03:47 -07:00
Jordan Harband
4b2bc0be08
Adding nvm_num_version_groups
2014-09-16 09:03:47 -07:00
Jordan Harband
15b3e7b6a8
Removing unnecessary cleanup in "Listing Versions" tests.
2014-09-16 09:03:47 -07:00
Jordan Harband
8d05ab63f1
Silencing error output in the "Listing Versions" teardown script.
2014-09-16 09:03:47 -07:00
Jordan Harband
da693eaea1
Tweaking nvm_ls_current tests.
2014-09-16 09:03:47 -07:00
Jordan Harband
5363ff8916
Merge pull request #525 from creationix/add_unit_tests
...
Add unit tests
2014-09-15 20:46:31 -07:00
Jordan Harband
e186fa27a7
Use nvm_version_greater in nvm_binary_available
2014-09-15 09:20:47 -07:00
Jordan Harband
f6e0104685
Use nvm_normalize_version in nvm_version_greater
2014-09-15 09:17:41 -07:00
Jordan Harband
97d4e2f88f
Unit tests: add nvm_find_up
2014-09-15 09:09:56 -07:00
Jordan Harband
e0a22ccf4a
Unit tests: add nvm_has
2014-09-15 09:09:51 -07:00
Jordan Harband
d5d66c34d9
If there's no "default" specified, fall back to an .nvmrc file.
2014-09-15 07:54:30 -07:00
Jordan Harband
152904e3fb
Return a nonzero exit code from nvm_rc_version when no .nvmrc found
2014-09-15 07:51:00 -07:00
Jordan Harband
64de890d07
v0.16.1
2014-09-14 22:24:18 -07:00
Jordan Harband
a4da8a48ef
Merge pull request #524 from creationix/run_installation_tests_separately
...
Run installation tests separately
2014-09-14 22:21:02 -07:00
Jordan Harband
354be52672
Correct installation test paths
2014-09-14 18:01:55 -07:00
Jordan Harband
ad604cc068
Only run the "installation" tests both with and without curl.
2014-09-14 17:25:17 -07:00
Jordan Harband
ba08fa31d8
Moving actual installation tests to their own suite.
2014-09-14 17:24:30 -07:00
Jordan Harband
13aadbcf31
Run slow tests in ksh too
2014-09-14 16:42:23 -07:00
Jordan Harband
7bb6e9c915
Merge pull request #523 from creationix/run_slow_nvmrc_tests_too
...
Actually run all tests; fix some bugs
2014-09-14 16:38:12 -07:00
Jordan Harband
3d3145f2e0
install: don't output "additional options" when there are none.
2014-09-14 16:04:51 -07:00
Jordan Harband
4c948cf422
install: Ensure that if a version is not provided, we don't try to shift a nonexistent argument.
2014-09-14 16:04:37 -07:00
Jordan Harband
f8054d5cae
copy-packages: ensure that nvm_version is also applied to compare the provided version to the current one.
2014-09-14 16:04:25 -07:00
Jordan Harband
ad2713b13a
&> is a bash-specific extension for redirecting both stdout and stderr.
2014-09-14 16:04:13 -07:00
Jordan Harband
243fc04164
Fixing these test files that have never been run
2014-09-14 16:04:04 -07:00
Jordan Harband
a80f958a1e
All 4 of these test files should be executable.
2014-09-14 16:03:55 -07:00
Jordan Harband
f6fef75f36
Use git in manual install instructions to determine the latest release tag, rather than hardcoding it.
...
Per 199ba53340
2014-09-13 11:37:19 -07:00
Jordan Harband
199ba53340
Fixing manual install instructions to use the version tag. Relates to #520
2014-09-13 00:59:09 -07:00
Jordan Harband
d1b6332bbe
v0.16.0
2014-09-11 00:58:09 -07:00
Jordan Harband
159d4c645e
Merge pull request #518 from creationix/nvm_copy_packages_system
...
Make `nvm copy-packages system` work
2014-09-05 09:05:27 -07:00
Jordan Harband
687df82107
Make nvm copy-packages system work.
2014-09-05 00:43:12 -07:00
Jordan Harband
ff1781b95d
Make nvm copy-packages refuse to copy packages from the currently activated version.
2014-09-05 00:42:59 -07:00
Jordan Harband
110e571c34
Make nvm ls system work.
2014-09-05 00:29:20 -07:00
Jordan Harband
a7108e98f2
Make .bashrc be checked first on install.
...
From #511 . Closes #320 . Closes #268 . Closes #334 . Fixes #497 . Relates to
2014-09-04 00:54:50 -07:00
Jordan Harband
30b044a368
Merge pull request #511 from 16BITBoy/bashrc-support
...
Fix for nvm not being sourced to bash when using gnome-terminal in Ubuntu 14.04
2014-09-04 00:53:23 -07:00
Adrian Perez Heredia
825cb46969
Updated error message for missing profile file
2014-09-03 15:07:28 +02:00
Adrian Perez Heredia
ab56ec6675
This patch adds support for terminal emulators. Without this it wont work on gnome-terminal on Ubuntu
2014-09-03 15:07:27 +02:00
Jordan Harband
9d96e4a6bf
v0.15.0
2014-09-03 00:08:53 -07:00
Jordan Harband
a00a3a7429
Document NVM_SYMLINK_CURRENT env var from #514 .
2014-09-03 00:07:45 -07:00
Jordan Harband
1c3585e5a2
Merge pull request #508 from creationix/nvm_copy_packages_not_npm
...
Don't copy `npm` with `nvm copy-packages`
2014-09-03 00:01:03 -07:00
Jordan Harband
214ce8853b
npm ls has a bug in some versions when "--parseable --depth=0" is used together.
2014-09-02 15:47:45 -07:00
Jordan Harband
d24dc662dc
Merge pull request #512 from kevinwang/shasum-lowest-priority
...
Make shasum the lowest priority checksum command.
2014-09-02 00:36:17 -07:00
Kevin Wang
e8056ac460
Run cleanup on die in nvm_checksum unit test.
2014-08-30 21:57:17 -05:00
Kevin Wang
429656bc41
Add unit tests for nvm_checksum.
2014-08-30 21:54:46 -05:00
Jordan Harband
b61445cbf4
Merge pull request #514 from stelcheck/master
...
Make the creation of a symlink an overridable default behaviour
2014-08-30 09:49:52 -07:00
Jordan Harband
603253b0cb
Quote the version.
2014-08-29 00:12:16 -07:00
Jordan Harband
5ee955bb62
Remove unused $ROOT variable.
2014-08-29 00:12:02 -07:00
stelcheck
83a0efb085
* We print stats only on failure
...
* || true
2014-08-29 15:01:15 +09:00
stelcheck
9306a9b3f0
* Unit tests
2014-08-29 14:57:30 +09:00
stelcheck
59939d09e8
* Make the creation of a symlink an overridable default behaviour
2014-08-28 22:45:07 +09:00
Jordan Harband
f9769e40dd
v0.14.0
2014-08-27 00:49:30 -07:00
Jordan Harband
9c44a3e4c7
Merge pull request #513 from creationix/node_0_6_21_pre
...
Add special handling for node v0.6.21-pre
2014-08-27 00:38:32 -07:00
Jordan Harband
5048a78376
Add special handling for node v0.6.21-pre
2014-08-26 23:53:17 -07:00
Kevin Wang
814319d7c0
Make shasum the lowest priority checksum command.
...
This fixes false "Checksums do not match" errors on systems where shasum
is a symlink to sha256sum or otherwise.
2014-08-27 00:06:41 -05:00
Jordan Harband
4b3d6f1760
Properly pass a space-separated list of packages to npm install
...
Fixes #490 .
2014-08-22 02:44:04 -07:00
Jordan Harband
56c40cfa3c
Don't try to copy npm itself with nvm copy-packages.
...
Fixes #504 .
2014-08-22 02:19:56 -07:00
Jordan Harband
fd9e01b7e6
Merge pull request #507 from creationix/nvm_ls_current_tests
...
nvm_ls_current tests
2014-08-22 01:59:14 -07:00
Jordan Harband
5c7f08843d
Add error checking to nvm_tree_contains_path
2014-08-21 17:15:53 -07:00
Jordan Harband
6e6c5c4e2a
Removing an invalid option to touch from this test.
2014-08-21 17:19:43 -07:00
Jordan Harband
1c2c4788a2
Fixing nvm_version_greater tests.
...
Relates to #505 , #506 .
2014-08-21 23:42:51 -07:00
Jordan Harband
b59ecb9e11
Make sure the new versions directory is filtered out of nvm_ls output (in zsh).
2014-08-21 23:39:40 -07:00
Jordan Harband
7551746e55
Merge pull request #505 from magicdrive/fix-error_nvm_version_greater
...
Fixed `nvm_version_greater` has syntax error in zsh-builtin command `[`
2014-08-21 22:42:05 -07:00
Jordan Harband
70ac1e7fa4
Fix tests so that they fail in zsh (for #505 )
2014-08-21 22:40:48 -07:00
Hiroshi IKEGAMI
f130d02efc
Fixed nvm_version_greater has syntax error in zsh-buildin-command [
2014-08-22 10:59:11 +09:00
Jordan Harband
150aea21ec
Fixes #487 .
2014-08-21 16:51:24 -07:00
Jordan Harband
273f9d497a
Adding unit tests for nvm_ls_current. Relates to #487 .
2014-08-21 01:35:03 -07:00
Jordan Harband
1c85068091
Merge pull request #502 from creationix/nvm_version_path
...
Store versions 0.12.0 and newer in a `versions` subdirectory
2014-08-20 22:49:17 -07:00
Jordan Harband
42786630a1
Merge pull request #503 from egilkh/master
...
Should escape grep in copy-packages.
2014-08-20 10:03:57 -07:00
egilkh
938feca6a9
Should escape grep in copy-packages.
2014-08-20 15:09:40 +02:00
Jordan Harband
3747735980
Make sure nvm clear-cache clears the versions directory as well.
2014-08-20 00:50:15 -07:00
Jordan Harband
5dd2d7e5d4
Make nvm ls support listing the "versions" directory when it's present.
2014-08-20 00:42:50 -07:00
Jordan Harband
65c2435418
Making sure that versions are backed up when running tests.
2014-08-20 00:37:38 -07:00
Jordan Harband
0a695c5d2a
Modify nvm_version_path to use nvm_version_greater.
2014-08-20 00:18:29 -07:00
Jordan Harband
8fe677a644
Add nvm_version_greater
2014-08-20 00:01:06 -07:00
Jordan Harband
213ff003d0
Use nvm_version_path everywhere possible.
2014-08-19 16:17:18 -07:00
Jordan Harband
986abbf5db
Create nvm_version_path
2014-08-19 16:17:00 -07:00
Jordan Harband
a2da9abd6d
Use nvm_version_dir in nvm_version_path
2014-08-19 01:56:34 -07:00
Jordan Harband
9068dda110
Adding nvm_version_dir
2014-08-19 01:53:39 -07:00
Jordan Harband
6baa9a0918
Merge pull request #501 from creationix/fix_copy_packages
...
Fix nvm copy-packages
2014-08-16 02:35:15 -07:00
Jordan Harband
b8fe75e93a
Tests for nvm copy-packages
2014-08-16 01:58:39 -07:00
Jordan Harband
78a5e3fadf
Attempt to improve nvm copy-packages
2014-08-16 00:14:29 -07:00
Jordan Harband
5e54886cbc
Merge pull request #500 from creationix/run_slow_tests_on_all_shells
...
Run slow tests on all shells
2014-08-15 21:30:29 -07:00
Jordan Harband
d7849054f8
Apparently wget outputs to stderr, so let's make sure we're checking both stderr and stdout.
2014-08-15 20:47:55 -07:00
Jordan Harband
708ac80a55
Properly replace the -I curl option for the --server-response wget option.
2014-08-15 20:47:55 -07:00
Jordan Harband
d341d5e535
Run all slow tests on all shells
2014-08-08 12:16:22 -07:00
Jordan Harband
eef12cc2b3
v0.13.1
2014-08-08 11:48:54 -07:00
Jordan Harband
99c8b59a14
Make sure that $ARGS is evaluated natively rather than as a single string argument.
...
Fixes #494 .
2014-08-08 11:48:38 -07:00
Jordan Harband
abdc3f3c21
Run all fast tests without curl.
2014-08-07 13:53:12 -07:00
Jordan Harband
401ac45568
Merge pull request #477 from koenpunt/without-curl
...
add test without curl
2014-08-07 13:52:06 -07:00
Jordan Harband
61709c1f97
v0.13.0
2014-08-02 19:24:39 -07:00
Jordan Harband
1a8479ed31
Merge pull request #491 from creationix/nvm_exec
...
Add `nvm exec` command.
2014-08-02 19:23:05 -07:00
Jordan Harband
a703d3591f
Tweaking the readme description
2014-08-02 19:22:53 -07:00
Jordan Harband
1fa2acf5a7
Adding nvm exec tests.
2014-08-02 15:43:04 -07:00
Jordan Harband
d5c0e94166
Adding nvm exec command.
2014-08-01 01:26:33 -07:00
Jordan Harband
6dc602b521
Ensure that nvm ls node doesn't return "node_modules", for example.
2014-08-01 01:24:28 -07:00
Jordan Harband
1d37af162a
v0.12.2
2014-07-29 00:35:27 -07:00
Jordan Harband
781373f7ce
Make sure awk is referenced unaliased, per https://github.com/creationix/nvm/issues/162#issuecomment-50284503
2014-07-27 23:02:22 -07:00
Jordan Harband
68574cc7e8
v0.12.1
2014-07-24 14:07:26 -07:00
Jordan Harband
0f3b06320e
Merge pull request #481 from johnloy/master
...
Changes $path var to $node_path. Fixes #482 .
2014-07-24 14:07:05 -07:00
John Loy
d181abb628
Changes $path var to $node_path
...
Avoids obliteration of $path set earlier by Prezto/zsh. Stomping on $path causes dirname to not be in the PATH resulting in an error.
2014-07-24 15:28:33 -04:00
Jordan Harband
f5643dc7ea
v0.12.0
2014-07-23 01:15:14 -07:00
Jordan Harband
6bcac7f638
Merge pull request #480 from fjakobs/patch-1
...
install.sh: make sure to not error out if master branch does not exist
2014-07-23 01:14:41 -07:00
Fabian Jakobs
ad71389dcc
master branch might not exist
...
After a fresh install I was unable to run the installer again. It was breaking with the error
error: branch 'master' not found.
my fix makes sure that the installer continues after that.
2014-07-23 10:08:58 +02:00
Jordan Harband
8cbf149558
Merge pull request #408 from creationix/nvm_system_awareness
...
Add `system` awareness to `nvm use`, `nvm ls`, and `nvm current`.
2014-07-21 22:55:27 -07:00
Jordan Harband
e7ada80d08
nvm use system should work as expected.
2014-07-21 02:03:18 -07:00
Jordan Harband
9912f7cc46
If nvm is deactivated, display "none" or "system" instead of the system node version
2014-07-21 02:03:18 -07:00
Jordan Harband
6e02e5a54c
If nvm_ls is called without a pattern, and node exists, tack on "system".
2014-07-21 02:03:18 -07:00
Jordan Harband
42b010775b
Add system support to nvm_print_versions
2014-07-21 02:03:18 -07:00
Jordan Harband
1c50c5c7aa
Add nvm_tree_contains_path function
2014-07-21 02:03:04 -07:00
Jordan Harband
200a9aa97e
v0.11.2
2014-07-20 23:58:19 -07:00
Jordan Harband
4512337c11
Adding a slow nvm current test, since it needs an installed version of node.
2014-07-20 23:41:11 -07:00
Jordan Harband
55677dba4a
Avoid calling "nvm_ls current" and call "nvm_ls_current" directly
2014-07-20 23:40:20 -07:00
Jordan Harband
ca43ca21f5
Fix curl/wget detection. Fixes #478
2014-07-18 13:18:09 -07:00
Jordan Harband
fafbeb8c59
Merge pull request #479 from koenpunt/fix-args-replacement
...
string replacement turns out not POSIX compliant
2014-07-18 13:15:13 -07:00
Koen Punt
d67f2b110d
string replacement turns out not POSIX compliant
2014-07-18 16:24:03 +02:00
Koen Punt
9c2127ce33
string replacement turns out not POSIX compliant
2014-07-18 16:21:20 +02:00
Koen Punt
423629c38b
add test without curl
2014-07-18 14:35:22 +02:00
Jordan Harband
5ec0ccec1b
Fixing make release to also cover package.json.
...
Per a3de7f3222 (commitcomment-7057689)
2014-07-18 01:49:57 -07:00
Jordan Harband
7a423b7bb4
v0.11.1
2014-07-18 01:48:46 -07:00
Jordan Harband
a3de7f3222
Fixing make release - amending a tagged commit makes the commit not match the tag.
2014-07-17 00:25:14 -07:00
Jordan Harband
55d892adc8
Fix #476 by making sure to cd into $NVM_DIR before checking out the tag. Also delete the master branch, because we won't be needing that.
2014-07-17 00:20:33 -07:00
Jordan Harband
3b42df8d1d
Merge pull request #474 from mzgol/wget-hotfix
...
Hotfix: correctly map curl's `-C -` to wget
2014-07-16 10:16:18 -07:00
Michał Gołębiowski
21fa84225c
Hotfix: correctly map curl's -C - to wget
...
wget doesn't need or accept the `-` parameter to `-c`. This incorrect
mapping causes `nvm install` to fail on a curlless OS.
2014-07-16 11:00:56 +02:00
Jordan Harband
4895aebf0a
v0.11.0
2014-07-15 10:52:30 -07:00
Jordan Harband
8a29122d0a
Adding teardown to test/fast/Listing versions/
2014-07-15 02:01:01 -07:00
Jordan Harband
26ed7a003a
Making sure to quote this output, so that paths with spaces don't break the method.
...
Although tests were passing in Travis for #470 , they were failing locally - now they pass in both.
2014-07-15 02:00:48 -07:00
Jordan Harband
00ca5288b0
Merge pull request #470 from creationix/has_system_node
...
Adding nvm_has_system_node
2014-07-15 00:03:25 -07:00
Jordan Harband
6d2912a2ab
Adding nvm_has_system_node
2014-07-14 21:41:26 -07:00
Jordan Harband
1d61584402
Making sure this test cleans up after itself.
2014-07-14 20:43:51 -07:00
Jordan Harband
f6974744cd
Moving this nvm ls test inside the "listing versions" test subdir.
2014-07-14 12:36:28 -07:00
Jordan Harband
7171cbed6f
Add an nvm_ls_current function.
2014-07-14 11:29:24 -07:00
Jordan Harband
8f66273922
Merge pull request #467 from jsdevel/adding-current-symlink
...
Adding a symlink in .nvm to the current version.
Fixes #430 . Closes #447 . Relates to #358 . Fixes #355 . Closes #313 . Fixes #381 .
2014-07-13 11:23:27 -07:00
Jordan Harband
1a9ab82e24
Merge pull request #466 from creationix/nvm_ls_minor_versions
...
nvm_ls minor versions
2014-07-13 11:01:12 -07:00
jsdevel
3fa004293c
Adding a symlink in .nvm to the current version.
2014-07-12 12:01:35 -07:00
Jordan Harband
83efa2288d
Use [0-9] instead of [[:digit:]] per https://github.com/creationix/nvm/pull/466#discussion_r14853668 - it's simpler (and probably more portable).
2014-07-12 11:02:42 -07:00
Jordan Harband
4cfe62d3d1
Fixing nvm ls 0.x to only include 0.x.* instead of 0.x*.*
2014-07-12 11:02:42 -07:00
Jordan Harband
802f064178
Adding a failing test.
2014-07-12 11:02:14 -07:00
Jordan Harband
c49cb68575
Merge pull request #468 from egilkh/master
...
Should escape grep in nvm_ls
2014-07-12 11:02:09 -07:00
egilkh
0534872e0f
Should escape grep in nvm_ls
2014-07-12 19:33:28 +02:00
Olivier Mengué
f1b8cf8fd6
Use 'read' built-in instead of $(cat ... | head -n1)
2014-07-10 12:15:27 -07:00
Jordan Harband
78ff9a2215
Merge pull request #464 from koenpunt/release-task
...
add makefile release task
2014-07-10 12:14:23 -07:00
Koen Punt
b952be6f56
add makefile release task
2014-07-10 13:28:26 +02:00
Jordan Harband
638ae5c6fa
Hardcode latest version number into the install script.
...
Fixes #462 .
2014-07-10 01:24:12 -07:00
Jordan Harband
a7b6495172
Removing unnecessary line, per #461
2014-07-10 01:24:12 -07:00
Jordan Harband
703e43cc2b
Merge pull request #463 from mzgol/bash
...
Use bash, not sh for install scritps - followup to #450
2014-07-10 01:22:39 -07:00
Michał Gołębiowski
03636878d1
Use bash, not sh for install scritps - followup to #450
2014-07-10 10:21:03 +02:00
Jordan Harband
2ee4b6f414
Correcting nvm.sh comment wrt bash
2014-07-09 18:30:52 -07:00
Jordan Harband
10305f0791
Merge pull request #460 from koenpunt/patch-1
...
Finalize fix for #458
2014-07-08 10:26:24 -07:00
Koen Punt
276c031c60
Finalize fix for #458
2014-07-08 14:49:24 +02:00
Jordan Harband
63f72b37df
Followup per https://github.com/creationix/nvm/pull/452#issuecomment-48151847
2014-07-07 15:40:59 -07:00
Jordan Harband
cf5bfecec4
Merge pull request #452 from creationix/curl_wget_handling
...
Better combo curl/wget handling
2014-07-07 15:03:31 -07:00
Jordan Harband
77c3f20956
Merge pull request #459 from koenpunt/curl_wget_handling
...
fix nvm_curl arguments for stdout
2014-07-07 14:28:37 -07:00
Jordan Harband
e4ada9fa43
Revert part of the change from e0537ce3df, fixes #458
2014-07-07 14:22:49 -07:00
Koen Punt
a0de15d0f7
fix nvm_curl arguments for stdout
2014-07-07 23:16:20 +02:00
Jordan Harband
df4689fbd2
Removing an extra "echo"
2014-07-07 13:59:58 -07:00
Jordan Harband
018e47bec0
Make sure both wget and curl work.
2014-07-07 13:32:10 -07:00
Jordan Harband
74cc1eb022
Make nvm_curl do a runtime check if curl is available.
2014-07-07 13:32:10 -07:00
Jordan Harband
eda8ffbcc4
Add some more curl → wget argument munging
2014-07-07 13:32:10 -07:00
Jordan Harband
b9383c9016
Use nvm_curl instead of curl directly, which has a wget fallback.
2014-07-07 13:32:10 -07:00
Jordan Harband
25c0be1e20
Using an nvm_curl function instead of curl/wget directly.
2014-07-07 13:32:10 -07:00
Jordan Harband
a8233eb68c
Merge pull request #457 from koenpunt/patch-1
...
Add newline to printf command
2014-07-07 13:02:23 -07:00
Koen Punt
ea198c9a19
add newline to printf
2014-07-07 14:43:02 +02:00
Jordan Harband
e0537ce3df
Shellcheck recommendations.
2014-07-05 13:48:23 -07:00
Jordan Harband
cce5df35ba
Naming install.sh functions more explicitly as being for nvm.
2014-07-05 13:44:00 -07:00
Jordan Harband
7e269961c3
In install.sh, rename has to nvm_has for consistency with nvm.sh.
2014-07-05 13:42:44 -07:00
Jordan Harband
f214ffaf1f
Oxford comma
2014-07-05 11:07:14 -07:00
Jordan Harband
d016fe010a
Merge pull request #450 from mzgol/install-script
...
Use bash, not sh for install scritps
2014-07-03 00:50:31 -07:00
Michał Gołębiowski
fb5a51b1b7
Use bash, not sh for install scritps
...
Install scripts don't work in pure sh; they may work on some systems where
the /bin/sh binary actually implements more than the pure Bourne Shell but
fail on other ones (e.g. Ubuntu).
Just using bash works.
2014-07-02 14:58:56 +02:00
Jordan Harband
3e5037a1be
v0.10.0
2014-06-26 17:06:45 -07:00
Jordan Harband
60fec40613
Merge pull request #444 from creationix/fix_nvm_ls
...
Make sure `nvm ls foo` returns a nonzero exit code when a version is not found
2014-06-26 17:04:09 -07:00
Jordan Harband
fb215546ee
Don't bother trying to return the exit code of nvm alias or nvm_print_versions
2014-06-26 16:52:48 -07:00
Jordan Harband
4b593bcda2
Make sure these vars are local, where supported
2014-06-26 16:52:34 -07:00
Jordan Harband
8349f0ff48
Make sure nvm ls foo returns a nonzero exit code when a version is not found.
...
Fixes #440 .
2014-06-26 10:28:35 -07:00
Jordan Harband
bb250b5730
v0.9.0
2014-06-26 10:28:14 -07:00
Jordan Harband
b6f1c156da
Use printf instead of echo -e
...
Fixes #446
2014-06-26 10:26:57 -07:00
Jordan Harband
4c9a36e9ad
Separating variable declaration from first assignment, which should fix some ksh problems.
2014-06-22 15:44:22 -07:00
Jordan Harband
bb01513eba
Making sure there's test coverage for nvm i
2014-06-22 09:18:41 -07:00
Jordan Harband
ba7f27dead
Silently support nvm i x.x.x. Fixes #443 .
2014-06-22 09:16:30 -07:00
Jordan Harband
79ec957ee7
Removing reference to NVM_PROFILE in README. Fixes #442
2014-06-21 17:47:02 -07:00
Jordan Harband
d8b55652a5
Return the exit code of nvm use when nvm install-ing.
2014-06-20 11:49:06 -07:00
Jordan Harband
4c38f507f5
Consistently returning exit code 1 when version is not installed yet.
2014-06-20 11:45:25 -07:00
Jordan Harband
f213167ef0
Returning exit code 3 when no version is found.
2014-06-20 11:45:14 -07:00