Compare commits
204 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa71b65b94 | ||
|
|
25365b3225 | ||
|
|
c0fe20f544 | ||
|
|
7d67b26f76 | ||
|
|
1eca354233 | ||
|
|
0a4e6f2b70 | ||
|
|
94a72ae217 | ||
|
|
011810e721 | ||
|
|
d48abff659 | ||
|
|
82037b41b1 | ||
|
|
7b0a46eafb | ||
|
|
dcbecbf2c7 | ||
|
|
970cadf258 | ||
|
|
3cc9525dce | ||
|
|
6537c91eb5 | ||
|
|
07b20d5008 | ||
|
|
0b5bb5ccd8 | ||
|
|
45c1b84794 | ||
|
|
3664744e3b | ||
|
|
ee9e56582e | ||
|
|
e7a5b7992b | ||
|
|
ff77ac17af | ||
|
|
2410215b6a | ||
|
|
a1abfd1fe4 | ||
|
|
43402df896 | ||
|
|
1ede50cbae | ||
|
|
e0d87528f3 | ||
|
|
924a175bd8 | ||
|
|
9daf26f0a0 | ||
|
|
226487d358 | ||
|
|
216c24fba0 | ||
|
|
930507dbbc | ||
|
|
4c8ced736d | ||
|
|
1f7f0c2d81 | ||
|
|
41eb40821b | ||
|
|
c6740f5a6e | ||
|
|
04fdb2331b | ||
|
|
58d0933f72 | ||
|
|
2a5d2c06ff | ||
|
|
2a513a1bc0 | ||
|
|
48196d2436 | ||
|
|
7f9220dbd8 | ||
|
|
890fbb5581 | ||
|
|
e1bb44f712 | ||
|
|
db19450caa | ||
|
|
5c117e6ab3 | ||
|
|
02997b0753 | ||
|
|
cc0750eb5d | ||
|
|
7e715d5c73 | ||
|
|
66d2909650 | ||
|
|
a56c6f1485 | ||
|
|
703babe60a | ||
|
|
10f24d6d4b | ||
|
|
e367533eb8 | ||
|
|
6534568745 | ||
|
|
13f3cdcdf7 | ||
|
|
3d9c31d944 | ||
|
|
0acccb8a77 | ||
|
|
6354b170d7 | ||
|
|
5e065ec026 | ||
|
|
206d503a21 | ||
|
|
deb2a9b821 | ||
|
|
fb83eeb140 | ||
|
|
14179bc8ce | ||
|
|
153506c8da | ||
|
|
c1150c41ab | ||
|
|
ad1110ef1a | ||
|
|
914c220586 | ||
|
|
22d32bede0 | ||
|
|
a49d9163ef | ||
|
|
17586b971a | ||
|
|
f3fd5eff46 | ||
|
|
423252a99c | ||
|
|
2a294ebd61 | ||
|
|
a08d1ea4a3 | ||
|
|
217a5bb0de | ||
|
|
caf6208dbd | ||
|
|
0c2efed407 | ||
|
|
2d97ce5f7b | ||
|
|
8542df4ac5 | ||
|
|
f218a85454 | ||
|
|
96ebed37c7 | ||
|
|
e7a37f336d | ||
|
|
e06f735776 | ||
|
|
355c4c7915 | ||
|
|
4bd99bcfa2 | ||
|
|
5f9ccaada0 | ||
|
|
7ff20855a2 | ||
|
|
cdde74a55d | ||
|
|
17c33fd9ae | ||
|
|
04b35b5440 | ||
|
|
aacb0b9b97 | ||
|
|
f121e5ace0 | ||
|
|
af8038ffec | ||
|
|
265ec90532 | ||
|
|
e2195b4c35 | ||
|
|
41dc4218b9 | ||
|
|
90cfb5d771 | ||
|
|
0cdc184168 | ||
|
|
a5f42d9cea | ||
|
|
eabd7ab13d | ||
|
|
b111436fde | ||
|
|
9854928ba9 | ||
|
|
c50ea6f0a3 | ||
|
|
628d4fac84 | ||
|
|
ef35bc4cb6 | ||
|
|
d08d8607f5 | ||
|
|
e7b53a01fd | ||
|
|
b81c120e0c | ||
|
|
57ec311f53 | ||
|
|
38b32c27f3 | ||
|
|
7a5ff0d133 | ||
|
|
f5f029c409 | ||
|
|
c465a83518 | ||
|
|
62ee7cf998 | ||
|
|
113d807e5a | ||
|
|
3fc7b737f5 | ||
|
|
04c27e23fe | ||
|
|
592c0be195 | ||
|
|
93990ab7da | ||
|
|
61c7b133f8 | ||
|
|
eb0a8442d8 | ||
|
|
a26ab88478 | ||
|
|
1f2a3234d2 | ||
|
|
34e1ec800e | ||
|
|
177a9673a7 | ||
|
|
db98f8cdaf | ||
|
|
c983fefbae | ||
|
|
42f11acce1 | ||
|
|
09f7bbb78c | ||
|
|
d5dacdf80f | ||
|
|
d3a9272a0c | ||
|
|
1b14e6b4d9 | ||
|
|
f060867f15 | ||
|
|
0da699605e | ||
|
|
d9dc8464fd | ||
|
|
685312d600 | ||
|
|
0731003cfe | ||
|
|
ca66a13710 | ||
|
|
8ff437ae51 | ||
|
|
b15709e637 | ||
|
|
8b71861d06 | ||
|
|
68fe26a5e4 | ||
|
|
37e0977e60 | ||
|
|
918a39a0d0 | ||
|
|
52f1b24895 | ||
|
|
74ff70aab3 | ||
|
|
663bddee9b | ||
|
|
bc87d3dd1c | ||
|
|
d8689f6b9a | ||
|
|
0e3bb2cc47 | ||
|
|
2850e65b62 | ||
|
|
2859a19bbd | ||
|
|
d6fa67166c | ||
|
|
25b7f264d5 | ||
|
|
5fc8bd950d | ||
|
|
750571056c | ||
|
|
544c3f4caa | ||
|
|
e7b42198b4 | ||
|
|
5f53caadad | ||
|
|
9c42470347 | ||
|
|
9f34b3e95c | ||
|
|
41ec44f6b5 | ||
|
|
2cd2c0f72e | ||
|
|
f3076d14c9 | ||
|
|
bb803492d8 | ||
|
|
f290ccf1d5 | ||
|
|
225e447b54 | ||
|
|
77da9f5a6d | ||
|
|
3ed47431f8 | ||
|
|
aad269d224 | ||
|
|
74f455e610 | ||
|
|
f5b5f2d41d | ||
|
|
a23f7169a6 | ||
|
|
71032cfaa1 | ||
|
|
6dd9ecb607 | ||
|
|
7ca8acc98d | ||
|
|
d34bb3247d | ||
|
|
3e81904525 | ||
|
|
7cba6cd6d0 | ||
|
|
9273f23bc8 | ||
|
|
2a259435c8 | ||
|
|
2a8a81da94 | ||
|
|
fce7f4ed13 | ||
|
|
7ad6d98ced | ||
|
|
fa9c50520d | ||
|
|
4846d57c69 | ||
|
|
65f0572bdc | ||
|
|
b6a7a54d04 | ||
|
|
8a8dcbb393 | ||
|
|
bacdd95591 | ||
|
|
4b0563093c | ||
|
|
c7ac69bfbb | ||
|
|
a57fe846e8 | ||
|
|
7bfd1e0644 | ||
|
|
9352f6913a | ||
|
|
16d3e6d2dc | ||
|
|
91a29c0da2 | ||
|
|
4b48556e92 | ||
|
|
be171bba33 | ||
|
|
049a86022f | ||
|
|
a7b7eec0c5 | ||
|
|
9953a52afb | ||
|
|
fc30e0ade4 |
@@ -14,4 +14,3 @@ npm-debug.log
|
|||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
current
|
current
|
||||||
|
|
||||||
|
|||||||
22
.editorconfig
Normal file
22
.editorconfig
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
tab_width = 2
|
||||||
|
indent_size = 2
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.txt]
|
||||||
|
indent_size = false
|
||||||
|
|
||||||
|
[test/fast/Listing versions/Running "nvm ls" calls into nvm_alias]
|
||||||
|
indent_size = false
|
||||||
|
|
||||||
|
[test/fast/Listing versions/Running "nvm ls --no-alias" does not call into nvm_alias]
|
||||||
|
indent_size = false
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
indent_style = tab
|
||||||
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -1,2 +1 @@
|
|||||||
* eol=lf
|
* eol=lf
|
||||||
|
|
||||||
|
|||||||
23
.github/ISSUE_TEMPLATE.md
vendored
23
.github/ISSUE_TEMPLATE.md
vendored
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
<!-- Thank you for being interested in nvm! Please help us by filling out the following form if you‘re having trouble. If you have a feature request, or some other question, please feel free to clear out the form. Thanks! -->
|
<!-- Thank you for being interested in nvm! Please help us by filling out the following form if you‘re having trouble. If you have a feature request, or some other question, please feel free to clear out the form. Thanks! -->
|
||||||
|
|
||||||
- Operating system and version:
|
#### Operating system and version:
|
||||||
|
|
||||||
- `nvm debug` output:
|
#### `nvm debug` output:
|
||||||
<details>
|
<details>
|
||||||
<!-- do not delete the following blank line -->
|
<!-- do not delete the following blank line -->
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
- `nvm ls` output:
|
#### `nvm ls` output:
|
||||||
<details>
|
<details>
|
||||||
<!-- do not delete the following blank line -->
|
<!-- do not delete the following blank line -->
|
||||||
|
|
||||||
@@ -21,21 +21,24 @@
|
|||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
- How did you install `nvm`? (e.g. install script in readme, homebrew):
|
#### How did you install `nvm`?
|
||||||
|
<!-- (e.g. install script in readme, Homebrew) -->
|
||||||
|
|
||||||
- What steps did you perform?
|
#### What steps did you perform?
|
||||||
|
|
||||||
- What happened?
|
#### What happened?
|
||||||
|
|
||||||
- What did you expect to happen?
|
#### What did you expect to happen?
|
||||||
|
|
||||||
- Is there anything in any of your profile files (`.bashrc`, `.bash_profile`, `.zshrc`, etc) that modifies the `PATH`?
|
#### Is there anything in any of your profile files that modifies the `PATH`?
|
||||||
|
<!-- (e.g. `.bashrc`, `.bash_profile`, `.zshrc`, etc) -->
|
||||||
|
|
||||||
<!-- if this does not apply, please delete this section -->
|
<!-- Please remove the following section if it does not apply to you -->
|
||||||
- If you are having installation issues, or getting "N/A", what does `curl -I --compressed -v https://nodejs.org/dist/` print out?
|
#### If you are having installation issues, or getting "N/A", what does `curl -I --compressed -v https://nodejs.org/dist/` print out?
|
||||||
<details>
|
<details>
|
||||||
<!-- do not delete the following blank line -->
|
<!-- do not delete the following blank line -->
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -15,7 +15,7 @@ npm-debug.log
|
|||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
current
|
current
|
||||||
default-packages
|
/default-packages
|
||||||
|
|
||||||
# Only apps should have lockfiles
|
# Only apps should have lockfiles
|
||||||
npm-shrinkwrap.json
|
npm-shrinkwrap.json
|
||||||
|
|||||||
28
.travis.yml
28
.travis.yml
@@ -1,5 +1,5 @@
|
|||||||
language: generic
|
language: generic
|
||||||
dist: trusty
|
dist: xenial
|
||||||
sudo: required
|
sudo: required
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
@@ -10,6 +10,7 @@ addons:
|
|||||||
# - g++-4.8
|
# - g++-4.8
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
|
ccache: true
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.npm
|
- $HOME/.npm
|
||||||
- $TRAVIS_BUILD_DIR/.cache
|
- $TRAVIS_BUILD_DIR/.cache
|
||||||
@@ -18,27 +19,34 @@ before_install:
|
|||||||
- $SHELL --version 2> /dev/null || dpkg -s $SHELL 2> /dev/null || which $SHELL
|
- $SHELL --version 2> /dev/null || dpkg -s $SHELL 2> /dev/null || which $SHELL
|
||||||
- curl --version
|
- curl --version
|
||||||
- wget --version
|
- wget --version
|
||||||
|
- shellcheck --version
|
||||||
install:
|
install:
|
||||||
- if [ -z "${SHELLCHECK-}" ]; then nvm install node && npm install && npm prune && npm ls urchin doctoc; fi
|
- if [ -z "${SHELLCHECK-}" ]; then nvm install node && npm install && npm prune && npm ls urchin doctoc eclint dockerfile_lint; fi
|
||||||
- '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y'
|
- '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y'
|
||||||
script:
|
script:
|
||||||
- if [ -n "${MAKE_RELEASE-}" ]; then export GIT_EDITOR="sed -i '1 s/^/99.99.99 make release test/'" && git fetch --unshallow --tags && echo proceed | make TAG=99.99.99 release ; fi
|
- if [ -n "${MAKE_RELEASE-}" ]; then export GIT_EDITOR="sed -i '1 s/^/99.99.99 make release test/'" && git fetch --unshallow --tags && echo proceed | make TAG=99.99.99 release ; fi
|
||||||
- if [ -n "${DOCTOCCHECK-}" ]; then cp README.md README.md.orig && npm run doctoc && diff -q README.md README.md.orig ; fi
|
- if [ -n "${DOCTOCCHECK-}" ]; then cp README.md README.md.orig && npm run doctoc && diff -q README.md README.md.orig ; fi
|
||||||
|
- if [ -n "${ECLINT-}" ]; then npm run eclint ; fi
|
||||||
|
- if [ -n "${DOCKERFILE_LINT-}" ]; then npm run dockerfile_lint ; fi
|
||||||
- if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash nvm.sh && shellcheck -s sh nvm.sh && shellcheck -s dash nvm.sh && shellcheck -s ksh nvm.sh ; fi
|
- if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash nvm.sh && shellcheck -s sh nvm.sh && shellcheck -s dash nvm.sh && shellcheck -s ksh nvm.sh ; fi
|
||||||
- if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash install.sh bash_completion nvm-exec ; fi
|
- if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash install.sh bash_completion nvm-exec ; fi
|
||||||
- if [ -n "${SHELL-}" ] && [ -n "${TEST_SUITE}" ]; then if [ "${TEST_SUITE}" = 'installation_iojs' ]; then travis_retry make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL ; else make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL; fi; fi
|
- if [ -n "${SHELL-}" ] && [ -n "${TEST_SUITE}" ]; then if [ "${TEST_SUITE}" = 'installation_iojs' ]; then travis_retry make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL ; else make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL; fi; fi
|
||||||
before_cache:
|
before_cache:
|
||||||
- if [ -n "$WITHOUT_CURL" ]; then sudo apt-get install curl -y ; fi
|
- if [ -n "$WITHOUT_CURL" ]; then sudo apt-get install curl -y ; fi
|
||||||
|
- if [ -n "${NODE-}" ]; then . nvm.sh && set -ex && nvm install --latest-npm "${NODE}" && npm --version; fi
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- CXX=g++-4.8
|
- CXX=g++
|
||||||
- CC=gcc-4.8
|
- CC=gcc
|
||||||
- PATH="$(echo $PATH | sed 's/::/:/')"
|
- PATH="$(echo $PATH | sed 's/::/:/')"
|
||||||
|
- PATH="/usr/lib/ccache/:$PATH"
|
||||||
- NVM_DIR="${TRAVIS_BUILD_DIR}"
|
- NVM_DIR="${TRAVIS_BUILD_DIR}"
|
||||||
matrix:
|
matrix:
|
||||||
- MAKE_RELEASE=true
|
- MAKE_RELEASE=true
|
||||||
- DOCTOCCHECK=true
|
- DOCTOCCHECK=true
|
||||||
- SHELLCHECK=true
|
- SHELLCHECK=true
|
||||||
|
- ECLINT=true
|
||||||
|
- DOCKERFILE_LINT=true
|
||||||
- SHELL=bash TEST_SUITE=install_script
|
- SHELL=bash TEST_SUITE=install_script
|
||||||
- SHELL=sh TEST_SUITE=fast
|
- SHELL=sh TEST_SUITE=fast
|
||||||
- SHELL=dash TEST_SUITE=fast
|
- SHELL=dash TEST_SUITE=fast
|
||||||
@@ -75,3 +83,15 @@ env:
|
|||||||
- SHELL=zsh TEST_SUITE=installation_iojs WITHOUT_CURL=1
|
- SHELL=zsh TEST_SUITE=installation_iojs WITHOUT_CURL=1
|
||||||
# - SHELL=ksh TEST_SUITE=installation_iojs
|
# - SHELL=ksh TEST_SUITE=installation_iojs
|
||||||
# - SHELL=ksh TEST_SUITE=installation_iojs WITHOUT_CURL=1
|
# - SHELL=ksh TEST_SUITE=installation_iojs WITHOUT_CURL=1
|
||||||
|
- NODE=10 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=9 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=8 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=7 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=6 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=5 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=5.9 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=4 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=4.6 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=4.5 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=4.4 TEST="nvm install-latest-npm"
|
||||||
|
- NODE=2 TEST="nvm install-latest-npm"
|
||||||
|
|||||||
81
CODE_OF_CONDUCT.md
Normal file
81
CODE_OF_CONDUCT.md
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
# Contributor Covenant Code of Conduct
|
||||||
|
|
||||||
|
## Our Pledge
|
||||||
|
|
||||||
|
In the interest of fostering an open and welcoming environment, we as
|
||||||
|
contributors and maintainers pledge to making participation in our project and
|
||||||
|
our community a harassment-free experience for everyone, regardless of age, body
|
||||||
|
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
||||||
|
level of experience, education, socio-economic status, nationality, personal
|
||||||
|
appearance, race, religion, or sexual identity and orientation.
|
||||||
|
|
||||||
|
## Our Standards
|
||||||
|
|
||||||
|
Examples of behavior that contributes to creating a positive environment
|
||||||
|
include:
|
||||||
|
|
||||||
|
* Using welcoming and inclusive language
|
||||||
|
* Being respectful of differing viewpoints and experiences
|
||||||
|
* Gracefully accepting constructive criticism
|
||||||
|
* Focusing on what is best for the community
|
||||||
|
* Showing empathy towards other community members
|
||||||
|
|
||||||
|
Examples of unacceptable behavior by participants include:
|
||||||
|
|
||||||
|
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||||
|
advances
|
||||||
|
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||||
|
* Public or private harassment
|
||||||
|
* Publishing others' private information, such as a physical or electronic
|
||||||
|
address, without explicit permission
|
||||||
|
* Other conduct which could reasonably be considered inappropriate in a
|
||||||
|
professional setting
|
||||||
|
|
||||||
|
## Our Responsibilities
|
||||||
|
|
||||||
|
Project maintainers are responsible for clarifying the standards of acceptable
|
||||||
|
behavior and are expected to take appropriate and fair corrective action in
|
||||||
|
response to any instances of unacceptable behavior.
|
||||||
|
|
||||||
|
Project maintainers have the right and responsibility to remove, edit, or
|
||||||
|
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||||
|
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||||
|
permanently any contributor for other behaviors that they deem inappropriate,
|
||||||
|
threatening, offensive, or harmful.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
This Code of Conduct applies both within project spaces and in public spaces
|
||||||
|
when an individual is representing the project or its community. Examples of
|
||||||
|
representing a project or community include using an official project e-mail
|
||||||
|
address, posting via an official social media account, or acting as an appointed
|
||||||
|
representative at an online or offline event. Representation of a project may be
|
||||||
|
further defined and clarified by project maintainers.
|
||||||
|
|
||||||
|
## Enforcement
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported by contacting the project team at ljharb@gmail.com. All
|
||||||
|
complaints will be reviewed and investigated and will result in a response that
|
||||||
|
is deemed necessary and appropriate to the circumstances. The project team is
|
||||||
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||||
|
Further details of specific enforcement policies may be posted separately.
|
||||||
|
|
||||||
|
Project maintainers who do not follow or enforce the Code of Conduct in good
|
||||||
|
faith may face temporary or permanent repercussions as determined by other
|
||||||
|
members of the project's leadership.
|
||||||
|
|
||||||
|
## Attribution
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||||
|
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
||||||
|
|
||||||
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
|
||||||
|
For answers to common questions about this code of conduct, see
|
||||||
|
https://www.contributor-covenant.org/faq
|
||||||
|
|
||||||
|
## OpenJS Foundation
|
||||||
|
|
||||||
|
As a member of the OpenJS Foundation, this project also follows the Foundation’s overarching
|
||||||
|
[Code of Conduct](https://github.com/openjs-foundation/cross-project-council/blob/master/CODE_OF_CONDUCT.md).
|
||||||
@@ -5,16 +5,17 @@ We love pull requests and issues, they're our favorite.
|
|||||||
However, before submitting, please review the following:
|
However, before submitting, please review the following:
|
||||||
|
|
||||||
For bug reports:
|
For bug reports:
|
||||||
- Please make sure the bug is reproducible, and give us the steps to reproduce it, so that we can dig into the problem.
|
|
||||||
- Please give us as much detail as possible about your environment, so we can more easily confirm the problem.
|
- Please make sure the bug is reproducible, and give us the steps to reproduce it, so that we can dig into the problem.
|
||||||
|
- Please give us as much detail as possible about your environment, so we can more easily confirm the problem.
|
||||||
|
|
||||||
For pull requests:
|
For pull requests:
|
||||||
- Please include tests. Changes with tests will be merged very quickly.
|
|
||||||
- Please manually confirm that your changes work in `bash`, `sh`/`dash`, `ksh`, and `zsh`. Fast tests do run in these shells, but it's nice to manually verify also.
|
- Please include tests. Changes with tests will be merged very quickly.
|
||||||
- Please maintain consistent whitespace - 2-space indentation, trailing newlines in all files, etc.
|
- Please manually confirm that your changes work in `bash`, `sh`/`dash`, `ksh`, and `zsh`. Fast tests do run in these shells, but it's nice to manually verify also.
|
||||||
- Any time you make a change to your PR, please rebase freshly on top of master. Nobody likes merge commits.
|
- Please maintain consistent whitespace - 2-space indentation, trailing newlines in all files, etc.
|
||||||
|
- Any time you make a change to your PR, please rebase freshly on top of master. Nobody likes merge commits.
|
||||||
|
|
||||||
Even if you don't have all of these items covered, please still feel free to submit a PR/issue! Someone else may be inspired and volunteer to complete it for you.
|
Even if you don't have all of these items covered, please still feel free to submit a PR/issue! Someone else may be inspired and volunteer to complete it for you.
|
||||||
|
|
||||||
Thanks again!
|
Thanks again!
|
||||||
|
|
||||||
|
|||||||
51
Dockerfile
51
Dockerfile
@@ -8,12 +8,20 @@
|
|||||||
|
|
||||||
# Use Ubuntu Trusty Tahr as base image as we're using on Travis CI
|
# Use Ubuntu Trusty Tahr as base image as we're using on Travis CI
|
||||||
# I also tested with Ubuntu 16.04, should be good with it!
|
# I also tested with Ubuntu 16.04, should be good with it!
|
||||||
From ubuntu:14.04
|
FROM ubuntu:14.04
|
||||||
MAINTAINER Peter Dave Hello <hsu@peterdavehello.org>
|
LABEL maintainer="Peter Dave Hello <hsu@peterdavehello.org>"
|
||||||
|
LABEL name="nvm-dev-env"
|
||||||
|
LABEL version="latest"
|
||||||
|
|
||||||
|
# Set the SHELL to bash with pipefail option
|
||||||
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
|
|
||||||
# Prevent dialog during apt install
|
# Prevent dialog during apt install
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
# ShellCheck version
|
||||||
|
ENV SHELLCHECK_VERSION=0.6.0
|
||||||
|
|
||||||
# Pick a Ubuntu apt mirror site for better speed
|
# Pick a Ubuntu apt mirror site for better speed
|
||||||
# ref: https://launchpad.net/ubuntu/+archivemirrors
|
# ref: https://launchpad.net/ubuntu/+archivemirrors
|
||||||
ENV UBUNTU_APT_SITE ubuntu.cs.utah.edu
|
ENV UBUNTU_APT_SITE ubuntu.cs.utah.edu
|
||||||
@@ -21,7 +29,7 @@ ENV UBUNTU_APT_SITE ubuntu.cs.utah.edu
|
|||||||
# Disable src package source
|
# Disable src package source
|
||||||
RUN sed -i 's/^deb-src\ /\#deb-src\ /g' /etc/apt/sources.list
|
RUN sed -i 's/^deb-src\ /\#deb-src\ /g' /etc/apt/sources.list
|
||||||
|
|
||||||
# Replace origin apt pacakge site with the mirror site
|
# Replace origin apt package site with the mirror site
|
||||||
RUN sed -E -i "s/([a-z]+.)?archive.ubuntu.com/$UBUNTU_APT_SITE/g" /etc/apt/sources.list
|
RUN sed -E -i "s/([a-z]+.)?archive.ubuntu.com/$UBUNTU_APT_SITE/g" /etc/apt/sources.list
|
||||||
RUN sed -i "s/security.ubuntu.com/$UBUNTU_APT_SITE/g" /etc/apt/sources.list
|
RUN sed -i "s/security.ubuntu.com/$UBUNTU_APT_SITE/g" /etc/apt/sources.list
|
||||||
|
|
||||||
@@ -34,6 +42,7 @@ RUN apt update && \
|
|||||||
bsdutils \
|
bsdutils \
|
||||||
file \
|
file \
|
||||||
openssl \
|
openssl \
|
||||||
|
libssl-dev \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
ssh \
|
ssh \
|
||||||
wget \
|
wget \
|
||||||
@@ -49,14 +58,22 @@ RUN apt update && \
|
|||||||
realpath \
|
realpath \
|
||||||
zsh \
|
zsh \
|
||||||
ksh \
|
ksh \
|
||||||
ghc \
|
|
||||||
gcc-4.8 \
|
gcc-4.8 \
|
||||||
g++-4.8 \
|
g++-4.8 \
|
||||||
cabal-install \
|
xz-utils \
|
||||||
build-essential \
|
build-essential \
|
||||||
bash-completion && \
|
bash-completion && \
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
|
||||||
|
# ShellCheck with Ubuntu 14.04 container workaround
|
||||||
|
RUN wget https://storage.googleapis.com/shellcheck/shellcheck-v$SHELLCHECK_VERSION.linux.x86_64.tar.xz -O- | \
|
||||||
|
tar xJvf - shellcheck-v$SHELLCHECK_VERSION/shellcheck && \
|
||||||
|
mv shellcheck-v$SHELLCHECK_VERSION/shellcheck /bin && \
|
||||||
|
rmdir shellcheck-v$SHELLCHECK_VERSION && \
|
||||||
|
touch /tmp/libc.so.6 && \
|
||||||
|
echo "alias shellcheck='LD_LIBRARY_PATH=/tmp /bin/shellcheck'" >> /etc/bash.bashrc
|
||||||
|
RUN LD_LIBRARY_PATH=/tmp shellcheck -V
|
||||||
|
|
||||||
# Set locale
|
# Set locale
|
||||||
RUN locale-gen en_US.UTF-8
|
RUN locale-gen en_US.UTF-8
|
||||||
|
|
||||||
@@ -68,38 +85,32 @@ RUN dpkg -s dash | grep ^Version | awk '{print $2}'
|
|||||||
RUN git --version
|
RUN git --version
|
||||||
RUN curl --version
|
RUN curl --version
|
||||||
RUN wget --version
|
RUN wget --version
|
||||||
RUN cabal --version
|
|
||||||
|
|
||||||
# Add user "nvm" as non-root user
|
# Add user "nvm" as non-root user
|
||||||
RUN useradd -ms /bin/bash nvm
|
RUN useradd -ms /bin/bash nvm
|
||||||
|
|
||||||
|
# Copy and set permission for nvm directory
|
||||||
|
COPY . /home/nvm/.nvm/
|
||||||
|
RUN chown nvm:nvm -R "home/nvm/.nvm"
|
||||||
|
|
||||||
# Set sudoer for "nvm"
|
# Set sudoer for "nvm"
|
||||||
RUN echo 'nvm ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
RUN echo 'nvm ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||||
|
|
||||||
# Switch to user "nvm" from now
|
# Switch to user "nvm" from now
|
||||||
USER nvm
|
USER nvm
|
||||||
|
|
||||||
# Shellcheck
|
|
||||||
RUN cabal update
|
|
||||||
RUN cabal install ShellCheck
|
|
||||||
RUN ~/.cabal/bin/shellcheck --version
|
|
||||||
RUN echo 'export PATH="~/.cabal/bin/:${PATH}"' >> $HOME/.bashrc
|
|
||||||
|
|
||||||
# nvm
|
# nvm
|
||||||
COPY . /home/nvm/.nvm/
|
RUN echo 'export NVM_DIR="$HOME/.nvm"' >> "$HOME/.bashrc"
|
||||||
RUN sudo chown nvm:nvm -R $HOME/.nvm
|
RUN echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> "$HOME/.bashrc"
|
||||||
RUN echo 'export NVM_DIR="$HOME/.nvm"' >> $HOME/.bashrc
|
RUN echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion' >> "$HOME/.bashrc"
|
||||||
RUN echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> $HOME/.bashrc
|
|
||||||
RUN echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion' >> $HOME/.bashrc
|
|
||||||
|
|
||||||
# nodejs and tools
|
# nodejs and tools
|
||||||
RUN bash -c 'source $HOME/.nvm/nvm.sh && \
|
RUN bash -c 'source $HOME/.nvm/nvm.sh && \
|
||||||
nvm install node && \
|
nvm install node && \
|
||||||
npm install -g doctoc urchin && \
|
npm install -g doctoc urchin eclint dockerfile_lint && \
|
||||||
npm install --prefix "$HOME/.nvm/"'
|
npm install --prefix "$HOME/.nvm/"'
|
||||||
|
|
||||||
# Set WORKDIR to nvm directory
|
# Set WORKDIR to nvm directory
|
||||||
WORKDIR /home/nvm/.nvm
|
WORKDIR /home/nvm/.nvm
|
||||||
|
|
||||||
ENTRYPOINT /bin/bash
|
ENTRYPOINT ["/bin/bash"]
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2010-2017 Tim Caswell
|
Copyright (c) 2010 Tim Caswell
|
||||||
|
|
||||||
|
Copyright (c) 2014 Jordan Harband
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
this software and associated documentation files (the "Software"), to deal in
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
@@ -18,4 +20,3 @@ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|||||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
|||||||
28
Makefile
28
Makefile
@@ -41,9 +41,9 @@ list:
|
|||||||
.PHONY: $(SHELL_TARGETS)
|
.PHONY: $(SHELL_TARGETS)
|
||||||
$(SHELL_TARGETS):
|
$(SHELL_TARGETS):
|
||||||
@shell='$@'; shell=$${shell##*-}; which "$$shell" >/dev/null || { printf '\033[0;31m%s\033[0m\n' "WARNING: Cannot test with shell '$$shell': not found." >&2; exit 0; } && \
|
@shell='$@'; shell=$${shell##*-}; which "$$shell" >/dev/null || { printf '\033[0;31m%s\033[0m\n' "WARNING: Cannot test with shell '$$shell': not found." >&2; exit 0; } && \
|
||||||
printf '\n\033[0;34m%s\033[0m\n' "Running tests in $$shell"; \
|
printf '\n\033[0;34m%s\033[0m\n' "Running tests in $$shell"; \
|
||||||
[ -z "$$TRAVIS_BUILD_DIR" ] && for v in $$(set | awk -F'=' '$$1 ~ "^NVM_" { print $$1 }'); do unset $$v; done && unset v; \
|
[ -z "$$TRAVIS_BUILD_DIR" ] && for v in $$(set | awk -F'=' '$$1 ~ "^NVM_" { print $$1 }'); do unset $$v; done && unset v; \
|
||||||
for suite in $(TEST_SUITE); do $(URCHIN) -f -s $$shell test/$$suite || exit; done
|
for suite in $(TEST_SUITE); do $(URCHIN) -f -s $$shell test/$$suite || exit; done
|
||||||
|
|
||||||
# All-tests target: invokes the specified test suites for ALL shells defined in $(SHELLS).
|
# All-tests target: invokes the specified test suites for ALL shells defined in $(SHELLS).
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
@@ -72,14 +72,14 @@ _ensure-clean:
|
|||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: _ensure-tag _ensure-clean _ensure-current-version
|
release: _ensure-tag _ensure-clean _ensure-current-version
|
||||||
@old_ver=`git describe --abbrev=0 --tags --match 'v[0-9]*.[0-9]*.[0-9]*'` || { echo "Failed to determine current version." >&2; exit 1; }; old_ver=$${old_ver#v}; \
|
@old_ver=`git describe --abbrev=0 --tags --match 'v[0-9]*.[0-9]*.[0-9]*'` || { echo "Failed to determine current version." >&2; exit 1; }; old_ver=$${old_ver#v}; \
|
||||||
new_ver=`echo "$(TAG)" | sed 's/^v//'`; new_ver=$${new_ver:-patch}; \
|
new_ver=`echo "$(TAG)" | sed 's/^v//'`; new_ver=$${new_ver:-patch}; \
|
||||||
if printf "$$new_ver" | grep -q '^[0-9]'; then \
|
if printf "$$new_ver" | grep -q '^[0-9]'; then \
|
||||||
semver "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be major.minor.patch' >&2; exit 2; }; \
|
semver "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be major.minor.patch' >&2; exit 2; }; \
|
||||||
semver -r "> $$old_ver" "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be HIGHER than current one.' >&2; exit 2; } \
|
semver -r "> $$old_ver" "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be HIGHER than current one.' >&2; exit 2; } \
|
||||||
else \
|
else \
|
||||||
new_ver=`semver -i "$$new_ver" "$$old_ver"` || { echo 'Invalid version-increment specifier: $(TAG)' >&2; exit 2; } \
|
new_ver=`semver -i "$$new_ver" "$$old_ver"` || { echo 'Invalid version-increment specifier: $(TAG)' >&2; exit 2; } \
|
||||||
fi; \
|
fi; \
|
||||||
printf "=== Bumping version **$$old_ver** to **$$new_ver** before committing and tagging:\n=== TYPE 'proceed' TO PROCEED, anything else to abort: " && read response && [ "$$response" = 'proceed' ] || { echo 'Aborted.' >&2; exit 2; }; \
|
printf "=== Bumping version **$$old_ver** to **$$new_ver** before committing and tagging:\n=== TYPE 'proceed' TO PROCEED, anything else to abort: " && read response && [ "$$response" = 'proceed' ] || { echo 'Aborted.' >&2; exit 2; }; \
|
||||||
replace "$$old_ver" "$$new_ver" -- $(VERSIONED_FILES) && \
|
replace "$$old_ver" "$$new_ver" -- $(VERSIONED_FILES) && \
|
||||||
git commit -m "v$$new_ver" $(VERSIONED_FILES) && \
|
git commit -m "v$$new_ver" $(VERSIONED_FILES) && \
|
||||||
git tag -a "v$$new_ver"
|
git tag -a "v$$new_ver"
|
||||||
|
|||||||
362
README.md
362
README.md
@@ -1,11 +1,16 @@
|
|||||||
# Node Version Manager [][3] [][4] [](https://bestpractices.coreinfrastructure.org/projects/684)
|
# Node Version Manager [][3] [][4] [](https://bestpractices.coreinfrastructure.org/projects/684)
|
||||||
|
|
||||||
|
<br />
|
||||||
|
`nvm` is an <img alt="OpenJS Foundation" src="https://raw.githubusercontent.com/openjs-foundation/cross-project-council/master/logos/openjsf-color.png" width="150" align="left" /> project, and we follow our <a href="https://github.com/nvm-sh/nvm/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a>.
|
||||||
|
<br /><br />
|
||||||
|
|
||||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
- [Installation](#installation)
|
- [Installation and Update](#installation-and-update)
|
||||||
- [Install script](#install-script)
|
- [Install & Update script](#install--update-script)
|
||||||
|
- [Ansible](#ansible)
|
||||||
- [Verify installation](#verify-installation)
|
- [Verify installation](#verify-installation)
|
||||||
- [Important Notes](#important-notes)
|
- [Important Notes](#important-notes)
|
||||||
- [Git install](#git-install)
|
- [Git install](#git-install)
|
||||||
@@ -18,8 +23,11 @@
|
|||||||
- [io.js](#iojs)
|
- [io.js](#iojs)
|
||||||
- [System version of node](#system-version-of-node)
|
- [System version of node](#system-version-of-node)
|
||||||
- [Listing versions](#listing-versions)
|
- [Listing versions](#listing-versions)
|
||||||
|
- [Suppressing colorized output](#suppressing-colorized-output)
|
||||||
- [.nvmrc](#nvmrc)
|
- [.nvmrc](#nvmrc)
|
||||||
- [Deeper Shell Integration](#deeper-shell-integration)
|
- [Deeper Shell Integration](#deeper-shell-integration)
|
||||||
|
- [bash](#bash)
|
||||||
|
- [Automatically call `nvm use`](#automatically-call-nvm-use)
|
||||||
- [zsh](#zsh)
|
- [zsh](#zsh)
|
||||||
- [Calling `nvm use` automatically in a directory with a `.nvmrc` file](#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file)
|
- [Calling `nvm use` automatically in a directory with a `.nvmrc` file](#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file)
|
||||||
- [License](#license)
|
- [License](#license)
|
||||||
@@ -28,56 +36,68 @@
|
|||||||
- [Usage](#usage-1)
|
- [Usage](#usage-1)
|
||||||
- [Compatibility Issues](#compatibility-issues)
|
- [Compatibility Issues](#compatibility-issues)
|
||||||
- [Installing nvm on Alpine Linux](#installing-nvm-on-alpine-linux)
|
- [Installing nvm on Alpine Linux](#installing-nvm-on-alpine-linux)
|
||||||
|
- [Removal](#removal)
|
||||||
|
- [Manual Uninstall](#manual-uninstall)
|
||||||
- [Docker for development environment](#docker-for-development-environment)
|
- [Docker for development environment](#docker-for-development-environment)
|
||||||
- [Problems](#problems)
|
- [Problems](#problems)
|
||||||
- [Mac OS "troubleshooting"](#mac-os-troubleshooting)
|
- [Mac OS "troubleshooting"](#mac-os-troubleshooting)
|
||||||
|
|
||||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||||
|
|
||||||
## Installation
|
## Installation and Update
|
||||||
|
|
||||||
### Install script
|
### Install & Update script
|
||||||
|
|
||||||
To install or update nvm, you can use the [install script][2] using cURL:
|
|
||||||
|
|
||||||
|
To **install** or **update** nvm, you should run the [install script][2]. To do that, you may either download and run the script manually, or use the following cURL or Wget command:
|
||||||
```sh
|
```sh
|
||||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
|
||||||
|
```
|
||||||
|
```sh
|
||||||
|
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
or Wget:
|
Running either of the above commands downloads a script and runs it. The script clones the nvm repository to `~/.nvm`, and adds the source lines from the snippet below to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).
|
||||||
|
|
||||||
|
<a id="profile_snippet"></a>
|
||||||
```sh
|
```sh
|
||||||
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
|
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
```
|
```
|
||||||
|
|
||||||
<sub>The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).</sub>
|
<sub>**Note:** If the environment variable `$XDG_CONFIG_HOME` is present, it will place the `nvm` files there.</sub>
|
||||||
|
|
||||||
```sh
|
**Note:** You can add `--no-use` to the end of the above script (...`nvm.sh --no-use`) to postpone using `nvm` until you manually [`use`](#usage) it.
|
||||||
export NVM_DIR="$HOME/.nvm"
|
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
|
||||||
```
|
|
||||||
|
|
||||||
You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables.
|
You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables.
|
||||||
Eg: `curl ... | NVM_DIR=/usr/local/nvm bash` for a global install.
|
Eg: `curl ... | NVM_DIR="path/to/nvm"`. Ensure that the `NVM_DIR` does not contain a trailing slash.
|
||||||
|
|
||||||
<sub>*NB. The installer can use `git`, `curl`, or `wget` to download `nvm`, whatever is available.*</sub>
|
<sub>*NB. The installer can use `git`, `curl`, or `wget` to download `nvm`, whatever is available.*</sub>
|
||||||
|
|
||||||
**Note:** On Linux, after running the install script, if you get `nvm: command not found` or see no feedback from your terminal after you type:
|
**Note:** On Linux, after running the install script, if you get `nvm: command not found` or see no feedback from your terminal after you type `command -v nvm`, simply close your current terminal, open a new terminal, and try verifying again.
|
||||||
|
|
||||||
|
**Note:** Since OS X 10.9, `/usr/bin/git` has been preset by Xcode command line tools, which means we can't properly detect if Git is installed or not. You need to manually install the Xcode command line tools before running the install script, otherwise, it'll fail. (see [#1782](https://github.com/nvm-sh/nvm/issues/1782))
|
||||||
|
|
||||||
|
**Note:** On OS X, if you get `nvm: command not found` after running the install script, one of the following might be the reason:
|
||||||
|
|
||||||
|
- Your system may not have a `.bash_profile` file where the command is set up. Create one with `touch ~/.bash_profile` and run the install script again
|
||||||
|
- You might need to restart your terminal instance. Try opening a new tab/window in your terminal and retry.
|
||||||
|
|
||||||
|
If the above doesn't fix the problem, you may try the following:
|
||||||
|
- Open your `.bash_profile` (or `~/.zshrc`, `~/.profile`, or `~/.bashrc`) and add the following line of code: `source ~/<your_profile_file>`. E.g. `source ~/.bashrc` or `source ~/.zshrc`.
|
||||||
|
- If the above don't work, try adding the [snippet from the install section](#profile_snippet) that finds the correct nvm directory and loads nvm, to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).
|
||||||
|
|
||||||
|
- For more information about this issue and possible workarounds, please [refer here](https://github.com/nvm-sh/nvm/issues/576)
|
||||||
|
|
||||||
|
#### Ansible
|
||||||
|
You can use a task:
|
||||||
|
|
||||||
```sh
|
|
||||||
command -v nvm
|
|
||||||
```
|
```
|
||||||
simply close your current terminal, open a new terminal, and try verifying again.
|
- name: nvm
|
||||||
|
shell: >
|
||||||
**Note:** On OS X, if you get `nvm: command not found` after running the install script, one of the following might be the reason:-
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
|
||||||
- your system may not have a [`.bash_profile file`] where the command is set up. Simply create one with `touch ~/.bash_profile` and run the install script again
|
args:
|
||||||
- you might need to restart your terminal instance. Try opening a new tab/window in your terminal and retry.
|
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
|
||||||
|
```
|
||||||
If the above doesn't fix the problem, open your `.bash_profile` and add the following line of code:
|
|
||||||
|
|
||||||
`source ~/.bashrc`
|
|
||||||
|
|
||||||
- For more information about this issue and possible workarounds, please [refer here](https://github.com/creationix/nvm/issues/576)
|
|
||||||
|
|
||||||
### Verify installation
|
### Verify installation
|
||||||
|
|
||||||
@@ -87,48 +107,54 @@ To verify that nvm has been installed, do:
|
|||||||
command -v nvm
|
command -v nvm
|
||||||
```
|
```
|
||||||
|
|
||||||
which should output 'nvm' if the installation was successful. Please note that `which nvm` will not work, since `nvm` is a sourced shell function, not an executable binary.
|
which should output `nvm` if the installation was successful. Please note that `which nvm` will not work, since `nvm` is a sourced shell function, not an executable binary.
|
||||||
|
|
||||||
### Important Notes
|
### Important Notes
|
||||||
|
|
||||||
If you're running a system without prepackaged binary available, which means you're going to install nodejs or io.js from its source code, you need to make sure your system has a C++ compiler. For OS X, Xcode will work, for Debian/Ubuntu based GNU/Linux, the `build-essential` and `libssl-dev` packages work.
|
If you're running a system without prepackaged binary available, which means you're going to install nodejs or io.js from its source code, you need to make sure your system has a C++ compiler. For OS X, Xcode will work, for Debian/Ubuntu based GNU/Linux, the `build-essential` and `libssl-dev` packages work.
|
||||||
|
|
||||||
**Note:** `nvm` does not support Windows (see [#284](https://github.com/creationix/nvm/issues/284)). Two alternatives exist, which are neither supported nor developed by us:
|
**Note:** `nvm` does not support Windows (see [#284](https://github.com/nvm-sh/nvm/issues/284)), but may work in WSL (Windows Subsystem for Linux) depending on the version of WSL. For Windows, two alternatives exist, which are neither supported nor developed by us:
|
||||||
- [nvm-windows](https://github.com/coreybutler/nvm-windows)
|
|
||||||
- [nodist](https://github.com/marcelklehr/nodist)
|
|
||||||
|
|
||||||
**Note:** `nvm` does not support [Fish] either (see [#303](https://github.com/creationix/nvm/issues/303)). Alternatives exist, which are neither supported nor developed by us:
|
- [nvm-windows](https://github.com/coreybutler/nvm-windows)
|
||||||
- [bass](https://github.com/edc/bass) allows you to use utilities written for Bash in fish shell
|
- [nodist](https://github.com/marcelklehr/nodist)
|
||||||
- [fast-nvm-fish](https://github.com/brigand/fast-nvm-fish) only works with version numbers (not aliases) but doesn't significantly slow your shell startup
|
|
||||||
- [plugin-nvm](https://github.com/derekstavis/plugin-nvm) plugin for [Oh My Fish](https://github.com/oh-my-fish/oh-my-fish), which makes nvm and its completions available in fish shell
|
**Note:** `nvm` does not support [Fish] either (see [#303](https://github.com/nvm-sh/nvm/issues/303)). Alternatives exist, which are neither supported nor developed by us:
|
||||||
- [fnm](https://github.com/fisherman/fnm) - [fisherman](https://github.com/fisherman/fisherman)-based version manager for fish
|
|
||||||
|
- [bass](https://github.com/edc/bass) allows you to use utilities written for Bash in fish shell
|
||||||
|
- [fast-nvm-fish](https://github.com/brigand/fast-nvm-fish) only works with version numbers (not aliases) but doesn't significantly slow your shell startup
|
||||||
|
- [plugin-nvm](https://github.com/derekstavis/plugin-nvm) plugin for [Oh My Fish](https://github.com/oh-my-fish/oh-my-fish), which makes nvm and its completions available in fish shell
|
||||||
|
- [fnm](https://github.com/fisherman/fnm) - [fisherman](https://github.com/fisherman/fisherman)-based version manager for fish
|
||||||
|
- [fish-nvm](https://github.com/FabioAntunes/fish-nvm) - Wrapper around nvm for fish, delays sourcing nvm until it's actually used.
|
||||||
|
|
||||||
**Note:** We still have some problems with FreeBSD, because there is no official pre-built binary for FreeBSD, and building from source may need [patches](https://www.freshports.org/www/node/files/patch-deps_v8_src_base_platform_platform-posix.cc); see the issue ticket:
|
**Note:** We still have some problems with FreeBSD, because there is no official pre-built binary for FreeBSD, and building from source may need [patches](https://www.freshports.org/www/node/files/patch-deps_v8_src_base_platform_platform-posix.cc); see the issue ticket:
|
||||||
- [[#900] [Bug] nodejs on FreeBSD may need to be patched ](https://github.com/creationix/nvm/issues/900)
|
|
||||||
- [nodejs/node#3716](https://github.com/nodejs/node/issues/3716)
|
- [[#900] [Bug] nodejs on FreeBSD may need to be patched](https://github.com/nvm-sh/nvm/issues/900)
|
||||||
|
- [nodejs/node#3716](https://github.com/nodejs/node/issues/3716)
|
||||||
|
|
||||||
**Note:** On OS X, if you do not have Xcode installed and you do not wish to download the ~4.3GB file, you can install the `Command Line Tools`. You can check out this blog post on how to just that:
|
**Note:** On OS X, if you do not have Xcode installed and you do not wish to download the ~4.3GB file, you can install the `Command Line Tools`. You can check out this blog post on how to just that:
|
||||||
- [How to Install Command Line Tools in OS X Mavericks & Yosemite (Without Xcode)](http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/)
|
|
||||||
|
- [How to Install Command Line Tools in OS X Mavericks & Yosemite (Without Xcode)](http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/)
|
||||||
|
|
||||||
**Note:** On OS X, if you have/had a "system" node installed and want to install modules globally, keep in mind that:
|
**Note:** On OS X, if you have/had a "system" node installed and want to install modules globally, keep in mind that:
|
||||||
- When using nvm you do not need `sudo` to globally install a module with `npm -g`, so instead of doing `sudo npm install -g grunt`, do instead `npm install -g grunt`
|
|
||||||
- If you have an `~/.npmrc` file, make sure it does not contain any `prefix` settings (which is not compatible with nvm)
|
- When using `nvm` you do not need `sudo` to globally install a module with `npm -g`, so instead of doing `sudo npm install -g grunt`, do instead `npm install -g grunt`
|
||||||
- You can (but should not?) keep your previous "system" node install, but nvm will only be available to your user account (the one used to install nvm). This might cause version mismatches, as other users will be using `/usr/local/lib/node_modules/*` VS your user account using `~/.nvm/versions/node/vX.X.X/lib/node_modules/*`
|
- If you have an `~/.npmrc` file, make sure it does not contain any `prefix` settings (which is not compatible with `nvm`)
|
||||||
|
- You can (but should not?) keep your previous "system" node install, but `nvm` will only be available to your user account (the one used to install nvm). This might cause version mismatches, as other users will be using `/usr/local/lib/node_modules/*` VS your user account using `~/.nvm/versions/node/vX.X.X/lib/node_modules/*`
|
||||||
|
|
||||||
Homebrew installation is not supported. If you have issues with homebrew-installed `nvm`, please `brew uninstall` it, and install it using the instructions below, before filing an issue.
|
Homebrew installation is not supported. If you have issues with homebrew-installed `nvm`, please `brew uninstall` it, and install it using the instructions below, before filing an issue.
|
||||||
|
|
||||||
**Note:** If you're using `zsh` you can easily install `nvm` as a zsh plugin. Install [`zsh-nvm`](https://github.com/lukechilds/zsh-nvm) and run `nvm upgrade` to upgrade.
|
**Note:** If you're using `zsh` you can easily install `nvm` as a zsh plugin. Install [`zsh-nvm`](https://github.com/lukechilds/zsh-nvm) and run `nvm upgrade` to upgrade.
|
||||||
|
|
||||||
**Note:** Git versions before v1.7 may face a problem of cloning nvm source from GitHub via https protocol, and there is also different behavior of git before v1.6, so the minimum required git version is v1.7.0 and we recommend v1.7.9.5 as it's the default version of the widely used Ubuntu 12.04 LTS. If you are interested in the problem we mentioned here, please refer to GitHub's [HTTPS cloning errors](https://help.github.com/articles/https-cloning-errors/) article.
|
**Note:** Git versions before v1.7 may face a problem of cloning `nvm` source from GitHub via https protocol, and there is also different behavior of git before v1.6, and git prior to [v1.17.10](https://github.com/git/git/commit/5a7d5b683f869d3e3884a89775241afa515da9e7) can not clone tags, so the minimum required git version is v1.7.10. If you are interested in the problem we mentioned here, please refer to GitHub's [HTTPS cloning errors](https://help.github.com/articles/https-cloning-errors/) article.
|
||||||
|
|
||||||
### Git install
|
### Git install
|
||||||
|
|
||||||
If you have `git` installed (requires git v1.7+):
|
If you have `git` installed (requires git v1.7.10+):
|
||||||
|
|
||||||
1. clone this repo in the root of your user profile
|
1. clone this repo in the root of your user profile
|
||||||
- `cd ~/` from anywhere then `git clone https://github.com/creationix/nvm.git .nvm`
|
- `cd ~/` from anywhere then `git clone https://github.com/nvm-sh/nvm.git .nvm`
|
||||||
2. `cd ~/.nvm` and check out the latest version with `git checkout v0.33.6`
|
1. `cd ~/.nvm` and check out the latest version with `git checkout v0.35.0`
|
||||||
3. activate nvm by sourcing it from your shell: `. nvm.sh`
|
1. activate `nvm` by sourcing it from your shell: `. nvm.sh`
|
||||||
|
|
||||||
Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login:
|
Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login:
|
||||||
(you may have to add to more than one of the above files)
|
(you may have to add to more than one of the above files)
|
||||||
@@ -141,14 +167,14 @@ export NVM_DIR="$HOME/.nvm"
|
|||||||
|
|
||||||
### Manual Install
|
### Manual Install
|
||||||
|
|
||||||
For a fully manual install, create a folder somewhere in your filesystem with the `nvm.sh` file inside it. I put mine in `~/.nvm` and added the following to the `nvm.sh` file.
|
For a fully manual install, execute the following lines to first clone the `nvm` repository into `$HOME/.nvm`, and then load `nvm`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
export NVM_DIR="$HOME/.nvm" && (
|
export NVM_DIR="$HOME/.nvm" && (
|
||||||
git clone https://github.com/creationix/nvm.git "$NVM_DIR"
|
git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR"
|
||||||
cd "$NVM_DIR"
|
cd "$NVM_DIR"
|
||||||
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`
|
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
|
||||||
) && . "$NVM_DIR/nvm.sh"
|
) && \. "$NVM_DIR/nvm.sh"
|
||||||
```
|
```
|
||||||
|
|
||||||
Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login:
|
Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login:
|
||||||
@@ -156,12 +182,12 @@ Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to hav
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
```
|
```
|
||||||
|
|
||||||
### Manual upgrade
|
### Manual upgrade
|
||||||
|
|
||||||
For manual upgrade with `git` (requires git v1.7+):
|
For manual upgrade with `git` (requires git v1.7.10+):
|
||||||
|
|
||||||
1. change to the `$NVM_DIR`
|
1. change to the `$NVM_DIR`
|
||||||
1. pull down the latest changes
|
1. pull down the latest changes
|
||||||
@@ -171,9 +197,9 @@ For manual upgrade with `git` (requires git v1.7+):
|
|||||||
```sh
|
```sh
|
||||||
(
|
(
|
||||||
cd "$NVM_DIR"
|
cd "$NVM_DIR"
|
||||||
git fetch origin
|
git fetch --tags origin
|
||||||
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`
|
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
|
||||||
) && . "$NVM_DIR/nvm.sh"
|
) && \. "$NVM_DIR/nvm.sh"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
@@ -181,7 +207,21 @@ For manual upgrade with `git` (requires git v1.7+):
|
|||||||
To download, compile, and install the latest release of node, do this:
|
To download, compile, and install the latest release of node, do this:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
nvm install node
|
nvm install node # "node" is an alias for the latest version
|
||||||
|
```
|
||||||
|
|
||||||
|
To install a specific version of node:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nvm install 6.14.4 # or 10.10.0, 8.9.1, etc
|
||||||
|
```
|
||||||
|
|
||||||
|
The first version installed becomes the default. New shells will start with the default version of node (e.g., `nvm alias default`).
|
||||||
|
|
||||||
|
You can list available versions using `ls-remote`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nvm ls-remote
|
||||||
```
|
```
|
||||||
|
|
||||||
And then in any new shell just use the installed version:
|
And then in any new shell just use the installed version:
|
||||||
@@ -195,6 +235,7 @@ Or you can just run it:
|
|||||||
```sh
|
```sh
|
||||||
nvm run node --version
|
nvm run node --version
|
||||||
```
|
```
|
||||||
|
|
||||||
Or, you can run any arbitrary command in a subshell with the desired version of node:
|
Or, you can run any arbitrary command in a subshell with the desired version of node:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -209,24 +250,27 @@ nvm which 5.0
|
|||||||
|
|
||||||
In place of a version pointer like "0.10" or "5.0" or "4.2.1", you can use the following special default aliases with `nvm install`, `nvm use`, `nvm run`, `nvm exec`, `nvm which`, etc:
|
In place of a version pointer like "0.10" or "5.0" or "4.2.1", you can use the following special default aliases with `nvm install`, `nvm use`, `nvm run`, `nvm exec`, `nvm which`, etc:
|
||||||
|
|
||||||
- `node`: this installs the latest version of [`node`](https://nodejs.org/en/)
|
- `node`: this installs the latest version of [`node`](https://nodejs.org/en/)
|
||||||
- `iojs`: this installs the latest version of [`io.js`](https://iojs.org/en/)
|
- `iojs`: this installs the latest version of [`io.js`](https://iojs.org/en/)
|
||||||
- `stable`: this alias is deprecated, and only truly applies to `node` `v0.12` and earlier. Currently, this is an alias for `node`.
|
- `stable`: this alias is deprecated, and only truly applies to `node` `v0.12` and earlier. Currently, this is an alias for `node`.
|
||||||
- `unstable`: this alias points to `node` `v0.11` - the last "unstable" node release, since post-1.0, all node versions are stable. (in semver, versions communicate breakage, not stability).
|
- `unstable`: this alias points to `node` `v0.11` - the last "unstable" node release, since post-1.0, all node versions are stable. (in SemVer, versions communicate breakage, not stability).
|
||||||
|
|
||||||
### Long-term support
|
### Long-term support
|
||||||
Node has a [schedule](https://github.com/nodejs/LTS#lts_schedule) for long-term support (LTS) You can reference LTS versions in aliases and `.nvmrc` files with the notation `lts/*` for the latest LTS, and `lts/argon` for LTS releases from the "argon" line, for example. In addition, the following commands support LTS arguments:
|
|
||||||
- `nvm install --lts` / `nvm install --lts=argon` / `nvm install 'lts/*'` / `nvm install lts/argon`
|
Node has a [schedule](https://github.com/nodejs/Release#release-schedule) for long-term support (LTS) You can reference LTS versions in aliases and `.nvmrc` files with the notation `lts/*` for the latest LTS, and `lts/argon` for LTS releases from the "argon" line, for example. In addition, the following commands support LTS arguments:
|
||||||
- `nvm uninstall --lts` / `nvm uninstall --lts=argon` / `nvm uninstall 'lts/*'` / `nvm uninstall lts/argon`
|
|
||||||
- `nvm use --lts` / `nvm use --lts=argon` / `nvm use 'lts/*'` / `nvm use lts/argon`
|
- `nvm install --lts` / `nvm install --lts=argon` / `nvm install 'lts/*'` / `nvm install lts/argon`
|
||||||
- `nvm exec --lts` / `nvm exec --lts=argon` / `nvm exec 'lts/*'` / `nvm exec lts/argon`
|
- `nvm uninstall --lts` / `nvm uninstall --lts=argon` / `nvm uninstall 'lts/*'` / `nvm uninstall lts/argon`
|
||||||
- `nvm run --lts` / `nvm run --lts=argon` / `nvm run 'lts/*'` / `nvm run lts/argon`
|
- `nvm use --lts` / `nvm use --lts=argon` / `nvm use 'lts/*'` / `nvm use lts/argon`
|
||||||
- `nvm ls-remote --lts` / `nvm ls-remote --lts=argon` `nvm ls-remote 'lts/*'` / `nvm ls-remote lts/argon`
|
- `nvm exec --lts` / `nvm exec --lts=argon` / `nvm exec 'lts/*'` / `nvm exec lts/argon`
|
||||||
- `nvm version-remote --lts` / `nvm version-remote --lts=argon` / `nvm version-remote 'lts/*'` / `nvm version-remote lts/argon`
|
- `nvm run --lts` / `nvm run --lts=argon` / `nvm run 'lts/*'` / `nvm run lts/argon`
|
||||||
|
- `nvm ls-remote --lts` / `nvm ls-remote --lts=argon` `nvm ls-remote 'lts/*'` / `nvm ls-remote lts/argon`
|
||||||
|
- `nvm version-remote --lts` / `nvm version-remote --lts=argon` / `nvm version-remote 'lts/*'` / `nvm version-remote lts/argon`
|
||||||
|
|
||||||
Any time your local copy of `nvm` connects to https://nodejs.org, it will re-create the appropriate local aliases for all available LTS lines. These aliases (stored under `$NVM_DIR/alias/lts`), are managed by `nvm`, and you should not modify, remove, or create these files - expect your changes to be undone, and expect meddling with these files to cause bugs that will likely not be supported.
|
Any time your local copy of `nvm` connects to https://nodejs.org, it will re-create the appropriate local aliases for all available LTS lines. These aliases (stored under `$NVM_DIR/alias/lts`), are managed by `nvm`, and you should not modify, remove, or create these files - expect your changes to be undone, and expect meddling with these files to cause bugs that will likely not be supported.
|
||||||
|
|
||||||
### Migrating global packages while installing
|
### Migrating global packages while installing
|
||||||
|
|
||||||
If you want to install a new version of Node.js and migrate npm packages from a previous version:
|
If you want to install a new version of Node.js and migrate npm packages from a previous version:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -242,9 +286,25 @@ nvm install 6 --reinstall-packages-from=5
|
|||||||
nvm install v4.2 --reinstall-packages-from=iojs
|
nvm install v4.2 --reinstall-packages-from=iojs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note that reinstalling packages _explicitly does not update the npm version_ — this is to ensure that npm isn't accidentally upgraded to a broken version for the new node version.
|
||||||
|
|
||||||
|
To update npm at the same time add the `--latest-npm` flag, like this:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nvm install lts/* --reinstall-packages-from=default --latest-npm
|
||||||
|
```
|
||||||
|
|
||||||
|
or, you can at any time run the following command to get the latest supported npm version on the current node version:
|
||||||
|
```sh
|
||||||
|
nvm install-latest-npm
|
||||||
|
```
|
||||||
|
|
||||||
|
If you've already gotten an error to the effect of "npm does not support Node.js", you'll need to (1) revert to a previous node version (`nvm ls` & `nvm use <your latest _working_ version from the ls>`, (2) delete the newly created node version (`nvm uninstall <your _broken_ version of node from the ls>`), then (3) rerun your `nvm install` with the `--latest-npm` flag.
|
||||||
|
|
||||||
|
|
||||||
### Default global packages from file while installing
|
### Default global packages from file while installing
|
||||||
|
|
||||||
If you have a list of default packages you want installed every time you install a new version we support that too. You can add anything npm would accept as a package argument on the command line.
|
If you have a list of default packages you want installed every time you install a new version, we support that too -- just add the package names, one per line, to the file `$NVM_DIR/default-packages`. You can add anything npm would accept as a package argument on the command line.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# $NVM_DIR/default-packages
|
# $NVM_DIR/default-packages
|
||||||
@@ -255,6 +315,7 @@ stevemao/left-pad
|
|||||||
```
|
```
|
||||||
|
|
||||||
### io.js
|
### io.js
|
||||||
|
|
||||||
If you want to install [io.js](https://github.com/iojs/io.js/):
|
If you want to install [io.js](https://github.com/iojs/io.js/):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -267,9 +328,10 @@ If you want to install a new version of io.js and migrate npm packages from a pr
|
|||||||
nvm install iojs --reinstall-packages-from=iojs
|
nvm install iojs --reinstall-packages-from=iojs
|
||||||
```
|
```
|
||||||
|
|
||||||
The same guidelines mentioned for migrating npm packages in Node.js are applicable to io.js.
|
The same guidelines mentioned for migrating npm packages in node are applicable to io.js.
|
||||||
|
|
||||||
### System version of node
|
### System version of node
|
||||||
|
|
||||||
If you want to use the system-installed version of node, you can use the special default alias "system":
|
If you want to use the system-installed version of node, you can use the special default alias "system":
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -278,6 +340,7 @@ nvm run system --version
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Listing versions
|
### Listing versions
|
||||||
|
|
||||||
If you want to see what versions are installed:
|
If you want to see what versions are installed:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -290,6 +353,15 @@ If you want to see what versions are available to install:
|
|||||||
nvm ls-remote
|
nvm ls-remote
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Suppressing colorized output
|
||||||
|
|
||||||
|
`nvm ls`, `nvm ls-remote` and `nvm alias` usually produce colorized output. You can disable colors with the `--no-colors` option (or by setting the environment variable `TERM=dumb`):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nvm ls --no-colors
|
||||||
|
TERM=dumb nvm ls
|
||||||
|
```
|
||||||
|
|
||||||
To restore your PATH, you can deactivate it:
|
To restore your PATH, you can deactivate it:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -324,15 +396,17 @@ NVM_IOJS_ORG_MIRROR=https://iojs.org/dist nvm install iojs-v1.0.3
|
|||||||
|
|
||||||
### .nvmrc
|
### .nvmrc
|
||||||
|
|
||||||
You can create a `.nvmrc` file containing version number in the project root directory (or any parent directory).
|
You can create a `.nvmrc` file containing a node version number (or any other string that `nvm` understands; see `nvm --help` for details) in the project root directory (or any parent directory).
|
||||||
`nvm use`, `nvm install`, `nvm exec`, `nvm run`, and `nvm which` will all respect an `.nvmrc` file when a version is not supplied.
|
Afterwards, `nvm use`, `nvm install`, `nvm exec`, `nvm run`, and `nvm which` will use the version specified in the `.nvmrc` file if no version is supplied on the command line.
|
||||||
|
|
||||||
For example, to make nvm default to the latest 5.9 release for the current directory:
|
For example, to make nvm default to the latest 5.9 release, the latest LTS version, or the latest node version for the current directory:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ echo "5.9" > .nvmrc
|
$ echo "5.9" > .nvmrc
|
||||||
|
|
||||||
$ echo "lts/*" > .nvmrc # to default to the latest LTS version
|
$ echo "lts/*" > .nvmrc # to default to the latest LTS version
|
||||||
|
|
||||||
|
$ echo "node" > .nvmrc # to default to the latest version
|
||||||
```
|
```
|
||||||
|
|
||||||
Then when you run nvm:
|
Then when you run nvm:
|
||||||
@@ -343,12 +417,78 @@ Found '/path/to/project/.nvmrc' with version <5.9>
|
|||||||
Now using node v5.9.1 (npm v3.7.3)
|
Now using node v5.9.1 (npm v3.7.3)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`nvm use` et. al. will traverse directory structure upwards from the current directory looking for the `.nvmrc` file. In other words, running `nvm use` et. al. in any subdirectory of a directory with an `.nvmrc` will result in that `.nvmrc` being utilized.
|
||||||
|
|
||||||
|
The contents of a `.nvmrc` file **must** be the `<version>` (as described by `nvm --help`) followed by a newline. No trailing spaces are allowed, and the trailing newline is required.
|
||||||
|
|
||||||
### Deeper Shell Integration
|
### Deeper Shell Integration
|
||||||
|
|
||||||
You can use [`avn`](https://github.com/wbyoung/avn) to deeply integrate into your shell and automatically invoke `nvm` when changing directories. `avn` is **not** supported by the `nvm` development team. Please [report issues to the `avn` team](https://github.com/wbyoung/avn/issues/new).
|
You can use [`avn`](https://github.com/wbyoung/avn) to deeply integrate into your shell and automatically invoke `nvm` when changing directories. `avn` is **not** supported by the `nvm` development team. Please [report issues to the `avn` team](https://github.com/wbyoung/avn/issues/new).
|
||||||
|
|
||||||
If you prefer a lighter-weight solution, the recipes below have been contributed by `nvm` users. They are **not** supported by the `nvm` development team. We are, however, accepting pull requests for more examples.
|
If you prefer a lighter-weight solution, the recipes below have been contributed by `nvm` users. They are **not** supported by the `nvm` development team. We are, however, accepting pull requests for more examples.
|
||||||
|
|
||||||
|
#### bash
|
||||||
|
|
||||||
|
##### Automatically call `nvm use`
|
||||||
|
|
||||||
|
Put the following at the end of your `$HOME/.bashrc`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
find-up () {
|
||||||
|
path=$(pwd)
|
||||||
|
while [[ "$path" != "" && ! -e "$path/$1" ]]; do
|
||||||
|
path=${path%/*}
|
||||||
|
done
|
||||||
|
echo "$path"
|
||||||
|
}
|
||||||
|
|
||||||
|
cdnvm(){
|
||||||
|
cd "$@";
|
||||||
|
nvm_path=$(find-up .nvmrc | tr -d '[:space:]')
|
||||||
|
|
||||||
|
# If there are no .nvmrc file, use the default nvm version
|
||||||
|
if [[ ! $nvm_path = *[^[:space:]]* ]]; then
|
||||||
|
|
||||||
|
declare default_version;
|
||||||
|
default_version=$(nvm version default);
|
||||||
|
|
||||||
|
# If there is no default version, set it to `node`
|
||||||
|
# This will use the latest version on your machine
|
||||||
|
if [[ $default_version == "N/A" ]]; then
|
||||||
|
nvm alias default node;
|
||||||
|
default_version=$(nvm version default);
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the current version is not the default version, set it to use the default version
|
||||||
|
if [[ $(nvm current) != "$default_version" ]]; then
|
||||||
|
nvm use default;
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ -s $nvm_path/.nvmrc && -r $nvm_path/.nvmrc ]]; then
|
||||||
|
declare nvm_version
|
||||||
|
nvm_version=$(<"$nvm_path"/.nvmrc)
|
||||||
|
|
||||||
|
declare locally_resolved_nvm_version
|
||||||
|
# `nvm ls` will check all locally-available versions
|
||||||
|
# If there are multiple matching versions, take the latest one
|
||||||
|
# Remove the `->` and `*` characters and spaces
|
||||||
|
# `locally_resolved_nvm_version` will be `N/A` if no local versions are found
|
||||||
|
locally_resolved_nvm_version=$(nvm ls --no-colors "$nvm_version" | tail -1 | tr -d '\->*' | tr -d '[:space:]')
|
||||||
|
|
||||||
|
# If it is not already installed, install it
|
||||||
|
# `nvm install` will implicitly use the newly-installed version
|
||||||
|
if [[ "$locally_resolved_nvm_version" == "N/A" ]]; then
|
||||||
|
nvm install "$nvm_version";
|
||||||
|
elif [[ $(nvm current) != "$locally_resolved_nvm_version" ]]; then
|
||||||
|
nvm use "$nvm_version";
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
alias cd='cdnvm'
|
||||||
|
```
|
||||||
|
|
||||||
|
This alias would search 'up' from your current directory in order to detect a `.nvmrc` file. If it finds it, it will switch to that version; if not, it will use the default version.
|
||||||
|
|
||||||
#### zsh
|
#### zsh
|
||||||
|
|
||||||
##### Calling `nvm use` automatically in a directory with a `.nvmrc` file
|
##### Calling `nvm use` automatically in a directory with a `.nvmrc` file
|
||||||
@@ -385,7 +525,7 @@ load-nvmrc
|
|||||||
nvm is released under the MIT license.
|
nvm is released under the MIT license.
|
||||||
|
|
||||||
|
|
||||||
Copyright (C) 2010-2017 Tim Caswell and Jordan Harband
|
Copyright (C) 2010 Tim Caswell and Jordan Harband
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
@@ -394,6 +534,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
## Running tests
|
## Running tests
|
||||||
|
|
||||||
Tests are written in [Urchin]. Install Urchin (and other dependencies) like so:
|
Tests are written in [Urchin]. Install Urchin (and other dependencies) like so:
|
||||||
|
|
||||||
npm install
|
npm install
|
||||||
@@ -420,7 +561,7 @@ Nota bene: Avoid running nvm while the tests are running.
|
|||||||
To activate, you need to source `bash_completion`:
|
To activate, you need to source `bash_completion`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion
|
[[ -r $NVM_DIR/bash_completion ]] && \. $NVM_DIR/bash_completion
|
||||||
```
|
```
|
||||||
|
|
||||||
Put the above sourcing line just below the sourcing line for nvm in your profile (`.bashrc`, `.bash_profile`).
|
Put the above sourcing line just below the sourcing line for nvm in your profile (`.bashrc`, `.bash_profile`).
|
||||||
@@ -429,6 +570,7 @@ Put the above sourcing line just below the sourcing line for nvm in your profile
|
|||||||
|
|
||||||
nvm:
|
nvm:
|
||||||
> $ nvm <kbd>Tab</kbd>
|
> $ nvm <kbd>Tab</kbd>
|
||||||
|
|
||||||
```
|
```
|
||||||
alias deactivate install ls run unload
|
alias deactivate install ls run unload
|
||||||
clear-cache exec list ls-remote unalias use
|
clear-cache exec list ls-remote unalias use
|
||||||
@@ -437,49 +579,60 @@ current help list-remote reinstall-packages
|
|||||||
|
|
||||||
nvm alias:
|
nvm alias:
|
||||||
> $ nvm alias <kbd>Tab</kbd>
|
> $ nvm alias <kbd>Tab</kbd>
|
||||||
|
|
||||||
```
|
```
|
||||||
default
|
default
|
||||||
```
|
```
|
||||||
|
|
||||||
> $ nvm alias my_alias <kbd>Tab</kbd>
|
> $ nvm alias my_alias <kbd>Tab</kbd>
|
||||||
|
|
||||||
```
|
```
|
||||||
v0.6.21 v0.8.26 v0.10.28
|
v0.6.21 v0.8.26 v0.10.28
|
||||||
```
|
```
|
||||||
|
|
||||||
nvm use:
|
nvm use:
|
||||||
> $ nvm use <kbd>Tab</kbd>
|
> $ nvm use <kbd>Tab</kbd>
|
||||||
|
|
||||||
```
|
```
|
||||||
my_alias default v0.6.21 v0.8.26 v0.10.28
|
my_alias default v0.6.21 v0.8.26 v0.10.28
|
||||||
```
|
```
|
||||||
|
|
||||||
nvm uninstall:
|
nvm uninstall:
|
||||||
> $ nvm uninstall <kbd>Tab</kbd>
|
> $ nvm uninstall <kbd>Tab</kbd>
|
||||||
|
|
||||||
```
|
```
|
||||||
my_alias default v0.6.21 v0.8.26 v0.10.28
|
my_alias default v0.6.21 v0.8.26 v0.10.28
|
||||||
```
|
```
|
||||||
|
|
||||||
## Compatibility Issues
|
## Compatibility Issues
|
||||||
|
|
||||||
`nvm` will encounter some issues if you have some non-default settings set. (see [#606](/../../issues/606))
|
`nvm` will encounter some issues if you have some non-default settings set. (see [#606](/../../issues/606))
|
||||||
The following are known to cause issues:
|
The following are known to cause issues:
|
||||||
|
|
||||||
Inside `~/.npmrc`:
|
Inside `~/.npmrc`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
prefix='some/path'
|
prefix='some/path'
|
||||||
```
|
```
|
||||||
|
|
||||||
Environment Variables:
|
Environment Variables:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$NPM_CONFIG_PREFIX
|
$NPM_CONFIG_PREFIX
|
||||||
$PREFIX
|
$PREFIX
|
||||||
```
|
```
|
||||||
|
|
||||||
Shell settings:
|
Shell settings:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
set -e
|
set -e
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installing nvm on Alpine Linux
|
## Installing nvm on Alpine Linux
|
||||||
|
|
||||||
In order to provide the best performance (and other optimisations), nvm will download and install pre-compiled binaries for Node (and npm) when you run `nvm install X`. The Node project compiles, tests and hosts/provides pre-these compiled binaries which are built for mainstream/traditional Linux distributions (such as Debian, Ubuntu, CentOS, RedHat et al).
|
In order to provide the best performance (and other optimisations), nvm will download and install pre-compiled binaries for Node (and npm) when you run `nvm install X`. The Node project compiles, tests and hosts/provides pre-these compiled binaries which are built for mainstream/traditional Linux distributions (such as Debian, Ubuntu, CentOS, RedHat et al).
|
||||||
|
|
||||||
Alpine Linux, unlike mainstream/traditional Linux distributions, is based on [busybox](https://www.busybox.net/), a very compact (~5MB) Linux distribution. Busybox (and thus Alpine Linux) uses a different C/C++ stack to most mainstream/traditional Linux distributions - [musl](https://www.musl-libc.org/). This makes binary programs built for such mainstream/traditional incompatible with Alpine Linux, thus we cannot simply `nvm install X` on Alpine Linux and expect the downloaded binary to run correctly - you'll likely see "...does not exist" errors if you try that.
|
Alpine Linux, unlike mainstream/traditional Linux distributions, is based on [BusyBox](https://www.busybox.net/), a very compact (~5MB) Linux distribution. BusyBox (and thus Alpine Linux) uses a different C/C++ stack to most mainstream/traditional Linux distributions - [musl](https://www.musl-libc.org/). This makes binary programs built for such mainstream/traditional incompatible with Alpine Linux, thus we cannot simply `nvm install X` on Alpine Linux and expect the downloaded binary to run correctly - you'll likely see "...does not exist" errors if you try that.
|
||||||
|
|
||||||
There is a `-s` flag for `nvm install` which requests nvm download Node source and compile it locally.
|
There is a `-s` flag for `nvm install` which requests nvm download Node source and compile it locally.
|
||||||
|
|
||||||
@@ -487,13 +640,31 @@ If installing nvm on Alpine Linux *is* still what you want or need to do, you sh
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
apk add -U curl bash ca-certificates openssl ncurses coreutils python2 make gcc g++ libgcc linux-headers grep util-linux binutils findutils
|
apk add -U curl bash ca-certificates openssl ncurses coreutils python2 make gcc g++ libgcc linux-headers grep util-linux binutils findutils
|
||||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
The Node project has some desire but no concrete plans (due to the overheads of building, testing and support) to offer Alpine-compatible binaries.
|
The Node project has some desire but no concrete plans (due to the overheads of building, testing and support) to offer Alpine-compatible binaries.
|
||||||
|
|
||||||
As a potential alternative, @mhart (a Node contributor) has some [Docker images for Alpine Linux with Node and optionally, npm, pre-installed](https://github.com/mhart/alpine-node).
|
As a potential alternative, @mhart (a Node contributor) has some [Docker images for Alpine Linux with Node and optionally, npm, pre-installed](https://github.com/mhart/alpine-node).
|
||||||
|
|
||||||
|
## Removal
|
||||||
|
|
||||||
|
### Manual Uninstall
|
||||||
|
|
||||||
|
To remove `nvm` manually, execute the following:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ rm -rf "$NVM_DIR"
|
||||||
|
```
|
||||||
|
|
||||||
|
Edit `~/.bashrc` (or other shell resource config) and remove the lines below:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
|
[[ -r $NVM_DIR/bash_completion ]] && \. $NVM_DIR/bash_completion
|
||||||
|
```
|
||||||
|
|
||||||
## Docker for development environment
|
## Docker for development environment
|
||||||
|
|
||||||
To make the development and testing work easier, we have a Dockerfile for development usage, which is based on Ubuntu 14.04 base image, prepared with essential and useful tools for `nvm` development, to build the docker image of the environment, run the docker command at the root of `nvm` repository:
|
To make the development and testing work easier, we have a Dockerfile for development usage, which is based on Ubuntu 14.04 base image, prepared with essential and useful tools for `nvm` development, to build the docker image of the environment, run the docker command at the root of `nvm` repository:
|
||||||
@@ -502,44 +673,45 @@ To make the development and testing work easier, we have a Dockerfile for develo
|
|||||||
$ docker build -t nvm-dev .
|
$ docker build -t nvm-dev .
|
||||||
```
|
```
|
||||||
|
|
||||||
This will package your current nvm repository with our pre-defiend development environment into a docker image named `nvm-dev`, once it's built with success, validate your image via `docker images`:
|
This will package your current nvm repository with our pre-defined development environment into a docker image named `nvm-dev`, once it's built with success, validate your image via `docker images`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker images
|
$ docker images
|
||||||
|
|
||||||
REPOSITORY TAG IMAGE ID CREATED SIZE
|
REPOSITORY TAG IMAGE ID CREATED SIZE
|
||||||
nvm-dev latest 9ca4c57a97d8 7 days ago 1.22 GB
|
nvm-dev latest 9ca4c57a97d8 7 days ago 650 MB
|
||||||
```
|
```
|
||||||
|
|
||||||
If you got no error message, now you can easily involve in:
|
If you got no error message, now you can easily involve in:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker run -it nvm-dev -h nvm-dev
|
$ docker run -h nvm-dev -it nvm-dev
|
||||||
|
|
||||||
nvm@nvm-dev:~/.nvm$
|
nvm@nvm-dev:~/.nvm$
|
||||||
```
|
```
|
||||||
|
|
||||||
Please note that it'll take about 15 minutes to build the image and the image size would be about 1.2GB, so it's not suitable for production usage.
|
Please note that it'll take about 8 minutes to build the image and the image size would be about 650MB, so it's not suitable for production usage.
|
||||||
|
|
||||||
For more information and documentation about docker, please refer to its official website:
|
For more information and documentation about docker, please refer to its official website:
|
||||||
- https://www.docker.com/
|
|
||||||
- https://docs.docker.com/
|
- https://www.docker.com/
|
||||||
|
- https://docs.docker.com/
|
||||||
|
|
||||||
## Problems
|
## Problems
|
||||||
|
|
||||||
- If you try to install a node version and the installation fails, be sure to delete the node downloads from src (`~/.nvm/src/`) or you might get an error when trying to reinstall them again or you might get an error like the following:
|
- If you try to install a node version and the installation fails, be sure to run `nvm cache clear` to delete cached node downloads, or you might get an error like the following:
|
||||||
|
|
||||||
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
|
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
|
||||||
|
|
||||||
- Where's my `sudo node`? Check out [#43](https://github.com/creationix/nvm/issues/43)
|
- Where's my `sudo node`? Check out [#43](https://github.com/nvm-sh/nvm/issues/43)
|
||||||
|
|
||||||
- After the v0.8.6 release of node, nvm tries to install from binary packages. But in some systems, the official binary packages don't work due to incompatibility of shared libs. In such cases, use `-s` option to force install from source:
|
- After the v0.8.6 release of node, nvm tries to install from binary packages. But in some systems, the official binary packages don't work due to incompatibility of shared libs. In such cases, use `-s` option to force install from source:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
nvm install -s 0.8.6
|
nvm install -s 0.8.6
|
||||||
```
|
```
|
||||||
|
|
||||||
- If setting the `default` alias does not establish the node version in new shells (i.e. `nvm current` yields `system`), ensure that the system's node `PATH` is set before the `nvm.sh` source line in your shell profile (see [#658](https://github.com/creationix/nvm/issues/658))
|
- If setting the `default` alias does not establish the node version in new shells (i.e. `nvm current` yields `system`), ensure that the system's node `PATH` is set before the `nvm.sh` source line in your shell profile (see [#658](https://github.com/nvm-sh/nvm/issues/658))
|
||||||
|
|
||||||
## Mac OS "troubleshooting"
|
## Mac OS "troubleshooting"
|
||||||
|
|
||||||
@@ -553,9 +725,9 @@ sudo chmod ugo-x /usr/libexec/path_helper
|
|||||||
|
|
||||||
More on this issue in [dotphiles/dotzsh](https://github.com/dotphiles/dotzsh#mac-os-x).
|
More on this issue in [dotphiles/dotzsh](https://github.com/dotphiles/dotzsh#mac-os-x).
|
||||||
|
|
||||||
[1]: https://github.com/creationix/nvm.git
|
[1]: https://github.com/nvm-sh/nvm.git
|
||||||
[2]: https://github.com/creationix/nvm/blob/v0.33.6/install.sh
|
[2]: https://github.com/nvm-sh/nvm/blob/v0.35.0/install.sh
|
||||||
[3]: https://travis-ci.org/creationix/nvm
|
[3]: https://travis-ci.org/nvm-sh/nvm
|
||||||
[4]: https://github.com/creationix/nvm/releases/tag/v0.33.6
|
[4]: https://github.com/nvm-sh/nvm/releases/tag/v0.35.0
|
||||||
[Urchin]: https://github.com/scraperwiki/urchin
|
[Urchin]: https://github.com/scraperwiki/urchin
|
||||||
[Fish]: http://fishshell.com
|
[Fish]: http://fishshell.com
|
||||||
|
|||||||
10
ROADMAP.md
10
ROADMAP.md
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
This is a list of the primary features planned for `nvm`:
|
This is a list of the primary features planned for `nvm`:
|
||||||
|
|
||||||
- [x] Rewriting installation code paths to support installing `io.js` and `node` `v4+` [from source](https://github.com/creationix/nvm/issues/1188).
|
- [x] Rewriting installation code paths to support installing `io.js` and `node` `v4+` [from source](https://github.com/nvm-sh/nvm/issues/1188).
|
||||||
- This will include [reusing previously downloaded tarballs](https://github.com/creationix/nvm/issues/1193) that match checksums, which is a nice performance and bandwith bonus.
|
- This will include [reusing previously downloaded tarballs](https://github.com/nvm-sh/nvm/issues/1193) that match checksums, which is a nice performance and bandwidth bonus.
|
||||||
- [ ] Adding opt-in environment variable support to list, download, and install `node` [release candidates](https://github.com/creationix/nvm/issues/779), and [nightly builds](https://github.com/creationix/nvm/issues/1053).
|
- [ ] Adding opt-in environment variable support to list, download, and install `node` [release candidates](https://github.com/nvm-sh/nvm/issues/779), and [nightly builds](https://github.com/nvm-sh/nvm/issues/1053).
|
||||||
- [ ] [`nvm update`](https://github.com/creationix/nvm/issues/400): the ability to autoupdate `nvm` itself
|
- [ ] [`nvm update`](https://github.com/nvm-sh/nvm/issues/400): the ability to autoupdate `nvm` itself
|
||||||
- [ ] [v1.0.0](https://github.com/creationix/nvm/milestone/1), including updating the [nvm on npm](https://github.com/creationix/nvm/issues/304) to auto-install nvm properly
|
- [ ] [v1.0.0](https://github.com/nvm-sh/nvm/milestone/1), including updating the [nvm on npm](https://github.com/nvm-sh/nvm/issues/304) to auto-install nvm properly
|
||||||
|
|||||||
@@ -2,20 +2,19 @@
|
|||||||
|
|
||||||
# bash completion for Node Version Manager (NVM)
|
# bash completion for Node Version Manager (NVM)
|
||||||
|
|
||||||
if ! nvm &> /dev/null; then
|
if ! command -v nvm &> /dev/null; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
__nvm_generate_completion()
|
__nvm_generate_completion() {
|
||||||
{
|
|
||||||
declare current_word
|
declare current_word
|
||||||
current_word="${COMP_WORDS[COMP_CWORD]}"
|
current_word="${COMP_WORDS[COMP_CWORD]}"
|
||||||
COMPREPLY=($(compgen -W "$1" -- "$current_word"))
|
# shellcheck disable=SC2207
|
||||||
|
COMPREPLY=($(compgen -W "$1" -- "${current_word}"))
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
__nvm_commands ()
|
__nvm_commands() {
|
||||||
{
|
|
||||||
declare current_word
|
declare current_word
|
||||||
declare command
|
declare command
|
||||||
|
|
||||||
@@ -29,58 +28,53 @@ __nvm_commands ()
|
|||||||
cache deactivate unload
|
cache deactivate unload
|
||||||
version version-remote which'
|
version version-remote which'
|
||||||
|
|
||||||
if [ ${#COMP_WORDS[@]} == 4 ]; then
|
if [ ${#COMP_WORDS[@]} == 4 ]; then
|
||||||
|
|
||||||
command="${COMP_WORDS[COMP_CWORD-2]}"
|
command="${COMP_WORDS[COMP_CWORD - 2]}"
|
||||||
case "${command}" in
|
case "${command}" in
|
||||||
alias) __nvm_installed_nodes ;;
|
alias) __nvm_installed_nodes ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
case "${current_word}" in
|
case "${current_word}" in
|
||||||
-*) __nvm_options ;;
|
-*) __nvm_options ;;
|
||||||
*) __nvm_generate_completion "$COMMANDS" ;;
|
*) __nvm_generate_completion "${COMMANDS}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
__nvm_options ()
|
__nvm_options() {
|
||||||
{
|
|
||||||
OPTIONS=''
|
OPTIONS=''
|
||||||
__nvm_generate_completion "$OPTIONS"
|
__nvm_generate_completion "${OPTIONS}"
|
||||||
}
|
}
|
||||||
|
|
||||||
__nvm_installed_nodes ()
|
__nvm_installed_nodes() {
|
||||||
{
|
|
||||||
__nvm_generate_completion "$(nvm_ls) $(__nvm_aliases)"
|
__nvm_generate_completion "$(nvm_ls) $(__nvm_aliases)"
|
||||||
}
|
}
|
||||||
|
|
||||||
__nvm_aliases ()
|
__nvm_aliases() {
|
||||||
{
|
|
||||||
declare aliases
|
declare aliases
|
||||||
aliases=""
|
aliases=""
|
||||||
if [ -d "$NVM_DIR/alias" ]; then
|
if [ -d "${NVM_DIR}/alias" ]; then
|
||||||
aliases="$(cd "$NVM_DIR/alias" && command find "$PWD" -type f | command sed "s:$PWD/::")"
|
aliases="$(cd "${NVM_DIR}/alias" && command find "${PWD}" -type f | command sed "s:${PWD}/::")"
|
||||||
fi
|
fi
|
||||||
echo "${aliases} node stable unstable iojs"
|
echo "${aliases} node stable unstable iojs"
|
||||||
}
|
}
|
||||||
|
|
||||||
__nvm_alias ()
|
__nvm_alias() {
|
||||||
{
|
|
||||||
__nvm_generate_completion "$(__nvm_aliases)"
|
__nvm_generate_completion "$(__nvm_aliases)"
|
||||||
}
|
}
|
||||||
|
|
||||||
__nvm ()
|
__nvm() {
|
||||||
{
|
|
||||||
declare previous_word
|
declare previous_word
|
||||||
previous_word="${COMP_WORDS[COMP_CWORD-1]}"
|
previous_word="${COMP_WORDS[COMP_CWORD - 1]}"
|
||||||
|
|
||||||
case "$previous_word" in
|
case "${previous_word}" in
|
||||||
use|run|exec|ls|list|uninstall) __nvm_installed_nodes ;;
|
use | run | exec | ls | list | uninstall) __nvm_installed_nodes ;;
|
||||||
alias|unalias) __nvm_alias ;;
|
alias | unalias) __nvm_alias ;;
|
||||||
*) __nvm_commands ;;
|
*) __nvm_commands ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
@@ -91,7 +85,11 @@ __nvm ()
|
|||||||
# ZSH, load and run bashcompinit before calling the complete function.
|
# ZSH, load and run bashcompinit before calling the complete function.
|
||||||
if [[ -n ${ZSH_VERSION-} ]]; then
|
if [[ -n ${ZSH_VERSION-} ]]; then
|
||||||
autoload -U +X bashcompinit && bashcompinit
|
autoload -U +X bashcompinit && bashcompinit
|
||||||
|
autoload -U +X compinit && if [[ ${ZSH_DISABLE_COMPFIX-} = true ]]; then
|
||||||
|
compinit -u
|
||||||
|
else
|
||||||
|
compinit
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
complete -o default -F __nvm nvm
|
complete -o default -F __nvm nvm
|
||||||
|
|
||||||
|
|||||||
102
install.sh
102
install.sh
@@ -6,12 +6,20 @@ nvm_has() {
|
|||||||
type "$1" > /dev/null 2>&1
|
type "$1" > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nvm_default_install_dir() {
|
||||||
|
[ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm"
|
||||||
|
}
|
||||||
|
|
||||||
nvm_install_dir() {
|
nvm_install_dir() {
|
||||||
printf %s "${NVM_DIR:-"$HOME/.nvm"}"
|
if [ -n "$NVM_DIR" ]; then
|
||||||
|
printf %s "${NVM_DIR}"
|
||||||
|
else
|
||||||
|
nvm_default_install_dir
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
nvm_latest_version() {
|
nvm_latest_version() {
|
||||||
echo "v0.33.6"
|
echo "v0.35.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
nvm_profile_is_bash_or_zsh() {
|
nvm_profile_is_bash_or_zsh() {
|
||||||
@@ -39,14 +47,14 @@ nvm_source() {
|
|||||||
local NVM_SOURCE_URL
|
local NVM_SOURCE_URL
|
||||||
NVM_SOURCE_URL="$NVM_SOURCE"
|
NVM_SOURCE_URL="$NVM_SOURCE"
|
||||||
if [ "_$NVM_METHOD" = "_script-nvm-exec" ]; then
|
if [ "_$NVM_METHOD" = "_script-nvm-exec" ]; then
|
||||||
NVM_SOURCE_URL="https://raw.githubusercontent.com/creationix/nvm/$(nvm_latest_version)/nvm-exec"
|
NVM_SOURCE_URL="https://raw.githubusercontent.com/nvm-sh/nvm/$(nvm_latest_version)/nvm-exec"
|
||||||
elif [ "_$NVM_METHOD" = "_script-nvm-bash-completion" ]; then
|
elif [ "_$NVM_METHOD" = "_script-nvm-bash-completion" ]; then
|
||||||
NVM_SOURCE_URL="https://raw.githubusercontent.com/creationix/nvm/$(nvm_latest_version)/bash_completion"
|
NVM_SOURCE_URL="https://raw.githubusercontent.com/nvm-sh/nvm/$(nvm_latest_version)/bash_completion"
|
||||||
elif [ -z "$NVM_SOURCE_URL" ]; then
|
elif [ -z "$NVM_SOURCE_URL" ]; then
|
||||||
if [ "_$NVM_METHOD" = "_script" ]; then
|
if [ "_$NVM_METHOD" = "_script" ]; then
|
||||||
NVM_SOURCE_URL="https://raw.githubusercontent.com/creationix/nvm/$(nvm_latest_version)/nvm.sh"
|
NVM_SOURCE_URL="https://raw.githubusercontent.com/nvm-sh/nvm/$(nvm_latest_version)/nvm.sh"
|
||||||
elif [ "_$NVM_METHOD" = "_git" ] || [ -z "$NVM_METHOD" ]; then
|
elif [ "_$NVM_METHOD" = "_git" ] || [ -z "$NVM_METHOD" ]; then
|
||||||
NVM_SOURCE_URL="https://github.com/creationix/nvm.git"
|
NVM_SOURCE_URL="https://github.com/nvm-sh/nvm.git"
|
||||||
else
|
else
|
||||||
echo >&2 "Unexpected value \"$NVM_METHOD\" for \$NVM_METHOD"
|
echo >&2 "Unexpected value \"$NVM_METHOD\" for \$NVM_METHOD"
|
||||||
return 1
|
return 1
|
||||||
@@ -68,12 +76,12 @@ nvm_download() {
|
|||||||
elif nvm_has "wget"; then
|
elif nvm_has "wget"; then
|
||||||
# Emulate curl with wget
|
# Emulate curl with wget
|
||||||
ARGS=$(echo "$*" | command sed -e 's/--progress-bar /--progress=bar /' \
|
ARGS=$(echo "$*" | command sed -e 's/--progress-bar /--progress=bar /' \
|
||||||
-e 's/-L //' \
|
-e 's/-L //' \
|
||||||
-e 's/--compressed //' \
|
-e 's/--compressed //' \
|
||||||
-e 's/-I /--server-response /' \
|
-e 's/-I /--server-response /' \
|
||||||
-e 's/-s /-q /' \
|
-e 's/-s /-q /' \
|
||||||
-e 's/-o /-O /' \
|
-e 's/-o /-O /' \
|
||||||
-e 's/-C - /-c /')
|
-e 's/-C - /-c /')
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
eval wget $ARGS
|
eval wget $ARGS
|
||||||
fi
|
fi
|
||||||
@@ -85,7 +93,7 @@ install_nvm_from_git() {
|
|||||||
|
|
||||||
if [ -d "$INSTALL_DIR/.git" ]; then
|
if [ -d "$INSTALL_DIR/.git" ]; then
|
||||||
echo "=> nvm is already installed in $INSTALL_DIR, trying to update using git"
|
echo "=> nvm is already installed in $INSTALL_DIR, trying to update using git"
|
||||||
command printf "\r=> "
|
command printf '\r=> '
|
||||||
command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" fetch origin tag "$(nvm_latest_version)" --depth=1 2> /dev/null || {
|
command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" fetch origin tag "$(nvm_latest_version)" --depth=1 2> /dev/null || {
|
||||||
echo >&2 "Failed to update nvm, run 'git fetch' in $INSTALL_DIR yourself."
|
echo >&2 "Failed to update nvm, run 'git fetch' in $INSTALL_DIR yourself."
|
||||||
exit 1
|
exit 1
|
||||||
@@ -93,7 +101,7 @@ install_nvm_from_git() {
|
|||||||
else
|
else
|
||||||
# Cloning to $INSTALL_DIR
|
# Cloning to $INSTALL_DIR
|
||||||
echo "=> Downloading nvm from git to '$INSTALL_DIR'"
|
echo "=> Downloading nvm from git to '$INSTALL_DIR'"
|
||||||
command printf "\r=> "
|
command printf '\r=> '
|
||||||
mkdir -p "${INSTALL_DIR}"
|
mkdir -p "${INSTALL_DIR}"
|
||||||
if [ "$(ls -A "${INSTALL_DIR}")" ]; then
|
if [ "$(ls -A "${INSTALL_DIR}")" ]; then
|
||||||
command git init "${INSTALL_DIR}" || {
|
command git init "${INSTALL_DIR}" || {
|
||||||
@@ -110,14 +118,14 @@ install_nvm_from_git() {
|
|||||||
exit 2
|
exit 2
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
command git clone "$(nvm_source)" -b "$(nvm_latest_version)" --depth=1 "${INSTALL_DIR}" || {
|
command git -c advice.detachedHead=false clone "$(nvm_source)" -b "$(nvm_latest_version)" --depth=1 "${INSTALL_DIR}" || {
|
||||||
echo >&2 'Failed to clone nvm repo. Please report this!'
|
echo >&2 'Failed to clone nvm repo. Please report this!'
|
||||||
exit 2
|
exit 2
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" checkout -f --quiet "$(nvm_latest_version)"
|
command git -c advice.detachedHead=false --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" checkout -f --quiet "$(nvm_latest_version)"
|
||||||
if [ ! -z "$(command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" show-ref refs/heads/master)" ]; then
|
if [ -n "$(command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" show-ref refs/heads/master)" ]; then
|
||||||
if command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" branch --quiet 2>/dev/null; then
|
if command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" branch --quiet 2>/dev/null; then
|
||||||
command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" branch --quiet -D master >/dev/null 2>&1
|
command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" branch --quiet -D master >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
@@ -140,22 +148,22 @@ install_nvm_from_git() {
|
|||||||
# Automatically install Node.js
|
# Automatically install Node.js
|
||||||
#
|
#
|
||||||
nvm_install_node() {
|
nvm_install_node() {
|
||||||
local NODE_VERSION
|
local NODE_VERSION_LOCAL
|
||||||
NODE_VERSION="$(nvm_node_version)"
|
NODE_VERSION_LOCAL="$(nvm_node_version)"
|
||||||
|
|
||||||
if [ -z "$NODE_VERSION" ]; then
|
if [ -z "$NODE_VERSION_LOCAL" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=> Installing Node.js version $NODE_VERSION"
|
echo "=> Installing Node.js version $NODE_VERSION_LOCAL"
|
||||||
nvm install "$NODE_VERSION"
|
nvm install "$NODE_VERSION_LOCAL"
|
||||||
local CURRENT_NVM_NODE
|
local CURRENT_NVM_NODE
|
||||||
|
|
||||||
CURRENT_NVM_NODE="$(nvm_version current)"
|
CURRENT_NVM_NODE="$(nvm_version current)"
|
||||||
if [ "$(nvm_version "$NODE_VERSION")" == "$CURRENT_NVM_NODE" ]; then
|
if [ "$(nvm_version "$NODE_VERSION_LOCAL")" == "$CURRENT_NVM_NODE" ]; then
|
||||||
echo "=> Node.js version $NODE_VERSION has been successfully installed"
|
echo "=> Node.js version $NODE_VERSION_LOCAL has been successfully installed"
|
||||||
else
|
else
|
||||||
echo >&2 "Failed to install Node.js $NODE_VERSION"
|
echo >&2 "Failed to install Node.js $NODE_VERSION_LOCAL"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,7 +196,7 @@ install_nvm_as_script() {
|
|||||||
echo >&2 "Failed to download '$NVM_BASH_COMPLETION_SOURCE'"
|
echo >&2 "Failed to download '$NVM_BASH_COMPLETION_SOURCE'"
|
||||||
return 2
|
return 2
|
||||||
} &
|
} &
|
||||||
for job in $(jobs -p | sort)
|
for job in $(jobs -p | command sort)
|
||||||
do
|
do
|
||||||
wait "$job" || return $?
|
wait "$job" || return $?
|
||||||
done
|
done
|
||||||
@@ -212,6 +220,11 @@ nvm_try_profile() {
|
|||||||
# Otherwise, an empty string is returned
|
# Otherwise, an empty string is returned
|
||||||
#
|
#
|
||||||
nvm_detect_profile() {
|
nvm_detect_profile() {
|
||||||
|
if [ "${PROFILE-}" = '/dev/null' ]; then
|
||||||
|
# the user has specifically requested NOT to have nvm touch their profile
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${PROFILE}" ] && [ -f "${PROFILE}" ]; then
|
if [ -n "${PROFILE}" ] && [ -f "${PROFILE}" ]; then
|
||||||
echo "${PROFILE}"
|
echo "${PROFILE}"
|
||||||
return
|
return
|
||||||
@@ -219,16 +232,14 @@ nvm_detect_profile() {
|
|||||||
|
|
||||||
local DETECTED_PROFILE
|
local DETECTED_PROFILE
|
||||||
DETECTED_PROFILE=''
|
DETECTED_PROFILE=''
|
||||||
local SHELLTYPE
|
|
||||||
SHELLTYPE="$(basename "/$SHELL")"
|
|
||||||
|
|
||||||
if [ "$SHELLTYPE" = "bash" ]; then
|
if [ -n "${BASH_VERSION-}" ]; then
|
||||||
if [ -f "$HOME/.bashrc" ]; then
|
if [ -f "$HOME/.bashrc" ]; then
|
||||||
DETECTED_PROFILE="$HOME/.bashrc"
|
DETECTED_PROFILE="$HOME/.bashrc"
|
||||||
elif [ -f "$HOME/.bash_profile" ]; then
|
elif [ -f "$HOME/.bash_profile" ]; then
|
||||||
DETECTED_PROFILE="$HOME/.bash_profile"
|
DETECTED_PROFILE="$HOME/.bash_profile"
|
||||||
fi
|
fi
|
||||||
elif [ "$SHELLTYPE" = "zsh" ]; then
|
elif [ -n "${ZSH_VERSION-}" ]; then
|
||||||
DETECTED_PROFILE="$HOME/.zshrc"
|
DETECTED_PROFILE="$HOME/.zshrc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -241,7 +252,7 @@ nvm_detect_profile() {
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$DETECTED_PROFILE" ]; then
|
if [ -n "$DETECTED_PROFILE" ]; then
|
||||||
echo "$DETECTED_PROFILE"
|
echo "$DETECTED_PROFILE"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -268,7 +279,7 @@ nvm_check_global_modules() {
|
|||||||
MODULE_COUNT="$(
|
MODULE_COUNT="$(
|
||||||
command printf %s\\n "$NPM_GLOBAL_MODULES" |
|
command printf %s\\n "$NPM_GLOBAL_MODULES" |
|
||||||
command sed -ne '1!p' | # Remove the first line
|
command sed -ne '1!p' | # Remove the first line
|
||||||
wc -l | tr -d ' ' # Count entries
|
wc -l | command tr -d ' ' # Count entries
|
||||||
)"
|
)"
|
||||||
|
|
||||||
if [ "${MODULE_COUNT}" != '0' ]; then
|
if [ "${MODULE_COUNT}" != '0' ]; then
|
||||||
@@ -294,6 +305,19 @@ nvm_check_global_modules() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
nvm_do_install() {
|
nvm_do_install() {
|
||||||
|
if [ -n "${NVM_DIR-}" ] && ! [ -d "${NVM_DIR}" ]; then
|
||||||
|
if [ -e "${NVM_DIR}" ]; then
|
||||||
|
echo >&2 "File \"${NVM_DIR}\" has the same name as installation directory."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${NVM_DIR}" = "$(nvm_default_install_dir)" ]; then
|
||||||
|
mkdir "${NVM_DIR}"
|
||||||
|
else
|
||||||
|
echo >&2 "You have \$NVM_DIR set to \"${NVM_DIR}\", but that directory does not exist. Check your profile files and environment."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
if [ -z "${METHOD}" ]; then
|
if [ -z "${METHOD}" ]; then
|
||||||
# Autodetect install method
|
# Autodetect install method
|
||||||
if nvm_has git; then
|
if nvm_has git; then
|
||||||
@@ -316,6 +340,9 @@ nvm_do_install() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
install_nvm_as_script
|
install_nvm_as_script
|
||||||
|
else
|
||||||
|
echo >&2 "The environment variable \$METHOD is set to \"${METHOD}\", which is not recognized as a valid installation method."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
@@ -323,10 +350,12 @@ nvm_do_install() {
|
|||||||
local NVM_PROFILE
|
local NVM_PROFILE
|
||||||
NVM_PROFILE="$(nvm_detect_profile)"
|
NVM_PROFILE="$(nvm_detect_profile)"
|
||||||
local PROFILE_INSTALL_DIR
|
local PROFILE_INSTALL_DIR
|
||||||
PROFILE_INSTALL_DIR="$(nvm_install_dir| sed "s:^$HOME:\$HOME:")"
|
PROFILE_INSTALL_DIR="$(nvm_install_dir | command sed "s:^$HOME:\$HOME:")"
|
||||||
|
|
||||||
SOURCE_STR="\nexport NVM_DIR=\"${PROFILE_INSTALL_DIR}\"\n[ -s \"\$NVM_DIR/nvm.sh\" ] && \\. \"\$NVM_DIR/nvm.sh\" # This loads nvm\n"
|
SOURCE_STR="\\nexport NVM_DIR=\"${PROFILE_INSTALL_DIR}\"\\n[ -s \"\$NVM_DIR/nvm.sh\" ] && \\. \"\$NVM_DIR/nvm.sh\" # This loads nvm\\n"
|
||||||
COMPLETION_STR="[ -s \"\$NVM_DIR/bash_completion\" ] && \\. \"\$NVM_DIR/bash_completion\" # This loads nvm bash_completion\n"
|
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
COMPLETION_STR='[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion\n'
|
||||||
BASH_OR_ZSH=false
|
BASH_OR_ZSH=false
|
||||||
|
|
||||||
if [ -z "${NVM_PROFILE-}" ] ; then
|
if [ -z "${NVM_PROFILE-}" ] ; then
|
||||||
@@ -339,6 +368,7 @@ nvm_do_install() {
|
|||||||
echo " OR"
|
echo " OR"
|
||||||
echo "=> Append the following lines to the correct file yourself:"
|
echo "=> Append the following lines to the correct file yourself:"
|
||||||
command printf "${SOURCE_STR}"
|
command printf "${SOURCE_STR}"
|
||||||
|
echo
|
||||||
else
|
else
|
||||||
if nvm_profile_is_bash_or_zsh "${NVM_PROFILE-}"; then
|
if nvm_profile_is_bash_or_zsh "${NVM_PROFILE-}"; then
|
||||||
BASH_OR_ZSH=true
|
BASH_OR_ZSH=true
|
||||||
@@ -387,7 +417,7 @@ nvm_reset() {
|
|||||||
unset -f nvm_has nvm_install_dir nvm_latest_version nvm_profile_is_bash_or_zsh \
|
unset -f nvm_has nvm_install_dir nvm_latest_version nvm_profile_is_bash_or_zsh \
|
||||||
nvm_source nvm_node_version nvm_download install_nvm_from_git nvm_install_node \
|
nvm_source nvm_node_version nvm_download install_nvm_from_git nvm_install_node \
|
||||||
install_nvm_as_script nvm_try_profile nvm_detect_profile nvm_check_global_modules \
|
install_nvm_as_script nvm_try_profile nvm_detect_profile nvm_check_global_modules \
|
||||||
nvm_do_install nvm_reset
|
nvm_do_install nvm_reset nvm_default_install_dir
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "_$NVM_ENV" = "_testing" ] || nvm_do_install
|
[ "_$NVM_ENV" = "_testing" ] || nvm_do_install
|
||||||
|
|||||||
14
package.json
14
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nvm",
|
"name": "nvm",
|
||||||
"version": "0.33.6",
|
"version": "0.35.0",
|
||||||
"description": "Node Version Manager - Simple bash script to manage multiple active node.js versions",
|
"description": "Node Version Manager - Simple bash script to manage multiple active node.js versions",
|
||||||
"directories": {
|
"directories": {
|
||||||
"test": "test"
|
"test": "test"
|
||||||
@@ -14,11 +14,13 @@
|
|||||||
"test/installation/node": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=installation_node test-$shell",
|
"test/installation/node": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=installation_node test-$shell",
|
||||||
"test/installation/iojs": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=installation_iojs test-$shell",
|
"test/installation/iojs": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=installation_iojs test-$shell",
|
||||||
"test/sourcing": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=sourcing test-$shell",
|
"test/sourcing": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=sourcing test-$shell",
|
||||||
"doctoc": "doctoc --title='## Table of Contents' --github README.md"
|
"doctoc": "doctoc --title='## Table of Contents' --github README.md",
|
||||||
|
"eclint": "eclint check $(git ls-tree --name-only HEAD | xargs)",
|
||||||
|
"dockerfile_lint": "dockerfile_lint"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/creationix/nvm.git"
|
"url": "git://github.com/nvm-sh/nvm.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"nvm",
|
"nvm",
|
||||||
@@ -30,10 +32,12 @@
|
|||||||
"author": "Tim Caswell <tim@creationix.com>",
|
"author": "Tim Caswell <tim@creationix.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/creationix/nvm/issues"
|
"url": "https://github.com/nvm-sh/nvm/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/creationix/nvm",
|
"homepage": "https://github.com/nvm-sh/nvm",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"dockerfile_lint": "^0.3.2",
|
||||||
|
"eclint": "^2.6.0",
|
||||||
"replace": "^0.3.0",
|
"replace": "^0.3.0",
|
||||||
"semver": "^5.0.1",
|
"semver": "^5.0.1",
|
||||||
"urchin": "^0.0.5",
|
"urchin": "^0.0.5",
|
||||||
|
|||||||
@@ -29,8 +29,16 @@ make_fake_node() {
|
|||||||
VERSION="${1-}"
|
VERSION="${1-}"
|
||||||
[ -n "${VERSION}" ] || return 1
|
[ -n "${VERSION}" ] || return 1
|
||||||
|
|
||||||
|
local FORMATTED_VERSION
|
||||||
|
FORMATTED_VERSION="$(nvm_format_version "${VERSION}")"
|
||||||
|
|
||||||
local BIN_PATH
|
local BIN_PATH
|
||||||
BIN_PATH="$(nvm_version_path "${VERSION}")/bin"
|
BIN_PATH="$(nvm_version_path "${FORMATTED_VERSION}")/bin"
|
||||||
|
[ "${BIN_PATH}" != "/bin" ] || {
|
||||||
|
echo >&2 'nvm_version_path was empty'
|
||||||
|
return 5
|
||||||
|
}
|
||||||
|
|
||||||
mkdir -p "${BIN_PATH}" || {
|
mkdir -p "${BIN_PATH}" || {
|
||||||
echo >&2 'unable to make bin dir'
|
echo >&2 'unable to make bin dir'
|
||||||
return 2
|
return 2
|
||||||
@@ -40,6 +48,11 @@ make_fake_node() {
|
|||||||
echo >&2 'unable to make fake node bin'
|
echo >&2 'unable to make fake node bin'
|
||||||
return 3
|
return 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nvm_is_version_installed "${FORMATTED_VERSION}" || {
|
||||||
|
echo >&2 'fake node is not installed'
|
||||||
|
return 4
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
make_fake_iojs() {
|
make_fake_iojs() {
|
||||||
@@ -47,8 +60,16 @@ make_fake_iojs() {
|
|||||||
VERSION="${1-}"
|
VERSION="${1-}"
|
||||||
[ -n "${VERSION}" ] || return 1
|
[ -n "${VERSION}" ] || return 1
|
||||||
|
|
||||||
|
local FORMATTED_VERSION
|
||||||
|
FORMATTED_VERSION="$(nvm_format_version "iojs-${VERSION}")"
|
||||||
|
|
||||||
local BIN_PATH
|
local BIN_PATH
|
||||||
BIN_PATH="$(nvm_version_path "iojs-${VERSION}")/bin"
|
BIN_PATH="$(nvm_version_path "${FORMATTED_VERSION}")/bin"
|
||||||
|
[ "${BIN_PATH}" != "/bin" ] || {
|
||||||
|
echo >&2 'nvm_version_path was empty'
|
||||||
|
return 5
|
||||||
|
}
|
||||||
|
|
||||||
mkdir -p "${BIN_PATH}" || {
|
mkdir -p "${BIN_PATH}" || {
|
||||||
echo >&2 'unable to make bin dir'
|
echo >&2 'unable to make bin dir'
|
||||||
return 2
|
return 2
|
||||||
@@ -62,6 +83,11 @@ make_fake_iojs() {
|
|||||||
echo >&2 'unable to make fake iojs bin'
|
echo >&2 'unable to make fake iojs bin'
|
||||||
return 3
|
return 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nvm_is_version_installed "${FORMATTED_VERSION}" || {
|
||||||
|
echo >&2 'fake iojs is not installed'
|
||||||
|
return 4
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
watch() {
|
watch() {
|
||||||
|
|||||||
@@ -24,4 +24,3 @@ EXPECTED_OUTPUT="Aliases in subdirectories are not supported."
|
|||||||
|
|
||||||
EXIT_CODE="$(nvm alias /bar baz >/dev/null 2>&1 ; echo $?)"
|
EXIT_CODE="$(nvm alias /bar baz >/dev/null 2>&1 ; echo $?)"
|
||||||
[ "$EXIT_CODE" = "1" ] || die "trying to create an alias starting with a slash should fail with code 1, got '$EXIT_CODE'"
|
[ "$EXIT_CODE" = "1" ] || die "trying to create an alias starting with a slash should fail with code 1, got '$EXIT_CODE'"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
|
||||||
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
|
OUTPUT="$(nvm unalias node 2>&1)"
|
||||||
|
EXPECTED_OUTPUT="node is a default (built-in) alias and cannot be deleted."
|
||||||
|
[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to remove a built-in alias should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm unalias stable 2>&1)"
|
||||||
|
EXPECTED_OUTPUT="stable is a default (built-in) alias and cannot be deleted."
|
||||||
|
[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to remove a built-in alias should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm unalias unstable 2>&1)"
|
||||||
|
EXPECTED_OUTPUT="unstable is a default (built-in) alias and cannot be deleted."
|
||||||
|
[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to remove a built-in alias should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm unalias iojs 2>&1)"
|
||||||
|
EXPECTED_OUTPUT="iojs is a default (built-in) alias and cannot be deleted."
|
||||||
|
[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to remove a built-in alias should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm unalias system 2>&1)"
|
||||||
|
EXPECTED_OUTPUT="system is a default (built-in) alias and cannot be deleted."
|
||||||
|
[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "trying to remove a built-in alias should fail with '$EXPECTED_OUTPUT', got '$OUTPUT'"
|
||||||
@@ -24,4 +24,3 @@ EXPECTED_OUTPUT="Aliases in subdirectories are not supported."
|
|||||||
|
|
||||||
EXIT_CODE="$(nvm unalias /bar >/dev/null 2>&1 ; echo $?)"
|
EXIT_CODE="$(nvm unalias /bar >/dev/null 2>&1 ; echo $?)"
|
||||||
[ "$EXIT_CODE" = "1" ] || die "trying to remove an alias starting with a slash should fail with code 1, got '$EXIT_CODE'"
|
[ "$EXIT_CODE" = "1" ] || die "trying to remove an alias starting with a slash should fail with code 1, got '$EXIT_CODE'"
|
||||||
|
|
||||||
|
|||||||
@@ -24,4 +24,3 @@ EXPECTED_IOJS="$(nvm_print_implicit_alias local iojs)"
|
|||||||
IOJS_VERSION="$(nvm_version "$EXPECTED_IOJS")"
|
IOJS_VERSION="$(nvm_version "$EXPECTED_IOJS")"
|
||||||
echo "$NVM_ALIAS_OUTPUT" | \grep -F "iojs -> $EXPECTED_IOJS (-> $IOJS_VERSION) (default)" \
|
echo "$NVM_ALIAS_OUTPUT" | \grep -F "iojs -> $EXPECTED_IOJS (-> $IOJS_VERSION) (default)" \
|
||||||
|| die "nvm alias did not contain the default local iojs version; got '$NVM_ALIAS_OUTPUT'"
|
|| die "nvm alias did not contain the default local iojs version; got '$NVM_ALIAS_OUTPUT'"
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ cleanup () {
|
|||||||
rm -rf "${NVM_DIR}/versions/io.js/v0.2.1"
|
rm -rf "${NVM_DIR}/versions/io.js/v0.2.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.8.1"
|
make_fake_node v0.8.1
|
||||||
mkdir "${NVM_DIR}/v0.9.1"
|
make_fake_node v0.9.1
|
||||||
mkdir -p "${NVM_DIR}/versions/io.js/v0.2.1"
|
make_fake_iojs v0.2.1
|
||||||
|
|
||||||
EXPECTED_STABLE="$(nvm_print_implicit_alias local stable)"
|
EXPECTED_STABLE="$(nvm_print_implicit_alias local stable)"
|
||||||
STABLE_VERSION="$(nvm_version "$EXPECTED_STABLE")"
|
STABLE_VERSION="$(nvm_version "$EXPECTED_STABLE")"
|
||||||
|
|||||||
@@ -7,4 +7,3 @@ echo three > ../../../../alias/two
|
|||||||
echo one > ../../../../alias/three
|
echo one > ../../../../alias/three
|
||||||
|
|
||||||
echo two > ../../../../alias/four
|
echo two > ../../../../alias/four
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,3 @@ rm -f ../../../../alias/two
|
|||||||
rm -f ../../../../alias/three
|
rm -f ../../../../alias/three
|
||||||
|
|
||||||
rm -f ../../../../alias/four
|
rm -f ../../../../alias/four
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
for i in $(seq 1 10)
|
for i in $(seq 1 10)
|
||||||
do
|
do
|
||||||
echo 0.0.$i > ../../../alias/test-stable-$i
|
echo 0.0.$i > ../../../alias/test-stable-$i
|
||||||
mkdir -p ../../../v0.0.$i
|
make_fake_node v0.0.$i
|
||||||
echo 0.1.$i > ../../../alias/test-unstable-$i
|
echo 0.1.$i > ../../../alias/test-unstable-$i
|
||||||
mkdir -p ../../../v0.1.$i
|
make_fake_node v0.1.$i
|
||||||
echo 0.2.$i > ../../../alias/test-iojs-$i
|
echo 0.2.$i > ../../../alias/test-iojs-$i
|
||||||
mkdir -p ../../../versions/io.js/v0.2.$i
|
make_fake_iojs v0.2.$i
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir -p "${NVM_DIR}/v0.0.2"
|
make_fake_node v0.0.2
|
||||||
mkdir -p "${NVM_DIR}/v0.0.20"
|
make_fake_node v0.0.20
|
||||||
mkdir -p "${NVM_DIR}/versions/node/v0.12.0"
|
make_fake_node v0.12.0
|
||||||
|
|
||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
rmdir ../../../v0.0.2 >/dev/null 2>&1
|
rm -rf ../../../v0.0.2
|
||||||
rmdir ../../../v0.0.20 >/dev/null 2>&1
|
rm -rf ../../../v0.0.20
|
||||||
rmdir ../../../v0.12.0 >/dev/null 2>&1
|
rm -rf ../../../v0.12.0
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
|
die () { echo "$@" ; unset -f nvm_ls nvm_list_aliases; exit 1; }
|
||||||
|
|
||||||
|
make_fake_node v0.12.87 || die 'fake v0.12.87 could not be made'
|
||||||
|
make_fake_node v0.12.9 || die 'fake v0.12.9 could not be made'
|
||||||
|
make_fake_iojs v0.1.2 || die 'fake iojs-v0.1.2 could not be made'
|
||||||
|
make_fake_iojs v0.10.2 || die 'fake iojs-v0.10.2 could not be made'
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
nvm_list_aliases() {
|
||||||
|
echo 'sd-6'
|
||||||
|
}
|
||||||
|
# sanity check
|
||||||
|
OUTPUT="$(nvm alias)"
|
||||||
|
EXPECTED_OUTPUT='sd-6'
|
||||||
|
[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "1: expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<"
|
||||||
|
|
||||||
|
nvm_ls() {
|
||||||
|
echo v0.12.87
|
||||||
|
echo v0.12.9
|
||||||
|
echo iojs-v0.1.2
|
||||||
|
echo iojs-v0.10.2
|
||||||
|
}
|
||||||
|
OUTPUT="$(nvm ls --no-colors --no-alias)"
|
||||||
|
EXPECTED_OUTPUT=" v0.12.87 *
|
||||||
|
v0.12.9 *
|
||||||
|
iojs-v0.1.2 *
|
||||||
|
iojs-v0.10.2 *"
|
||||||
|
[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "2: expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<"
|
||||||
15
test/fast/Listing versions/Running "nvm ls --no-alias" with a pattern errors
Executable file
15
test/fast/Listing versions/Running "nvm ls --no-alias" with a pattern errors
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
|
die () { echo "$@" ; unset -f nvm_ls nvm_list_aliases; exit 1; }
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
OUTPUT="$(nvm ls --no-colors --no-alias pattern 2>&1 ||:)"
|
||||||
|
EXPECTED_OUTPUT='`--no-alias` is not supported when a pattern is provided.'
|
||||||
|
EXIT_CODE="$(nvm ls --no-colors --no-alias pattern >/dev/null 2>&1 || echo $?)"
|
||||||
|
[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<"
|
||||||
|
|
||||||
|
[ "${EXIT_CODE}" = 55 ] || die "expected 55; got >${EXIT_CODE}<"
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.0.2"
|
make_fake_node v0.0.2
|
||||||
mkdir "${NVM_DIR}/v0.0.20"
|
make_fake_node v0.0.20
|
||||||
|
|
||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.1.3"
|
make_fake_node v0.1.3
|
||||||
mkdir "${NVM_DIR}/v0.2.3"
|
make_fake_node v0.2.3
|
||||||
mkdir "${NVM_DIR}/v0.20.3"
|
make_fake_node v0.20.3
|
||||||
|
|
||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.2.3"
|
make_fake_node v0.2.3
|
||||||
mkdir "${NVM_DIR}/v0.3.3"
|
make_fake_node v0.3.3
|
||||||
|
|
||||||
EXPECTED_STABLE="$(nvm_print_implicit_alias local stable)"
|
EXPECTED_STABLE="$(nvm_print_implicit_alias local stable)"
|
||||||
STABLE_VERSION="$(nvm_version "$EXPECTED_STABLE")"
|
STABLE_VERSION="$(nvm_version "$EXPECTED_STABLE")"
|
||||||
@@ -19,10 +20,10 @@ nvm ls stable | \grep "$STABLE_VERSION" >/dev/null \
|
|||||||
nvm ls unstable | \grep "$UNSTABLE_VERSION" >/dev/null \
|
nvm ls unstable | \grep "$UNSTABLE_VERSION" >/dev/null \
|
||||||
|| die "expected 'nvm ls unstable' to give $UNSTABLE_VERSION, got $(nvm ls unstable)"
|
|| die "expected 'nvm ls unstable' to give $UNSTABLE_VERSION, got $(nvm ls unstable)"
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.1.2"
|
make_fake_node v0.1.4
|
||||||
nvm alias stable 0.1
|
nvm alias stable 0.1
|
||||||
|
|
||||||
nvm ls stable | \grep -v "$STABLE_VERSION" >/dev/null \
|
nvm ls stable | \grep -v "$STABLE_VERSION" >/dev/null \
|
||||||
|| die "'nvm ls stable' contained $STABLE_VERSION instead of v0.1.2"
|
|| die "'nvm ls stable' contained $STABLE_VERSION instead of v0.1.4"
|
||||||
nvm ls stable | \grep v0.1.2 >/dev/null \
|
nvm ls stable | \grep v0.1.4 >/dev/null \
|
||||||
|| die "'nvm ls stable' did not contain v0.1.2"
|
|| die "'nvm ls stable' did not contain v0.1.4"
|
||||||
|
|||||||
@@ -3,13 +3,14 @@
|
|||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir -p "${NVM_DIR}/v0.0.1"
|
make_fake_node v0.0.1
|
||||||
mkdir -p "${NVM_DIR}/v0.0.3"
|
make_fake_node v0.0.3
|
||||||
mkdir -p "${NVM_DIR}/v0.0.9"
|
make_fake_node v0.0.9
|
||||||
mkdir -p "${NVM_DIR}/v0.3.1"
|
make_fake_node v0.3.1
|
||||||
mkdir -p "${NVM_DIR}/v0.3.3"
|
make_fake_node v0.3.3
|
||||||
mkdir -p "${NVM_DIR}/v0.3.9"
|
make_fake_node v0.3.9
|
||||||
|
|
||||||
nvm_has_system_node() { return 0; }
|
nvm_has_system_node() { return 0; }
|
||||||
nvm ls system | grep system 2>&1 > /dev/null
|
nvm ls system | grep system 2>&1 > /dev/null
|
||||||
|
|||||||
35
test/fast/Listing versions/Running "nvm ls" calls into nvm_alias
Executable file
35
test/fast/Listing versions/Running "nvm ls" calls into nvm_alias
Executable file
@@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
|
die () { echo "$@" ; unset -f nvm_ls nvm_list_aliases; exit 1; }
|
||||||
|
|
||||||
|
make_fake_node v0.12.87 || die 'fake v0.12.87 could not be made'
|
||||||
|
make_fake_node v0.12.9 || die 'fake v0.12.9 could not be made'
|
||||||
|
make_fake_iojs v0.1.2 || die 'fake iojs-v0.1.2 could not be made'
|
||||||
|
make_fake_iojs v0.10.2 || die 'fake iojs-v0.10.2 could not be made'
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
nvm_list_aliases() {
|
||||||
|
echo 'sd-6'
|
||||||
|
}
|
||||||
|
# sanity check
|
||||||
|
OUTPUT="$(nvm alias)"
|
||||||
|
EXPECTED_OUTPUT='sd-6'
|
||||||
|
[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "1: expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<"
|
||||||
|
|
||||||
|
nvm_ls() {
|
||||||
|
echo v0.12.87
|
||||||
|
echo v0.12.9
|
||||||
|
echo iojs-v0.1.2
|
||||||
|
echo iojs-v0.10.2
|
||||||
|
}
|
||||||
|
OUTPUT="$(nvm ls --no-colors)"
|
||||||
|
EXPECTED_OUTPUT=" v0.12.87 *
|
||||||
|
v0.12.9 *
|
||||||
|
iojs-v0.1.2 *
|
||||||
|
iojs-v0.10.2 *
|
||||||
|
sd-6"
|
||||||
|
[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "2: expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<"
|
||||||
@@ -1,24 +1,44 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.0.1"
|
die () { echo "$@" ; exit 1; }
|
||||||
mkdir "${NVM_DIR}/v0.0.3"
|
|
||||||
mkdir "${NVM_DIR}/v0.0.9"
|
make_fake_node v0.0.1
|
||||||
mkdir "${NVM_DIR}/v0.3.1"
|
make_fake_node v0.0.3
|
||||||
mkdir "${NVM_DIR}/v0.3.3"
|
make_fake_node v0.0.9
|
||||||
mkdir "${NVM_DIR}/v0.3.9"
|
make_fake_node v0.3.1
|
||||||
mkdir -p "${NVM_DIR}/versions/node/v0.12.87"
|
make_fake_node v0.3.3
|
||||||
mkdir -p "${NVM_DIR}/versions/node/v0.12.9"
|
make_fake_node v0.3.9
|
||||||
mkdir -p "${NVM_DIR}/versions/io.js/v0.1.2"
|
make_fake_node v0.12.87
|
||||||
mkdir -p "${NVM_DIR}/versions/io.js/v0.10.2"
|
make_fake_node v0.12.9
|
||||||
|
make_fake_iojs v0.1.2
|
||||||
|
make_fake_iojs v0.10.2
|
||||||
|
|
||||||
# The result should contain the version numbers.
|
# The result should contain the version numbers.
|
||||||
nvm ls | grep v0.0.1 >/dev/null &&
|
nvm ls | grep v0.0.1 >/dev/null || die "v0.0.1 not found in: $(nvm ls)"
|
||||||
nvm ls | grep v0.0.3 >/dev/null &&
|
nvm ls | grep v0.0.3 >/dev/null || die "v0.0.3 not found in: $(nvm ls)"
|
||||||
nvm ls | grep v0.0.9 >/dev/null &&
|
nvm ls | grep v0.0.9 >/dev/null || die "v0.0.9 not found in: $(nvm ls)"
|
||||||
nvm ls | grep v0.3.1 >/dev/null &&
|
nvm ls | grep v0.3.1 >/dev/null || die "v0.3.1 not found in: $(nvm ls)"
|
||||||
nvm ls | grep v0.3.3 >/dev/null &&
|
nvm ls | grep v0.3.3 >/dev/null || die "v0.3.3 not found in: $(nvm ls)"
|
||||||
nvm ls | grep v0.3.9 >/dev/null &&
|
nvm ls | grep v0.3.9 >/dev/null || die "v0.3.9 not found in: $(nvm ls)"
|
||||||
nvm ls | grep v0.12.87 >/dev/null &&
|
nvm ls | grep v0.12.87 >/dev/null || die "v0.12.87 not found in: $(nvm ls)"
|
||||||
nvm ls | grep iojs-v0.1.2 >/dev/null
|
nvm ls | grep iojs-v0.1.2 >/dev/null || die "iojs-v0.1.2 not found in: $(nvm ls)"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm_ls)"
|
||||||
|
EXPECTED_OUTPUT="v0.0.1
|
||||||
|
v0.0.3
|
||||||
|
v0.0.9
|
||||||
|
iojs-v0.1.2
|
||||||
|
v0.3.1
|
||||||
|
v0.3.3
|
||||||
|
v0.3.9
|
||||||
|
iojs-v0.10.2
|
||||||
|
v0.12.9
|
||||||
|
v0.12.87"
|
||||||
|
if nvm_has_system_node || nvm_has_system_iojs; then
|
||||||
|
EXPECTED_OUTPUT="${EXPECTED_OUTPUT}
|
||||||
|
system"
|
||||||
|
fi
|
||||||
|
[ "${OUTPUT-}" = "${EXPECTED_OUTPUT-}" ] || die "expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<"
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.1.3"
|
make_fake_node v0.1.3
|
||||||
mkdir "${NVM_DIR}/v0.2.3"
|
make_fake_node v0.2.3
|
||||||
|
|
||||||
[ -z `nvm ls | grep '^ *\.'` ]
|
[ -z `nvm ls | grep '^ *\.'` ]
|
||||||
# The result should contain only the appropriate version numbers.
|
# The result should contain only the appropriate version numbers.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.1.3"
|
make_fake_node v0.1.3
|
||||||
mkdir "${NVM_DIR}/v0.2.3"
|
make_fake_node v0.2.3
|
||||||
mkdir -p "${NVM_DIR}/versions/node"
|
|
||||||
|
|
||||||
[ -z "$(nvm ls | \grep 'versions')" ]
|
[ -z "$(nvm ls | \grep 'versions')" ]
|
||||||
# The result should contain only the appropriate version numbers.
|
# The result should contain only the appropriate version numbers.
|
||||||
|
|||||||
@@ -3,13 +3,14 @@
|
|||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir -p "${NVM_DIR}/v0.0.1"
|
make_fake_node v0.0.1
|
||||||
mkdir -p "${NVM_DIR}/v0.0.3"
|
make_fake_node v0.0.3
|
||||||
mkdir -p "${NVM_DIR}/v0.0.9"
|
make_fake_node v0.0.9
|
||||||
mkdir -p "${NVM_DIR}/v0.3.1"
|
make_fake_node v0.3.1
|
||||||
mkdir -p "${NVM_DIR}/v0.3.3"
|
make_fake_node v0.3.3
|
||||||
mkdir -p "${NVM_DIR}/v0.3.9"
|
make_fake_node v0.3.9
|
||||||
|
|
||||||
nvm_has_system_node() { return 0; }
|
nvm_has_system_node() { return 0; }
|
||||||
nvm ls | grep system 2>&1 > /dev/null
|
nvm ls | grep system 2>&1 > /dev/null
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir -p "${NVM_DIR}/versions/node/v0.12.1"
|
make_fake_node v0.12.1
|
||||||
mkdir "${NVM_DIR}/v0.1.3"
|
make_fake_node v0.1.3
|
||||||
|
|
||||||
nvm ls 0.12 | grep v0.12.1 || die '"nvm ls" did not list a version in the versions/ directory'
|
nvm ls 0.12 | grep v0.12.1 || die '"nvm ls" did not list a version in the versions/ directory'
|
||||||
nvm ls 0.1 | grep v0.1.3 || die '"nvm ls" did not list a version not in the versions/ directory'
|
nvm ls 0.1 | grep v0.1.3 || die '"nvm ls" did not list a version not in the versions/ directory'
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.1.2"
|
make_fake_node v0.1.2
|
||||||
|
|
||||||
nvm ls v0.1 | grep v0.1.2 &&
|
nvm ls v0.1 | grep v0.1.2 &&
|
||||||
nvm ls v0.1.2 | grep v0.1.2 &&
|
nvm ls v0.1.2 | grep v0.1.2 &&
|
||||||
|
|||||||
23
test/fast/Listing versions/Running "nvm ls" with nounset should not fail.
Executable file
23
test/fast/Listing versions/Running "nvm ls" with nounset should not fail.
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
|
make_fake_node v0.12.34 || die 'fake v0.12.34 could not be made'
|
||||||
|
|
||||||
|
# Enable no unset variable
|
||||||
|
set -u
|
||||||
|
|
||||||
|
# Try an alias that does not exist
|
||||||
|
output=$(nvm ls 99 2>&1 1>/dev/null || true)
|
||||||
|
test -z "${output}" || die "1: expected empty; got >${output}"
|
||||||
|
|
||||||
|
# Try a version that does not exist
|
||||||
|
output=$(nvm ls 0.12.00 2>&1 1>/dev/null || true)
|
||||||
|
test -z "${output}" || die "2: expected empty; got >${output}"
|
||||||
|
|
||||||
|
# Try a version that does exist
|
||||||
|
output=$(nvm ls 0.12.34 2>&1 1>/dev/null || true)
|
||||||
|
test -z "${output}" || die "3: expected empty; got >${output}"
|
||||||
@@ -1,17 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.0.1"
|
make_fake_node v0.0.1
|
||||||
mkdir "${NVM_DIR}/v0.0.3"
|
make_fake_node v0.0.3
|
||||||
mkdir "${NVM_DIR}/v0.0.9"
|
make_fake_node v0.0.9
|
||||||
mkdir "${NVM_DIR}/v0.3.1"
|
make_fake_node v0.3.1
|
||||||
mkdir "${NVM_DIR}/v0.3.3"
|
make_fake_node v0.3.3
|
||||||
mkdir "${NVM_DIR}/v0.3.9"
|
make_fake_node v0.3.9
|
||||||
mkdir -p "${NVM_DIR}/versions/node/v0.12.87"
|
make_fake_node v0.12.87
|
||||||
mkdir -p "${NVM_DIR}/versions/node/v0.12.9"
|
make_fake_node v0.12.9
|
||||||
mkdir -p "${NVM_DIR}/versions/io.js/v0.1.2"
|
make_fake_iojs v0.1.2
|
||||||
mkdir -p "${NVM_DIR}/versions/io.js/v0.10.2"
|
make_fake_iojs v0.10.2
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,16 @@
|
|||||||
rmdir ../../../v0.0.1 >/dev/null 2>&1
|
rm -rf ../../../v0.0.1
|
||||||
rmdir ../../../v0.0.2 >/dev/null 2>&1
|
rm -rf ../../../v0.0.2
|
||||||
rmdir ../../../v0.0.3 >/dev/null 2>&1
|
rm -rf ../../../v0.0.3
|
||||||
rmdir ../../../v0.0.9 >/dev/null 2>&1
|
rm -rf ../../../v0.0.9
|
||||||
rmdir ../../../v0.0.20 >/dev/null 2>&1
|
rm -rf ../../../v0.0.20
|
||||||
rmdir ../../../v0.1.2 >/dev/null 2>&1
|
rm -rf ../../../v0.1.2
|
||||||
rmdir ../../../v0.1.3 >/dev/null 2>&1
|
rm -rf ../../../v0.1.3
|
||||||
rmdir ../../../v0.2.3 >/dev/null 2>&1
|
rm -rf ../../../v0.1.4
|
||||||
rmdir ../../../v0.3.1 >/dev/null 2>&1
|
rm -rf ../../../v0.2.3
|
||||||
rmdir ../../../v0.3.3 >/dev/null 2>&1
|
rm -rf ../../../v0.3.1
|
||||||
rmdir ../../../v0.3.9 >/dev/null 2>&1
|
rm -rf ../../../v0.3.3
|
||||||
rmdir ../../../v0.20.3 >/dev/null 2>&1
|
rm -rf ../../../v0.3.9
|
||||||
rmdir ../../../versions >/dev/null 2>&1
|
rm -rf ../../../v0.20.3
|
||||||
unalias nvm_has_system_node >/dev/null 2>&1
|
rm -rf ../../../versions
|
||||||
rm -f ../../../alias/stable >/dev/null 2>&1
|
rm -f ../../../alias/stable
|
||||||
rm -f ../../../alias/unstable >/dev/null 2>&1
|
rm -f ../../../alias/unstable
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
mkdir -p ../../v0.2.3
|
|
||||||
|
|
||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
[ `expr $PATH : ".*v0.2.3/.*/bin.*"` = 0 ] || echo "WARNING: Unexpectedly found v0.2.3 already active" >&2
|
|
||||||
|
|
||||||
\. ../../nvm.sh
|
\. ../../nvm.sh
|
||||||
|
\. ../common.sh
|
||||||
|
|
||||||
|
make_fake_node v0.2.3
|
||||||
|
|
||||||
|
[ `expr $PATH : ".*v0.2.3/.*/bin.*"` = 0 ] || echo "WARNING: Unexpectedly found v0.2.3 already active" >&2
|
||||||
|
|
||||||
nvm use --delete-prefix v0.2.3 || die "Failed to activate v0.2.3"
|
nvm use --delete-prefix v0.2.3 || die "Failed to activate v0.2.3"
|
||||||
[ `expr "$PATH" : ".*v0.2.3/.*/bin.*"` != 0 ] || die "PATH not set up properly"
|
[ `expr "$PATH" : ".*v0.2.3/.*/bin.*"` != 0 ] || die "PATH not set up properly"
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ cleanup () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
\. ../../nvm.sh
|
\. ../../nvm.sh
|
||||||
|
\. ../common.sh
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.10.4"
|
make_fake_node v0.10.4
|
||||||
|
|
||||||
nvm deactivate >/dev/null 2>&1
|
nvm deactivate >/dev/null 2>&1
|
||||||
|
|
||||||
@@ -39,4 +40,18 @@ set -e
|
|||||||
[ $INSTALL_EXIT_CODE -eq 4 ] \
|
[ $INSTALL_EXIT_CODE -eq 4 ] \
|
||||||
|| die ""nvm install --reinstall-packages-from" should exit with code 4 when given the same version, got $INSTALL_EXIT_CODE"
|
|| die ""nvm install --reinstall-packages-from" should exit with code 4 when given the same version, got $INSTALL_EXIT_CODE"
|
||||||
|
|
||||||
|
set +ex # needed for stderr
|
||||||
|
INSTALL_ERROR_MSG="$(nvm install v0.10.5 --reinstall-packages-from 2>&1)"
|
||||||
|
set -ex
|
||||||
|
EXPECTED_ERROR_MSG='If --reinstall-packages-from is provided, it must point to an installed version of node using `=`.'
|
||||||
|
[ "~$INSTALL_ERROR_MSG" = "~$EXPECTED_ERROR_MSG" ] \
|
||||||
|
|| die ""nvm install --reinstall-packages-from" should fail when given an uninstalled version: expected '$EXPECTED_ERROR_MSG', got '$INSTALL_ERROR_MSG'"
|
||||||
|
|
||||||
|
set +ex # needed for stderr
|
||||||
|
INSTALL_ERROR_MSG="$(nvm install v0.10.5 --reinstall-packages-from= 2>&1)"
|
||||||
|
set -ex
|
||||||
|
EXPECTED_ERROR_MSG="If --reinstall-packages-from is provided, it must point to an installed version of node."
|
||||||
|
[ "~$INSTALL_ERROR_MSG" = "~$EXPECTED_ERROR_MSG" ] \
|
||||||
|
|| die ""nvm install --reinstall-packages-from" should fail when given an uninstalled version: expected '$EXPECTED_ERROR_MSG', got '$INSTALL_ERROR_MSG'"
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
cd ../..
|
\. ../../nvm.sh
|
||||||
mkdir v0.0.1
|
\. ../common.sh
|
||||||
mkdir src/node-v0.0.1
|
|
||||||
|
make_fake_node v0.0.1
|
||||||
|
|
||||||
. ./nvm.sh
|
|
||||||
nvm uninstall v0.0.1
|
nvm uninstall v0.0.1
|
||||||
|
|
||||||
[ ! -d 'v0.0.1' ] && [ ! -d 'src/node-v0.0.1/files' ]
|
[ ! -d 'v0.0.1' ]
|
||||||
|
|||||||
@@ -2,13 +2,11 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
cd ../..
|
\. ../../nvm.sh
|
||||||
mkdir v0.0.1
|
\. ../common.sh
|
||||||
mkdir src/node-v0.0.1
|
|
||||||
|
|
||||||
sudo touch v0.0.1/sudo
|
make_fake_node v0.0.1
|
||||||
|
sudo touch ""$(nvm_version_path v0.0.1)"/sudo"
|
||||||
. ./nvm.sh
|
|
||||||
|
|
||||||
RETURN_MESSAGE="$(nvm uninstall v0.0.1 2>&1 || echo)"
|
RETURN_MESSAGE="$(nvm uninstall v0.0.1 2>&1 || echo)"
|
||||||
CHECK_FOR="Cannot uninstall, incorrect permissions on installation folder"
|
CHECK_FOR="Cannot uninstall, incorrect permissions on installation folder"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -ex
|
set -eux
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
unset -f nvm_has_system_node nvm_print_npm_version
|
unset -f nvm_has_system_node nvm_print_npm_version
|
||||||
|
|||||||
@@ -4,11 +4,12 @@ set -ex
|
|||||||
|
|
||||||
export NVM_SYMLINK_CURRENT=true
|
export NVM_SYMLINK_CURRENT=true
|
||||||
\. ../../nvm.sh
|
\. ../../nvm.sh
|
||||||
|
\. ../common.sh
|
||||||
|
|
||||||
rm -rf "${NVM_DIR}/v0.10.29"
|
rm -rf "${NVM_DIR}/v0.10.29"
|
||||||
mkdir "${NVM_DIR}/v0.10.29"
|
make_fake_node v0.10.29
|
||||||
nvm use --delete-prefix 0.10.29
|
nvm use --delete-prefix 0.10.29
|
||||||
rmdir "${NVM_DIR}/v0.10.29"
|
rm -rf "${NVM_DIR}/v0.10.29"
|
||||||
|
|
||||||
if [ ! -L "${NVM_DIR}/current" ];then
|
if [ ! -L "${NVM_DIR}/current" ];then
|
||||||
echo "Expected 'current' symlink to be created!"
|
echo "Expected 'current' symlink to be created!"
|
||||||
@@ -23,9 +24,9 @@ if [ "$(basename "${oldLink}")" != 'v0.10.29' ];then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf "${NVM_DIR}/v0.11.13"
|
rm -rf "${NVM_DIR}/v0.11.13"
|
||||||
mkdir "${NVM_DIR}/v0.11.13"
|
make_fake_node v0.11.13
|
||||||
nvm use --delete-prefix 0.11.13
|
nvm use --delete-prefix 0.11.13
|
||||||
rmdir "${NVM_DIR}/v0.11.13"
|
rm -rf "${NVM_DIR}/v0.11.13"
|
||||||
|
|
||||||
newLink="$(readlink "${NVM_DIR}/current")"
|
newLink="$(readlink "${NVM_DIR}/current")"
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
\. ../../nvm.sh
|
\. ../../nvm.sh
|
||||||
|
\. ../common.sh
|
||||||
|
|
||||||
TEST_NODE_VERSION="v0.10.29"
|
TEST_NODE_VERSION="v0.10.29"
|
||||||
|
|
||||||
@@ -35,9 +36,9 @@ cleanup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
runNvmUse() {
|
runNvmUse() {
|
||||||
mkdir "${NVM_DIR}/${TEST_NODE_VERSION}"
|
make_fake_node "$TEST_NODE_VERSION"
|
||||||
nvm use --delete-prefix "${TEST_NODE_VERSION}" > /dev/null 2>&1
|
nvm use --delete-prefix "${TEST_NODE_VERSION}" > /dev/null 2>&1
|
||||||
rmdir "${NVM_DIR}/${TEST_NODE_VERSION}"
|
rm -rf "${NVM_DIR}/${TEST_NODE_VERSION}"
|
||||||
}
|
}
|
||||||
|
|
||||||
isCurrentSymlinkPresent() {
|
isCurrentSymlinkPresent() {
|
||||||
|
|||||||
33
test/fast/Running "nvm use" should drop CR char automatically.
Executable file
33
test/fast/Running "nvm use" should drop CR char automatically.
Executable file
@@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
die () { echo "$@" ; cleanup ; exit 1; }
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
unset VERSION1 VERSION2 VERSION3
|
||||||
|
rm .nvmrc
|
||||||
|
}
|
||||||
|
|
||||||
|
\. ../../nvm.sh
|
||||||
|
|
||||||
|
# normal .nvmrc
|
||||||
|
printf '0.999.0\n' > .nvmrc
|
||||||
|
nvm_rc_version
|
||||||
|
VERSION1="${NVM_RC_VERSION}"
|
||||||
|
|
||||||
|
# .nvmrc with CR char
|
||||||
|
printf '0.999.0\r\n' > .nvmrc
|
||||||
|
nvm_rc_version
|
||||||
|
VERSION2="${NVM_RC_VERSION}"
|
||||||
|
|
||||||
|
[ "${VERSION1}" = "${VERSION2}" ]
|
||||||
|
|
||||||
|
# .nvmrc without any newline char
|
||||||
|
printf '0.999.0' > .nvmrc
|
||||||
|
nvm_rc_version
|
||||||
|
VERSION3="${NVM_RC_VERSION}"
|
||||||
|
|
||||||
|
[ "${VERSION1}" = "${VERSION3}" ]
|
||||||
|
|
||||||
|
cleanup
|
||||||
@@ -1,32 +1,100 @@
|
|||||||
version date files npm v8 uv zlib openssl modules lts
|
version date files npm v8 uv zlib openssl modules lts
|
||||||
v7.7.2 2017-03-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 -
|
v10.2.0 2018-05-23 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,osx-x64-pkg,osx-x64-tar,src,sunos-x64,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.6.346.32 1.20.3 1.2.11 1.1.0h 64 -
|
||||||
v7.7.1 2017-03-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 -
|
v10.1.0 2018-05-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,osx-x64-pkg,osx-x64-tar,src,sunos-x64,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.6.346.27 1.20.2 1.2.11 1.1.0h 64 -
|
||||||
v7.7.0 2017-02-28 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 -
|
v10.0.0 2018-04-24 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,osx-x64-pkg,osx-x64-tar,src,sunos-x64,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.6.346.24 1.20.2 1.2.11 1.1.0h 64 -
|
||||||
v7.6.0 2017-02-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 4.1.2 5.5.372.40 1.11.0 1.2.11 1.0.2k 51 -
|
v9.11.1 2018-04-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2o 59 -
|
||||||
v7.5.0 2017-01-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 4.1.2 5.4.500.48 1.10.2 1.2.8 1.0.2k 51 -
|
v9.11.0 2018-04-04 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2o 59 -
|
||||||
v7.4.0 2017-01-04 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 4.0.5 5.4.500.45 1.10.1 1.2.8 1.0.2j 51 -
|
v9.10.1 2018-03-29 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2o 59 -
|
||||||
v7.3.0 2016-12-20 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.10 5.4.500.45 1.10.1 1.2.8 1.0.2j 51 -
|
v9.10.0 2018-03-28 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2o 59 -
|
||||||
v7.2.1 2016-12-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.10 5.4.500.44 1.10.1 1.2.8 1.0.2j 51 -
|
v9.9.0 2018-03-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2n 59 -
|
||||||
v7.2.0 2016-11-22 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.9 5.4.500.43 1.10.1 1.2.8 1.0.2j 51 -
|
v9.8.0 2018-03-07 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2n 59 -
|
||||||
v7.1.0 2016-11-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.9 5.4.500.36 1.10.0 1.2.8 1.0.2j 51 -
|
v9.7.1 2018-03-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2n 59 -
|
||||||
v7.0.0 2016-10-25 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.8 5.4.500.36 1.9.1 1.2.8 1.0.2j 51 -
|
v9.7.0 2018-03-01 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.2 1.2.11 1.0.2n 59 -
|
||||||
v6.10.0 2017-02-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.10 5.1.281.93 1.9.1 1.2.8 1.0.2k 48 Boron
|
v9.6.1 2018-02-23 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.1 1.2.11 1.0.2n 59 -
|
||||||
v6.9.5 2017-01-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.10 5.1.281.89 1.9.1 1.2.8 1.0.2k 48 Boron
|
v9.6.0 2018-02-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.1 1.2.11 1.0.2n 59 -
|
||||||
v6.9.4 2017-01-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.10 5.1.281.89 1.9.1 1.2.8 1.0.2j 48 Boron
|
v9.5.0 2018-01-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.19.1 1.2.11 1.0.2n 59 -
|
||||||
v6.9.3 2017-01-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.10 5.1.281.89 1.9.1 1.2.8 1.0.2j 48 Boron
|
v9.4.0 2018-01-10 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.46 1.18.0 1.2.11 1.0.2n 59 -
|
||||||
v6.9.2 2016-12-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.9 5.1.281.88 1.9.1 1.2.8 1.0.2j 48 Boron
|
v9.3.0 2017-12-12 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.2.414.46 1.18.0 1.2.11 1.0.2n 59 -
|
||||||
v6.9.1 2016-10-19 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 Boron
|
v9.2.1 2017-12-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.2.414.44 1.16.1 1.2.11 1.0.2n 59 -
|
||||||
v6.9.0 2016-10-18 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 Boron
|
v9.2.0 2017-11-14 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.2.414.44 1.16.1 1.2.11 1.0.2m 59 -
|
||||||
v6.8.1 2016-10-14 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 -
|
v9.1.0 2017-11-07 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.2.414.32 1.15.0 1.2.11 1.0.2m 59 -
|
||||||
v6.8.0 2016-10-12 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 -
|
v9.0.0 2017-10-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.2.414.32 1.15.0 1.2.11 1.0.2l 59 -
|
||||||
v6.7.0 2016-09-27 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.3 5.1.281.83 1.9.1 1.2.8 1.0.2j 48 -
|
v8.11.2 2018-05-15 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.54 1.19.1 1.2.11 1.0.2o 57 Carbon
|
||||||
v6.6.0 2016-09-14 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.3 5.1.281.83 1.9.1 1.2.8 1.0.2h 48 -
|
v8.11.1 2018-03-29 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.50 1.19.1 1.2.11 1.0.2o 57 Carbon
|
||||||
v6.5.0 2016-08-26 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.3 5.1.281.81 1.9.1 1.2.8 1.0.2h 48 -
|
v8.11.0 2018-03-28 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.50 1.19.1 1.2.11 1.0.2o 57 Carbon
|
||||||
v6.4.0 2016-08-12 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.3 5.0.71.60 1.9.1 1.2.8 1.0.2h 48 -
|
v8.10.0 2018-03-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.2.414.50 1.19.1 1.2.11 1.0.2n 57 Carbon
|
||||||
v6.3.1 2016-07-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.3 5.0.71.57 1.9.1 1.2.8 1.0.2h 48 -
|
v8.9.4 2018-01-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.6.0 6.1.534.50 1.15.0 1.2.11 1.0.2n 57 Carbon
|
||||||
v6.3.0 2016-07-06 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.10.3 5.0.71.52 1.9.1 1.2.8 1.0.2h 48 -
|
v8.9.3 2017-12-07 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.1.534.48 1.15.0 1.2.11 1.0.2n 57 Carbon
|
||||||
v6.2.2 2016-06-16 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.9.5 5.0.71.52 1.9.1 1.2.8 1.0.2h 48 -
|
v8.9.2 2017-12-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.1.534.48 1.15.0 1.2.11 1.0.2m 57 Carbon
|
||||||
v6.2.1 2016-06-02 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.9.3 5.0.71.52 1.9.1 1.2.8 1.0.2h 48 -
|
v8.9.1 2017-11-07 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.1.534.47 1.15.0 1.2.11 1.0.2m 57 Carbon
|
||||||
|
v8.9.0 2017-10-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.5.1 6.1.534.46 1.15.0 1.2.11 1.0.2l 57 Carbon
|
||||||
|
v8.8.1 2017-10-25 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.4.2 6.1.534.42 1.15.0 1.2.11 1.0.2l 57 -
|
||||||
|
v8.8.0 2017-10-24 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.4.2 6.1.534.42 1.15.0 1.2.11 1.0.2l 57 -
|
||||||
|
v8.7.0 2017-10-11 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.4.2 6.1.534.42 1.15.0 1.2.11 1.0.2l 57 -
|
||||||
|
v8.6.0 2017-09-26 aix-ppc64,headers,linux-arm64,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 6.0.287.53 1.14.1 1.2.11 1.0.2l 57 -
|
||||||
|
v8.5.0 2017-09-12 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 6.0.287.53 1.14.1 1.2.11 1.0.2l 57 -
|
||||||
|
v8.4.0 2017-08-15 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 6.0.286.52 1.13.1 1.2.11 1.0.2l 57 -
|
||||||
|
v8.3.0 2017-08-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 6.0.286.52 1.13.1 1.2.11 1.0.2l 57 -
|
||||||
|
v8.2.1 2017-07-20 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 5.8.283.41 1.13.1 1.2.11 1.0.2l 57 -
|
||||||
|
v8.2.0 2017-07-19 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.3.0 5.8.283.41 1.13.1 1.2.11 1.0.2l 57 -
|
||||||
|
v8.1.4 2017-07-11 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.3 5.8.283.41 1.12.0 1.2.11 1.0.2l 57 -
|
||||||
|
v8.1.3 2017-06-29 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.3 5.8.283.41 1.12.0 1.2.11 1.0.2l 57 -
|
||||||
|
v8.1.2 2017-06-15 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.3 5.8.283.41 1.12.0 1.2.11 1.0.2l 57 -
|
||||||
|
v8.1.1 2017-06-13 aix-ppc64,headers,linux-arm64,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.3 5.8.283.41 1.12.0 1.2.11 1.0.2l 57 -
|
||||||
|
v8.1.0 2017-06-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.3 5.8.283.41 1.12.0 1.2.11 1.0.2l 57 -
|
||||||
|
v8.0.0 2017-05-30 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 5.0.0 5.8.283.41 1.11.0 1.2.11 1.0.2k 57 -
|
||||||
|
v7.10.1 2017-07-11 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.2.0 5.5.372.43 1.11.0 1.2.11 1.0.2k 51 -
|
||||||
|
v7.10.0 2017-05-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.2.0 5.5.372.43 1.11.0 1.2.11 1.0.2k 51 -
|
||||||
|
v7.9.0 2017-04-11 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.2.0 5.5.372.43 1.11.0 1.2.11 1.0.2k 51 -
|
||||||
|
v7.8.0 2017-03-29 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.2.0 5.5.372.43 1.11.0 1.2.11 1.0.2k 51 -
|
||||||
|
v7.7.4 2017-03-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.42 1.11.0 1.2.11 1.0.2k 51 -
|
||||||
|
v7.7.3 2017-03-14 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 -
|
||||||
|
v7.7.2 2017-03-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 -
|
||||||
|
v7.7.1 2017-03-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 -
|
||||||
|
v7.7.0 2017-02-28 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.41 1.11.0 1.2.11 1.0.2k 51 -
|
||||||
|
v7.6.0 2017-02-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.5.372.40 1.11.0 1.2.11 1.0.2k 51 -
|
||||||
|
v7.5.0 2017-01-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.1.2 5.4.500.48 1.10.2 1.2.8 1.0.2k 51 -
|
||||||
|
v7.4.0 2017-01-04 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 4.0.5 5.4.500.45 1.10.1 1.2.8 1.0.2j 51 -
|
||||||
|
v7.3.0 2016-12-20 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.4.500.45 1.10.1 1.2.8 1.0.2j 51 -
|
||||||
|
v7.2.1 2016-12-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.4.500.44 1.10.1 1.2.8 1.0.2j 51 -
|
||||||
|
v7.2.0 2016-11-22 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.9 5.4.500.43 1.10.1 1.2.8 1.0.2j 51 -
|
||||||
|
v7.1.0 2016-11-08 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.9 5.4.500.36 1.10.0 1.2.8 1.0.2j 51 -
|
||||||
|
v7.0.0 2016-10-25 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.8 5.4.500.36 1.9.1 1.2.8 1.0.2j 51 -
|
||||||
|
v6.14.2 2018-04-30 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.16.1 1.2.11 1.0.2o 48 Boron
|
||||||
|
v6.14.1 2018-03-29 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.16.1 1.2.11 1.0.2o 48 Boron
|
||||||
|
v6.14.0 2018-03-28 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.16.1 1.2.11 1.0.2o 48 Boron
|
||||||
|
v6.13.1 2018-03-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.16.1 1.2.11 1.0.2n 48 Boron
|
||||||
|
v6.13.0 2018-02-10 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.16.1 1.2.11 1.0.2n 48 Boron
|
||||||
|
v6.12.3 2018-01-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.111 1.15.0 1.2.11 1.0.2n 48 Boron
|
||||||
|
v6.12.2 2017-12-07 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.109 1.15.0 1.2.11 1.0.2n 48 Boron
|
||||||
|
v6.12.1 2017-12-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.109 1.15.0 1.2.11 1.0.2m 48 Boron
|
||||||
|
v6.12.0 2017-11-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.108 1.15.0 1.2.11 1.0.2m 48 Boron
|
||||||
|
v6.11.5 2017-10-24 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.108 1.11.0 1.2.11 1.0.2l 48 Boron
|
||||||
|
v6.11.4 2017-10-03 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.108 1.11.0 1.2.11 1.0.2l 48 Boron
|
||||||
|
v6.11.3 2017-09-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.107 1.11.0 1.2.11 1.0.2l 48 Boron
|
||||||
|
v6.11.2 2017-08-01 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.103 1.11.0 1.2.11 1.0.2l 48 Boron
|
||||||
|
v6.11.1 2017-07-10 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.103 1.11.0 1.2.11 1.0.2k 48 Boron
|
||||||
|
v6.11.0 2017-06-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.102 1.11.0 1.2.11 1.0.2k 48 Boron
|
||||||
|
v6.10.3 2017-05-02 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.101 1.9.1 1.2.11 1.0.2k 48 Boron
|
||||||
|
v6.10.2 2017-04-04 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.98 1.9.1 1.2.11 1.0.2k 48 Boron
|
||||||
|
v6.10.1 2017-03-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.95 1.9.1 1.2.8 1.0.2k 48 Boron
|
||||||
|
v6.10.0 2017-02-21 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.93 1.9.1 1.2.8 1.0.2k 48 Boron
|
||||||
|
v6.9.5 2017-01-31 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.89 1.9.1 1.2.8 1.0.2k 48 Boron
|
||||||
|
v6.9.4 2017-01-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.89 1.9.1 1.2.8 1.0.2j 48 Boron
|
||||||
|
v6.9.3 2017-01-05 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.10 5.1.281.89 1.9.1 1.2.8 1.0.2j 48 Boron
|
||||||
|
v6.9.2 2016-12-06 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.9 5.1.281.88 1.9.1 1.2.8 1.0.2j 48 Boron
|
||||||
|
v6.9.1 2016-10-19 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 Boron
|
||||||
|
v6.9.0 2016-10-18 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 Boron
|
||||||
|
v6.8.1 2016-10-14 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 -
|
||||||
|
v6.8.0 2016-10-12 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.8 5.1.281.84 1.9.1 1.2.8 1.0.2j 48 -
|
||||||
|
v6.7.0 2016-09-27 aix-ppc64,headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.1.281.83 1.9.1 1.2.8 1.0.2j 48 -
|
||||||
|
v6.6.0 2016-09-14 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.1.281.83 1.9.1 1.2.8 1.0.2h 48 -
|
||||||
|
v6.5.0 2016-08-26 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.1.281.81 1.9.1 1.2.8 1.0.2h 48 -
|
||||||
|
v6.4.0 2016-08-12 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.0.71.60 1.9.1 1.2.8 1.0.2h 48 -
|
||||||
|
v6.3.1 2016-07-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.0.71.57 1.9.1 1.2.8 1.0.2h 48 -
|
||||||
|
v6.3.0 2016-07-06 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.10.3 5.0.71.52 1.9.1 1.2.8 1.0.2h 48 -
|
||||||
|
v6.2.2 2016-06-16 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.9.5 5.0.71.52 1.9.1 1.2.8 1.0.2h 48 -
|
||||||
|
v6.2.1 2016-06-02 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 3.9.3 5.0.71.52 1.9.1 1.2.8 1.0.2h 48 -
|
||||||
v6.2.0 2016-05-17 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.9 5.0.71.47 1.9.1 1.2.8 1.0.2h 48 -
|
v6.2.0 2016-05-17 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.9 5.0.71.47 1.9.1 1.2.8 1.0.2h 48 -
|
||||||
v6.1.0 2016-05-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.6 5.0.71.35 1.9.0 1.2.8 1.0.2h 48 -
|
v6.1.0 2016-05-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.6 5.0.71.35 1.9.0 1.2.8 1.0.2h 48 -
|
||||||
v6.0.0 2016-04-26 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.6 5.0.71.35 1.9.0 1.2.8 1.0.2g 48 -
|
v6.0.0 2016-04-26 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.8.6 5.0.71.35 1.9.0 1.2.8 1.0.2g 48 -
|
||||||
@@ -49,15 +117,24 @@ v5.2.0 2015-12-09 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-
|
|||||||
v5.1.1 2015-12-03 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.7.5 1.2.8 1.0.2e 47 -
|
v5.1.1 2015-12-03 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.7.5 1.2.8 1.0.2e 47 -
|
||||||
v5.1.0 2015-11-17 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.7.5 1.2.8 1.0.2d 47 -
|
v5.1.0 2015-11-17 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.12 4.6.85.31 1.7.5 1.2.8 1.0.2d 47 -
|
||||||
v5.0.0 2015-10-29 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.6 4.6.85.28 1.7.5 1.2.8 1.0.2d 47 -
|
v5.0.0 2015-10-29 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 3.3.6 4.6.85.28 1.7.5 1.2.8 1.0.2d 47 -
|
||||||
v4.8.0 2017-02-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.11 4.5.103.45 1.9.1 1.2.8 1.0.2k 46 Argon
|
v4.9.1 2018-03-29 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.53 1.9.1 1.2.11 1.0.2o 46 Argon
|
||||||
v4.7.3 2017-01-31 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2k 46 Argon
|
v4.9.0 2018-03-28 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.53 1.9.1 1.2.11 1.0.2o 46 Argon
|
||||||
v4.7.2 2017-01-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2j 46 Argon
|
v4.8.7 2017-12-07 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.53 1.9.1 1.2.11 1.0.2n 46 Argon
|
||||||
v4.7.1 2017-01-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2j 46 Argon
|
v4.8.6 2017-11-06 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.53 1.9.1 1.2.11 1.0.2m 46 Argon
|
||||||
v4.7.0 2016-12-06 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2j 46 Argon
|
v4.8.5 2017-10-24 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.47 1.9.1 1.2.11 1.0.2k 46 Argon
|
||||||
v4.6.2 2016-11-08 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.11 4.5.103.42 1.9.1 1.2.8 1.0.2j 46 Argon
|
v4.8.4 2017-07-11 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.47 1.9.1 1.2.11 1.0.2k 46 Argon
|
||||||
v4.6.1 2016-10-18 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.9 4.5.103.37 1.9.1 1.2.8 1.0.2j 46 Argon
|
v4.8.3 2017-05-02 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.47 1.9.1 1.2.11 1.0.2k 46 Argon
|
||||||
v4.6.0 2016-09-27 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.9 4.5.103.37 1.9.1 1.2.8 1.0.2j 46 Argon
|
v4.8.2 2017-04-04 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.46 1.9.1 1.2.11 1.0.2k 46 Argon
|
||||||
v4.5.0 2016-08-16 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.9 4.5.103.37 1.9.1 1.2.8 1.0.2h 46 Argon
|
v4.8.1 2017-03-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.46 1.9.1 1.2.8 1.0.2k 46 Argon
|
||||||
|
v4.8.0 2017-02-21 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.45 1.9.1 1.2.8 1.0.2k 46 Argon
|
||||||
|
v4.7.3 2017-01-31 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2k 46 Argon
|
||||||
|
v4.7.2 2017-01-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2j 46 Argon
|
||||||
|
v4.7.1 2017-01-05 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2j 46 Argon
|
||||||
|
v4.7.0 2016-12-06 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.43 1.9.1 1.2.8 1.0.2j 46 Argon
|
||||||
|
v4.6.2 2016-11-08 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.11 4.5.103.42 1.9.1 1.2.8 1.0.2j 46 Argon
|
||||||
|
v4.6.1 2016-10-18 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.9 4.5.103.37 1.9.1 1.2.8 1.0.2j 46 Argon
|
||||||
|
v4.6.0 2016-09-27 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.9 4.5.103.37 1.9.1 1.2.8 1.0.2j 46 Argon
|
||||||
|
v4.5.0 2016-08-16 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 2.15.9 4.5.103.37 1.9.1 1.2.8 1.0.2h 46 Argon
|
||||||
v4.4.7 2016-06-28 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.8 4.5.103.36 1.8.0 1.2.8 1.0.2h 46 Argon
|
v4.4.7 2016-06-28 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.8 4.5.103.36 1.8.0 1.2.8 1.0.2h 46 Argon
|
||||||
v4.4.6 2016-06-23 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.5 4.5.103.36 1.8.0 1.2.8 1.0.2h 46 Argon
|
v4.4.6 2016-06-23 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.5 4.5.103.36 1.8.0 1.2.8 1.0.2h 46 Argon
|
||||||
v4.4.5 2016-05-24 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.5 4.5.103.35 1.8.0 1.2.8 1.0.2h 46 Argon
|
v4.4.5 2016-05-24 headers,linux-arm64,linux-armv6l,linux-armv7l,linux-ppc64le,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-exe,win-x64-msi,win-x86-exe,win-x86-msi 2.15.5 4.5.103.35 1.8.0 1.2.8 1.0.2h 46 Argon
|
||||||
|
|||||||
1084
test/fast/Unit tests/mocks/nodejs.org-download-nightly-index.tab
Normal file
1084
test/fast/Unit tests/mocks/nodejs.org-download-nightly-index.tab
Normal file
File diff suppressed because it is too large
Load Diff
@@ -24,11 +24,47 @@
|
|||||||
v4.7.1 [0;37m (LTS: Argon)[0m
|
v4.7.1 [0;37m (LTS: Argon)[0m
|
||||||
v4.7.2 [0;37m (LTS: Argon)[0m
|
v4.7.2 [0;37m (LTS: Argon)[0m
|
||||||
v4.7.3 [0;37m (LTS: Argon)[0m
|
v4.7.3 [0;37m (LTS: Argon)[0m
|
||||||
v4.8.0 [1;32m (Latest LTS: Argon)[0m
|
v4.8.0 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.1 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.2 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.3 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.4 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.5 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.6 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.7 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.9.0 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.9.1 [1;32m (Latest LTS: Argon)[0m
|
||||||
v6.9.0 [0;37m (LTS: Boron)[0m
|
v6.9.0 [0;37m (LTS: Boron)[0m
|
||||||
v6.9.1 [0;37m (LTS: Boron)[0m
|
v6.9.1 [0;37m (LTS: Boron)[0m
|
||||||
v6.9.2 [0;37m (LTS: Boron)[0m
|
v6.9.2 [0;37m (LTS: Boron)[0m
|
||||||
v6.9.3 [0;37m (LTS: Boron)[0m
|
v6.9.3 [0;37m (LTS: Boron)[0m
|
||||||
v6.9.4 [0;37m (LTS: Boron)[0m
|
v6.9.4 [0;37m (LTS: Boron)[0m
|
||||||
v6.9.5 [0;37m (LTS: Boron)[0m
|
v6.9.5 [0;37m (LTS: Boron)[0m
|
||||||
v6.10.0 [1;32m (Latest LTS: Boron)[0m
|
v6.10.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.10.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.10.2 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.10.3 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.2 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.3 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.4 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.5 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.2 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.3 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.13.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.13.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.14.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.14.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.14.2 [1;32m (Latest LTS: Boron)[0m
|
||||||
|
v8.9.0 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.1 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.2 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.3 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.4 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.10.0 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.11.0 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.11.1 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.11.2 [1;32m (Latest LTS: Carbon)[0m
|
||||||
|
|||||||
@@ -265,7 +265,16 @@
|
|||||||
v4.7.1 [0;37m (LTS: Argon)[0m
|
v4.7.1 [0;37m (LTS: Argon)[0m
|
||||||
v4.7.2 [0;37m (LTS: Argon)[0m
|
v4.7.2 [0;37m (LTS: Argon)[0m
|
||||||
v4.7.3 [0;37m (LTS: Argon)[0m
|
v4.7.3 [0;37m (LTS: Argon)[0m
|
||||||
v4.8.0 [1;32m (Latest LTS: Argon)[0m
|
v4.8.0 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.1 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.2 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.3 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.4 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.5 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.6 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.7 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.9.0 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.9.1 [1;32m (Latest LTS: Argon)[0m
|
||||||
v5.0.0
|
v5.0.0
|
||||||
v5.1.0
|
v5.1.0
|
||||||
v5.1.1
|
v5.1.1
|
||||||
@@ -304,7 +313,25 @@
|
|||||||
v6.9.3 [0;37m (LTS: Boron)[0m
|
v6.9.3 [0;37m (LTS: Boron)[0m
|
||||||
v6.9.4 [0;37m (LTS: Boron)[0m
|
v6.9.4 [0;37m (LTS: Boron)[0m
|
||||||
v6.9.5 [0;37m (LTS: Boron)[0m
|
v6.9.5 [0;37m (LTS: Boron)[0m
|
||||||
v6.10.0 [1;32m (Latest LTS: Boron)[0m
|
v6.10.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.10.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.10.2 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.10.3 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.2 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.3 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.4 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.5 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.2 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.3 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.13.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.13.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.14.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.14.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.14.2 [1;32m (Latest LTS: Boron)[0m
|
||||||
v7.0.0
|
v7.0.0
|
||||||
v7.1.0
|
v7.1.0
|
||||||
v7.2.0
|
v7.2.0
|
||||||
@@ -316,3 +343,53 @@
|
|||||||
v7.7.0
|
v7.7.0
|
||||||
v7.7.1
|
v7.7.1
|
||||||
v7.7.2
|
v7.7.2
|
||||||
|
v7.7.3
|
||||||
|
v7.7.4
|
||||||
|
v7.8.0
|
||||||
|
v7.9.0
|
||||||
|
v7.10.0
|
||||||
|
v7.10.1
|
||||||
|
v8.0.0
|
||||||
|
v8.1.0
|
||||||
|
v8.1.1
|
||||||
|
v8.1.2
|
||||||
|
v8.1.3
|
||||||
|
v8.1.4
|
||||||
|
v8.2.0
|
||||||
|
v8.2.1
|
||||||
|
v8.3.0
|
||||||
|
v8.4.0
|
||||||
|
v8.5.0
|
||||||
|
v8.6.0
|
||||||
|
v8.7.0
|
||||||
|
v8.8.0
|
||||||
|
v8.8.1
|
||||||
|
v8.9.0 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.1 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.2 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.3 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.4 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.10.0 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.11.0 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.11.1 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.11.2 [1;32m (Latest LTS: Carbon)[0m
|
||||||
|
v9.0.0
|
||||||
|
v9.1.0
|
||||||
|
v9.2.0
|
||||||
|
v9.2.1
|
||||||
|
v9.3.0
|
||||||
|
v9.4.0
|
||||||
|
v9.5.0
|
||||||
|
v9.6.0
|
||||||
|
v9.6.1
|
||||||
|
v9.7.0
|
||||||
|
v9.7.1
|
||||||
|
v9.8.0
|
||||||
|
v9.9.0
|
||||||
|
v9.10.0
|
||||||
|
v9.10.1
|
||||||
|
v9.11.0
|
||||||
|
v9.11.1
|
||||||
|
v10.0.0
|
||||||
|
v10.1.0
|
||||||
|
v10.2.0
|
||||||
|
|||||||
@@ -306,7 +306,16 @@
|
|||||||
v4.7.1 [0;37m (LTS: Argon)[0m
|
v4.7.1 [0;37m (LTS: Argon)[0m
|
||||||
v4.7.2 [0;37m (LTS: Argon)[0m
|
v4.7.2 [0;37m (LTS: Argon)[0m
|
||||||
v4.7.3 [0;37m (LTS: Argon)[0m
|
v4.7.3 [0;37m (LTS: Argon)[0m
|
||||||
v4.8.0 [1;32m (Latest LTS: Argon)[0m
|
v4.8.0 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.1 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.2 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.3 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.4 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.5 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.6 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.8.7 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.9.0 [0;37m (LTS: Argon)[0m
|
||||||
|
v4.9.1 [1;32m (Latest LTS: Argon)[0m
|
||||||
v5.0.0
|
v5.0.0
|
||||||
v5.1.0
|
v5.1.0
|
||||||
v5.1.1
|
v5.1.1
|
||||||
@@ -345,7 +354,25 @@
|
|||||||
v6.9.3 [0;37m (LTS: Boron)[0m
|
v6.9.3 [0;37m (LTS: Boron)[0m
|
||||||
v6.9.4 [0;37m (LTS: Boron)[0m
|
v6.9.4 [0;37m (LTS: Boron)[0m
|
||||||
v6.9.5 [0;37m (LTS: Boron)[0m
|
v6.9.5 [0;37m (LTS: Boron)[0m
|
||||||
v6.10.0 [1;32m (Latest LTS: Boron)[0m
|
v6.10.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.10.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.10.2 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.10.3 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.2 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.3 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.4 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.11.5 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.2 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.12.3 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.13.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.13.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.14.0 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.14.1 [0;37m (LTS: Boron)[0m
|
||||||
|
v6.14.2 [1;32m (Latest LTS: Boron)[0m
|
||||||
v7.0.0
|
v7.0.0
|
||||||
v7.1.0
|
v7.1.0
|
||||||
v7.2.0
|
v7.2.0
|
||||||
@@ -357,3 +384,53 @@
|
|||||||
v7.7.0
|
v7.7.0
|
||||||
v7.7.1
|
v7.7.1
|
||||||
v7.7.2
|
v7.7.2
|
||||||
|
v7.7.3
|
||||||
|
v7.7.4
|
||||||
|
v7.8.0
|
||||||
|
v7.9.0
|
||||||
|
v7.10.0
|
||||||
|
v7.10.1
|
||||||
|
v8.0.0
|
||||||
|
v8.1.0
|
||||||
|
v8.1.1
|
||||||
|
v8.1.2
|
||||||
|
v8.1.3
|
||||||
|
v8.1.4
|
||||||
|
v8.2.0
|
||||||
|
v8.2.1
|
||||||
|
v8.3.0
|
||||||
|
v8.4.0
|
||||||
|
v8.5.0
|
||||||
|
v8.6.0
|
||||||
|
v8.7.0
|
||||||
|
v8.8.0
|
||||||
|
v8.8.1
|
||||||
|
v8.9.0 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.1 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.2 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.3 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.9.4 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.10.0 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.11.0 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.11.1 [0;37m (LTS: Carbon)[0m
|
||||||
|
v8.11.2 [1;32m (Latest LTS: Carbon)[0m
|
||||||
|
v9.0.0
|
||||||
|
v9.1.0
|
||||||
|
v9.2.0
|
||||||
|
v9.2.1
|
||||||
|
v9.3.0
|
||||||
|
v9.4.0
|
||||||
|
v9.5.0
|
||||||
|
v9.6.0
|
||||||
|
v9.6.1
|
||||||
|
v9.7.0
|
||||||
|
v9.7.1
|
||||||
|
v9.8.0
|
||||||
|
v9.9.0
|
||||||
|
v9.10.0
|
||||||
|
v9.10.1
|
||||||
|
v9.11.0
|
||||||
|
v9.11.1
|
||||||
|
v10.0.0
|
||||||
|
v10.1.0
|
||||||
|
v10.2.0
|
||||||
|
|||||||
@@ -25,3 +25,12 @@ v4.7.1 Argon
|
|||||||
v4.7.2 Argon
|
v4.7.2 Argon
|
||||||
v4.7.3 Argon
|
v4.7.3 Argon
|
||||||
v4.8.0 Argon
|
v4.8.0 Argon
|
||||||
|
v4.8.1 Argon
|
||||||
|
v4.8.2 Argon
|
||||||
|
v4.8.3 Argon
|
||||||
|
v4.8.4 Argon
|
||||||
|
v4.8.5 Argon
|
||||||
|
v4.8.6 Argon
|
||||||
|
v4.8.7 Argon
|
||||||
|
v4.9.0 Argon
|
||||||
|
v4.9.1 Argon
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
N/A
|
||||||
12
test/fast/Unit tests/mocks/nvm_ls_remote LTS nightly.txt
Normal file
12
test/fast/Unit tests/mocks/nvm_ls_remote LTS nightly.txt
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
v6.9.1-nightly201610183843b96e46 Boron
|
||||||
|
v6.9.2-nightly201610208bb346d61a Boron
|
||||||
|
v6.9.3-nightly20161206c350268432 Boron
|
||||||
|
v6.9.4-nightly201701049844692719 Boron
|
||||||
|
v6.9.5-nightly2017013187ac44974a Boron
|
||||||
|
v6.9.6-nightly201702013f61aae59d Boron
|
||||||
|
v6.10.1-nightly20170222ee10f21f3b Boron
|
||||||
|
v6.10.2-nightly20170322426968ddd8 Boron
|
||||||
|
v6.10.3-nightly2017040479546c0b5a Boron
|
||||||
|
v6.10.4-nightly20170502312091a196 Boron
|
||||||
|
v6.11.1-nightly20170607f7ca483d68 Boron
|
||||||
|
v8.9.1-nightly20171104a815e1b6a2 Carbon
|
||||||
@@ -25,6 +25,15 @@ v4.7.1 Argon
|
|||||||
v4.7.2 Argon
|
v4.7.2 Argon
|
||||||
v4.7.3 Argon
|
v4.7.3 Argon
|
||||||
v4.8.0 Argon
|
v4.8.0 Argon
|
||||||
|
v4.8.1 Argon
|
||||||
|
v4.8.2 Argon
|
||||||
|
v4.8.3 Argon
|
||||||
|
v4.8.4 Argon
|
||||||
|
v4.8.5 Argon
|
||||||
|
v4.8.6 Argon
|
||||||
|
v4.8.7 Argon
|
||||||
|
v4.9.0 Argon
|
||||||
|
v4.9.1 Argon
|
||||||
v6.9.0 Boron
|
v6.9.0 Boron
|
||||||
v6.9.1 Boron
|
v6.9.1 Boron
|
||||||
v6.9.2 Boron
|
v6.9.2 Boron
|
||||||
@@ -32,3 +41,30 @@ v6.9.3 Boron
|
|||||||
v6.9.4 Boron
|
v6.9.4 Boron
|
||||||
v6.9.5 Boron
|
v6.9.5 Boron
|
||||||
v6.10.0 Boron
|
v6.10.0 Boron
|
||||||
|
v6.10.1 Boron
|
||||||
|
v6.10.2 Boron
|
||||||
|
v6.10.3 Boron
|
||||||
|
v6.11.0 Boron
|
||||||
|
v6.11.1 Boron
|
||||||
|
v6.11.2 Boron
|
||||||
|
v6.11.3 Boron
|
||||||
|
v6.11.4 Boron
|
||||||
|
v6.11.5 Boron
|
||||||
|
v6.12.0 Boron
|
||||||
|
v6.12.1 Boron
|
||||||
|
v6.12.2 Boron
|
||||||
|
v6.12.3 Boron
|
||||||
|
v6.13.0 Boron
|
||||||
|
v6.13.1 Boron
|
||||||
|
v6.14.0 Boron
|
||||||
|
v6.14.1 Boron
|
||||||
|
v6.14.2 Boron
|
||||||
|
v8.9.0 Carbon
|
||||||
|
v8.9.1 Carbon
|
||||||
|
v8.9.2 Carbon
|
||||||
|
v8.9.3 Carbon
|
||||||
|
v8.9.4 Carbon
|
||||||
|
v8.10.0 Carbon
|
||||||
|
v8.11.0 Carbon
|
||||||
|
v8.11.1 Carbon
|
||||||
|
v8.11.2 Carbon
|
||||||
|
|||||||
95
test/fast/Unit tests/mocks/nvm_ls_remote nightly.txt
Normal file
95
test/fast/Unit tests/mocks/nvm_ls_remote nightly.txt
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
v0.10.41-nightly20151203036580393d
|
||||||
|
v0.10.42-nightly20160128b125512a5c
|
||||||
|
v0.12.10-nightly20160128a305339f66
|
||||||
|
v4.0.0-nightly201509079cae65c510
|
||||||
|
v5.0.0-nightly201510266a04cc0a43
|
||||||
|
v5.0.1-nightly2015111484bb74547d
|
||||||
|
v5.1.2-nightly201512091c1c1a0f2b
|
||||||
|
v5.2.1-nightly20151210cb938aaa33
|
||||||
|
v5.3.1-nightly20151224b4c51c5b76
|
||||||
|
v5.4.1-nightly20160107138e1e501e
|
||||||
|
v5.4.2-nightly20160121e855b596f4
|
||||||
|
v5.5.1-nightly20160127a8c2050c2d
|
||||||
|
v5.6.1-nightly201602106d8eba0e5e
|
||||||
|
v5.7.1-nightly20160302c83725c604
|
||||||
|
v5.7.2-nightly2016030801c331ea37
|
||||||
|
v5.10.2-nightly201604206d9c0c9aa7
|
||||||
|
v5.11.1-nightly20160504bec5d50f1e
|
||||||
|
v5.11.2-nightly2016062103d36aea4f
|
||||||
|
v6.0.0-nightly20160425eb4201f07a
|
||||||
|
v6.3.1-nightly201607209e9d499b8b
|
||||||
|
v6.3.2-nightly20160815da9bd2fc48
|
||||||
|
v6.4.1-nightly20160825723fa9637c
|
||||||
|
v6.5.1-nightly20160914180867d6a6
|
||||||
|
v6.6.1-nightly20160927f8ad0dc0e2
|
||||||
|
v6.7.1-nightly20161007d7454e7547
|
||||||
|
v6.8.1-nightly201610132540417ef5
|
||||||
|
v6.8.2-nightly201610154613c22b00
|
||||||
|
v6.9.1-nightly201610183843b96e46 Boron
|
||||||
|
v6.9.2-nightly201610208bb346d61a Boron
|
||||||
|
v6.9.3-nightly20161206c350268432 Boron
|
||||||
|
v6.9.4-nightly201701049844692719 Boron
|
||||||
|
v6.9.5-nightly2017013187ac44974a Boron
|
||||||
|
v6.9.6-nightly201702013f61aae59d Boron
|
||||||
|
v6.10.1-nightly20170222ee10f21f3b Boron
|
||||||
|
v6.10.2-nightly20170322426968ddd8 Boron
|
||||||
|
v6.10.3-nightly2017040479546c0b5a Boron
|
||||||
|
v6.10.4-nightly20170502312091a196 Boron
|
||||||
|
v6.11.1-nightly20170607f7ca483d68 Boron
|
||||||
|
v7.0.0-nightly201610246bbdd668bd
|
||||||
|
v7.0.1-nightly2016102527e1749dcb
|
||||||
|
v7.1.1-nightly201611093daf11635d
|
||||||
|
v7.2.0-nightly20161123c1aa949064
|
||||||
|
v7.2.1-nightly201611248cabe28efb
|
||||||
|
v7.2.2-nightly20161207c2cc11b3c6
|
||||||
|
v7.3.1-nightly20161221586967a078
|
||||||
|
v7.4.1-nightly20170104e07b6516d7
|
||||||
|
v7.5.1-nightly2017020113a024d531
|
||||||
|
v7.6.1-nightly201702227a6367017c
|
||||||
|
v7.7.1-nightly201703019c75f4c78a
|
||||||
|
v7.7.2-nightly20170302b20bc130ef
|
||||||
|
v7.7.3-nightly20170309c62798034a
|
||||||
|
v7.7.4-nightly20170315753adee6aa
|
||||||
|
v7.7.5-nightly20170322bc664cb034
|
||||||
|
v7.8.1-nightly20170329517f13b607
|
||||||
|
v7.9.1-nightly20170411675ece47b3
|
||||||
|
v7.10.1-nightly2017050369a8053e8a
|
||||||
|
v8.0.0-nightly20170530effeff1843
|
||||||
|
v8.1.0-nightly20170612f6fc46e036
|
||||||
|
v8.1.1-nightly2017061323318c7661
|
||||||
|
v8.1.2-nightly20170614a1b27dbfb4
|
||||||
|
v8.1.3-nightly201706220b96a2640b
|
||||||
|
v8.1.4-nightly20170704c2c7eb1a41
|
||||||
|
v8.1.5-nightly20170718e9491f1cd4
|
||||||
|
v8.2.1-nightly2017080791b7843aeb
|
||||||
|
v8.3.1-nightly201708182d8d355a5f
|
||||||
|
v8.4.1-nightly201709104b28e0055e
|
||||||
|
v8.5.1-nightly20170921535f8d5281
|
||||||
|
v8.6.1-nightly201710116f42b680e3
|
||||||
|
v8.7.1-nightly2017102478a6ef46a9
|
||||||
|
v8.8.1-nightly201710256fbef7f350
|
||||||
|
v8.8.2-nightly20171030f00ba6b142
|
||||||
|
v8.9.1-nightly20171104a815e1b6a2 Carbon
|
||||||
|
v9.0.0-nightly2017103182790d84f2
|
||||||
|
v9.0.1-nightly20171105ed0fbd8d72
|
||||||
|
v9.1.1-nightly20171207c81e9682c4
|
||||||
|
v9.2.1-nightly20171208f0f9e1abf0
|
||||||
|
v9.2.2-nightly20171212f8143214be
|
||||||
|
v9.3.1-nightly2018010930273d400c
|
||||||
|
v9.4.1-nightly20180124dd56bd1591
|
||||||
|
v9.5.1-nightly20180221b9b58100e0
|
||||||
|
v9.6.1-nightly20180222927c1b1a7e
|
||||||
|
v9.6.2-nightly201802277853a7fd2a
|
||||||
|
v9.7.1-nightly201803013f3995b7b7
|
||||||
|
v9.7.2-nightly20180307cde6671b41
|
||||||
|
v9.8.1-nightly20180320607b33cfcc
|
||||||
|
v9.9.1-nightly201803256591d9f761
|
||||||
|
v9.10.0-nightly201803270a18bf1304
|
||||||
|
v9.10.1-nightly201803284844a263ce
|
||||||
|
v9.10.2-nightly201804042bdf3ca235
|
||||||
|
v9.11.2-nightly201804135d9a7f81ae
|
||||||
|
v10.0.0-nightly20180424982adb5994
|
||||||
|
v10.0.1-nightly20180505ff148b987d
|
||||||
|
v10.1.1-nightly20180523235a272838
|
||||||
|
v10.2.1-nightly20180524be71c5dea9
|
||||||
|
v11.0.0-nightly201805249a02de7084
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
v11.0.0-nightly201805249a02de7084
|
||||||
@@ -1 +1 @@
|
|||||||
v7.7.2
|
v10.2.0
|
||||||
|
|||||||
@@ -266,6 +266,15 @@ v4.7.1 Argon
|
|||||||
v4.7.2 Argon
|
v4.7.2 Argon
|
||||||
v4.7.3 Argon
|
v4.7.3 Argon
|
||||||
v4.8.0 Argon
|
v4.8.0 Argon
|
||||||
|
v4.8.1 Argon
|
||||||
|
v4.8.2 Argon
|
||||||
|
v4.8.3 Argon
|
||||||
|
v4.8.4 Argon
|
||||||
|
v4.8.5 Argon
|
||||||
|
v4.8.6 Argon
|
||||||
|
v4.8.7 Argon
|
||||||
|
v4.9.0 Argon
|
||||||
|
v4.9.1 Argon
|
||||||
v5.0.0
|
v5.0.0
|
||||||
v5.1.0
|
v5.1.0
|
||||||
v5.1.1
|
v5.1.1
|
||||||
@@ -305,6 +314,24 @@ v6.9.3 Boron
|
|||||||
v6.9.4 Boron
|
v6.9.4 Boron
|
||||||
v6.9.5 Boron
|
v6.9.5 Boron
|
||||||
v6.10.0 Boron
|
v6.10.0 Boron
|
||||||
|
v6.10.1 Boron
|
||||||
|
v6.10.2 Boron
|
||||||
|
v6.10.3 Boron
|
||||||
|
v6.11.0 Boron
|
||||||
|
v6.11.1 Boron
|
||||||
|
v6.11.2 Boron
|
||||||
|
v6.11.3 Boron
|
||||||
|
v6.11.4 Boron
|
||||||
|
v6.11.5 Boron
|
||||||
|
v6.12.0 Boron
|
||||||
|
v6.12.1 Boron
|
||||||
|
v6.12.2 Boron
|
||||||
|
v6.12.3 Boron
|
||||||
|
v6.13.0 Boron
|
||||||
|
v6.13.1 Boron
|
||||||
|
v6.14.0 Boron
|
||||||
|
v6.14.1 Boron
|
||||||
|
v6.14.2 Boron
|
||||||
v7.0.0
|
v7.0.0
|
||||||
v7.1.0
|
v7.1.0
|
||||||
v7.2.0
|
v7.2.0
|
||||||
@@ -316,3 +343,53 @@ v7.6.0
|
|||||||
v7.7.0
|
v7.7.0
|
||||||
v7.7.1
|
v7.7.1
|
||||||
v7.7.2
|
v7.7.2
|
||||||
|
v7.7.3
|
||||||
|
v7.7.4
|
||||||
|
v7.8.0
|
||||||
|
v7.9.0
|
||||||
|
v7.10.0
|
||||||
|
v7.10.1
|
||||||
|
v8.0.0
|
||||||
|
v8.1.0
|
||||||
|
v8.1.1
|
||||||
|
v8.1.2
|
||||||
|
v8.1.3
|
||||||
|
v8.1.4
|
||||||
|
v8.2.0
|
||||||
|
v8.2.1
|
||||||
|
v8.3.0
|
||||||
|
v8.4.0
|
||||||
|
v8.5.0
|
||||||
|
v8.6.0
|
||||||
|
v8.7.0
|
||||||
|
v8.8.0
|
||||||
|
v8.8.1
|
||||||
|
v8.9.0 Carbon
|
||||||
|
v8.9.1 Carbon
|
||||||
|
v8.9.2 Carbon
|
||||||
|
v8.9.3 Carbon
|
||||||
|
v8.9.4 Carbon
|
||||||
|
v8.10.0 Carbon
|
||||||
|
v8.11.0 Carbon
|
||||||
|
v8.11.1 Carbon
|
||||||
|
v8.11.2 Carbon
|
||||||
|
v9.0.0
|
||||||
|
v9.1.0
|
||||||
|
v9.2.0
|
||||||
|
v9.2.1
|
||||||
|
v9.3.0
|
||||||
|
v9.4.0
|
||||||
|
v9.5.0
|
||||||
|
v9.6.0
|
||||||
|
v9.6.1
|
||||||
|
v9.7.0
|
||||||
|
v9.7.1
|
||||||
|
v9.8.0
|
||||||
|
v9.9.0
|
||||||
|
v9.10.0
|
||||||
|
v9.10.1
|
||||||
|
v9.11.0
|
||||||
|
v9.11.1
|
||||||
|
v10.0.0
|
||||||
|
v10.1.0
|
||||||
|
v10.2.0
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
lts/*|lts/boron
|
lts/*|lts/carbon
|
||||||
lts/boron|v6.10.0
|
lts/carbon|v8.11.2
|
||||||
lts/argon|v4.8.0
|
lts/boron|v6.14.2
|
||||||
|
lts/argon|v4.9.1
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
11.0
|
||||||
@@ -1 +1 @@
|
|||||||
7.7
|
10.2
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ assert_not_ok node_version_has_solaris_binary "v3.3.1"
|
|||||||
# Valid io.js version numbers that have a Solaris binary fail
|
# Valid io.js version numbers that have a Solaris binary fail
|
||||||
assert_not_ok node_version_has_solaris_binary "iojs-v3.3.1"
|
assert_not_ok node_version_has_solaris_binary "iojs-v3.3.1"
|
||||||
|
|
||||||
# Invvalid io.js version numbers fail
|
# Invalid io.js version numbers fail
|
||||||
assert_not_ok node_version_has_solaris_binary "iojs-v0.12.7"
|
assert_not_ok node_version_has_solaris_binary "iojs-v0.12.7"
|
||||||
|
|
||||||
# Valid node version numbers that don't have a Solaris binary fail
|
# Valid node version numbers that don't have a Solaris binary fail
|
||||||
|
|||||||
@@ -30,4 +30,3 @@ OUTPUT="$(nvm_alias test)"
|
|||||||
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_alias test' produced wrong output; got $OUTPUT"
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_alias test' produced wrong output; got $OUTPUT"
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
|
|||||||
@@ -4,5 +4,4 @@ die () { echo "$@" ; exit 1; }
|
|||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
|
||||||
[ "_$(nvm_alias_path)" = "_$NVM_DIR/alias" ] || die "nvm_alias_path did not requrn correct location"
|
[ "_$(nvm_alias_path)" = "_$NVM_DIR/alias" ] || die "nvm_alias_path did not return correct location"
|
||||||
|
|
||||||
|
|||||||
@@ -41,3 +41,17 @@ NEW_PATH=`nvm_change_path "$EMPTY_PATH" "/bin" "$NVM_DIR/versions/node/v7.1.0"`
|
|||||||
NEW_PATH=`nvm_change_path "$EMPTY_PATH" "/bin" "$NVM_DIR/v0.1.2"`
|
NEW_PATH=`nvm_change_path "$EMPTY_PATH" "/bin" "$NVM_DIR/v0.1.2"`
|
||||||
|
|
||||||
[ "$NEW_PATH" = "$NVM_DIR/v0.1.2/bin" ] || die "Not correctly prepended: $NEW_PATH "
|
[ "$NEW_PATH" = "$NVM_DIR/v0.1.2/bin" ] || die "Not correctly prepended: $NEW_PATH "
|
||||||
|
|
||||||
|
|
||||||
|
# https://github.com/nvm-sh/nvm/issues/1652#issuecomment-342571223
|
||||||
|
MAC_OS_NESTED_SESSION_PATH=/usr/bin:/usr/local/bin:$NVM_DIR/versions/node/v4.5.0/bin
|
||||||
|
|
||||||
|
# New version dir
|
||||||
|
NEW_PATH=`nvm_change_path "$MAC_OS_NESTED_SESSION_PATH" "/bin" "$NVM_DIR/versions/node/v7.1.0"`
|
||||||
|
|
||||||
|
[ "$NEW_PATH" = "$NVM_DIR/versions/node/v7.1.0/bin:/usr/bin:/usr/local/bin:$NVM_DIR/versions/node/v4.5.0/bin" ] || die "Not correctly changed: $NEW_PATH "
|
||||||
|
|
||||||
|
# Old version dir
|
||||||
|
NEW_PATH=`nvm_change_path "$MAC_OS_NESTED_SESSION_PATH" "/bin" "$NVM_DIR/v0.1.2"`
|
||||||
|
|
||||||
|
[ "$NEW_PATH" = "$NVM_DIR/v0.1.2/bin:/usr/bin:/usr/local/bin:$NVM_DIR/versions/node/v4.5.0/bin" ] || die "Not correctly changed: $NEW_PATH "
|
||||||
|
|||||||
@@ -19,8 +19,14 @@ WGET_EXPECTED_INFO="$(which wget)"
|
|||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
# 2. test aliased wget
|
# 2. test aliased wget
|
||||||
shopt -s expand_aliases
|
|
||||||
# enable expand_aliases to make alias working in interactive shell
|
# enable expand_aliases/aliases to make alias work in interactive shell
|
||||||
|
if nvm_has shopt; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
elif nvm_has setopt; then
|
||||||
|
setopt aliases
|
||||||
|
fi
|
||||||
|
|
||||||
alias wget="wget -V"
|
alias wget="wget -V"
|
||||||
WGET_COMMAND_INFO="$(nvm_command_info wget)"
|
WGET_COMMAND_INFO="$(nvm_command_info wget)"
|
||||||
WGET_EXPECTED_INFO="$(which wget) (wget -V)"
|
WGET_EXPECTED_INFO="$(which wget) (wget -V)"
|
||||||
@@ -38,3 +44,15 @@ WGET_EXPECTED_INFO="$(type wget)"
|
|||||||
[ "${WGET_COMMAND_INFO}" = "${WGET_EXPECTED_INFO}" ] || die "wget command info wrong(stage 3), expected: '${WGET_EXPECTED_INFO}', got '${WGET_COMMAND_INFO}'"
|
[ "${WGET_COMMAND_INFO}" = "${WGET_EXPECTED_INFO}" ] || die "wget command info wrong(stage 3), expected: '${WGET_EXPECTED_INFO}', got '${WGET_COMMAND_INFO}'"
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
|
# 4. nvm_command_info() should not have standard error
|
||||||
|
OUTPUT="$(nvm_command_info ls 2>&1 >/dev/null)"
|
||||||
|
[ -z "${OUTPUT}" ] || die "\`nvm_command_info ls\` expected no stderr; got >${OUTPUT}< (stage 4)"
|
||||||
|
OUTPUT="$(nvm_command_info rm 2>&1 >/dev/null)"
|
||||||
|
[ -z "${OUTPUT}" ] || die "\`nvm_command_info rm\` expected no stderr; got >${OUTPUT}< (stage 4)"
|
||||||
|
OUTPUT="$(nvm_command_info git 2>&1 >/dev/null)"
|
||||||
|
[ -z "${OUTPUT}" ] || die "\`nvm_command_info git\` expected no stderr; got >${OUTPUT}< (stage 4)"
|
||||||
|
OUTPUT="$(nvm_command_info grep 2>&1 >/dev/null)"
|
||||||
|
[ -z "${OUTPUT}" ] || die "\`nvm_command_info grep\` expected no stderr; got >${OUTPUT}< (stage 4)"
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|||||||
@@ -46,17 +46,24 @@ OUTPUT="$(nvm_die_on_prefix 0 foo 2>&1)"
|
|||||||
OUTPUT="$(PREFIX=bar nvm_die_on_prefix 0 foo 2>&1)"
|
OUTPUT="$(PREFIX=bar nvm_die_on_prefix 0 foo 2>&1)"
|
||||||
EXPECTED_OUTPUT='nvm is not compatible with the "PREFIX" environment variable: currently set to "bar"
|
EXPECTED_OUTPUT='nvm is not compatible with the "PREFIX" environment variable: currently set to "bar"
|
||||||
Run `unset PREFIX` to unset it.'
|
Run `unset PREFIX` to unset it.'
|
||||||
EXIT_CODE="$(PREFIX=bar nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)"
|
EXIT_CODE="$(export PREFIX=bar ; nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)"
|
||||||
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'PREFIX=bar nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'"
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'PREFIX=bar nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'"
|
||||||
[ "_$EXIT_CODE" = "_3" ] || die "'PREFIX=bar nvm_die_on_prefix 0 foo' did not exit with 3; got '$EXIT_CODE'"
|
[ "_$EXIT_CODE" = "_3" ] || die "'PREFIX=bar nvm_die_on_prefix 0 foo' did not exit with 3; got '$EXIT_CODE'"
|
||||||
|
|
||||||
OUTPUT="$(NPM_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo 2>&1)"
|
OUTPUT="$(export NPM_CONFIG_PREFIX=bar ; nvm_die_on_prefix 0 foo 2>&1)"
|
||||||
EXPECTED_OUTPUT='nvm is not compatible with the "NPM_CONFIG_PREFIX" environment variable: currently set to "bar"
|
EXPECTED_OUTPUT='nvm is not compatible with the "NPM_CONFIG_PREFIX" environment variable: currently set to "bar"
|
||||||
Run `unset NPM_CONFIG_PREFIX` to unset it.'
|
Run `unset NPM_CONFIG_PREFIX` to unset it.'
|
||||||
EXIT_CODE="$(NPM_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)"
|
EXIT_CODE="$(export NPM_CONFIG_PREFIX=bar ; nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)"
|
||||||
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'NPM_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'"
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'NPM_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'"
|
||||||
[ "_$EXIT_CODE" = "_4" ] || die "'NPM_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not exit with 4; got '$EXIT_CODE'"
|
[ "_$EXIT_CODE" = "_4" ] || die "'NPM_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not exit with 4; got '$EXIT_CODE'"
|
||||||
|
|
||||||
|
OUTPUT="$(export npm_CONFIG_PREFIX=bar ; nvm_die_on_prefix 0 foo 2>&1)"
|
||||||
|
EXPECTED_OUTPUT='nvm is not compatible with the "npm_CONFIG_PREFIX" environment variable: currently set to "bar"
|
||||||
|
Run `unset npm_CONFIG_PREFIX` to unset it.'
|
||||||
|
EXIT_CODE="$(export npm_CONFIG_PREFIX=bar ; nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)"
|
||||||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'npm_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT'; got '$OUTPUT'"
|
||||||
|
[ "_$EXIT_CODE" = "_4" ] || die "'npm_CONFIG_PREFIX=bar nvm_die_on_prefix 0 foo' did not exit with 4; got '$EXIT_CODE'"
|
||||||
|
|
||||||
npm() {
|
npm() {
|
||||||
local args
|
local args
|
||||||
args="$@"
|
args="$@"
|
||||||
|
|||||||
@@ -7,8 +7,9 @@ cleanup () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir -p "$(nvm_version_path v0.1.2)"
|
make_fake_node v0.1.2
|
||||||
|
|
||||||
OUTPUT="$(nvm_ensure_version_installed foo 2>&1)"
|
OUTPUT="$(nvm_ensure_version_installed foo 2>&1)"
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
|
|||||||
@@ -23,4 +23,3 @@ TEST_DIR="$PWD"
|
|||||||
[ "~$(PWD=$TEST_DIR/tmp_nvm_find_up/a/b/c/d nvm_find_up 'test')" = "~$TEST_DIR/tmp_nvm_find_up/a/b/c" ] || die "failed to find 1 level up from current dir"
|
[ "~$(PWD=$TEST_DIR/tmp_nvm_find_up/a/b/c/d nvm_find_up 'test')" = "~$TEST_DIR/tmp_nvm_find_up/a/b/c" ] || die "failed to find 1 level up from current dir"
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
|
|||||||
@@ -18,4 +18,3 @@ INPUT="1.2.3.4.5"
|
|||||||
OUTPUT="$(nvm_format_version "$INPUT")"
|
OUTPUT="$(nvm_format_version "$INPUT")"
|
||||||
EXPECTED_OUTPUT="v1.2.3"
|
EXPECTED_OUTPUT="v1.2.3"
|
||||||
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_format_version $INPUT did not return $EXPECTED_OUTPUT; got $OUTPUT"
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_format_version $INPUT did not return $EXPECTED_OUTPUT; got $OUTPUT"
|
||||||
|
|
||||||
|
|||||||
91
test/fast/Unit tests/nvm_get_default_packages
Executable file
91
test/fast/Unit tests/nvm_get_default_packages
Executable file
@@ -0,0 +1,91 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
FILE="$NVM_DIR/default-packages"
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
|
||||||
|
die () { echo "$@" ; cleanup ; exit 1; }
|
||||||
|
setup () {
|
||||||
|
if [ -f $FILE ]; then
|
||||||
|
ORIG_DEFAULT_PACKAGES=$(cat $FILE)
|
||||||
|
mkdir -p ./tmp/ ||:
|
||||||
|
mv $FILE ./tmp/default-packages ||:
|
||||||
|
fi
|
||||||
|
touch $FILE
|
||||||
|
}
|
||||||
|
cleanup () {
|
||||||
|
if [ "$ORIG_DEFAULT_PACKAGES" != "" ]; then
|
||||||
|
rm -rf ./tmp/
|
||||||
|
echo "$ORIG_DEFAULT_PACKAGES" > $FILE
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
cat > $FILE << EOF
|
||||||
|
rimraf
|
||||||
|
object-inspect@1.0.2
|
||||||
|
|
||||||
|
# commented-package
|
||||||
|
|
||||||
|
stevemao/left-pad
|
||||||
|
EOF
|
||||||
|
|
||||||
|
DEFAULT_PKGS="$(nvm_get_default_packages)"
|
||||||
|
EXPECTED_PKGS='rimraf object-inspect@1.0.2 stevemao/left-pad'
|
||||||
|
[ "${DEFAULT_PKGS}" = "${EXPECTED_PKGS}" ] || die "1: expected default packages >${EXPECTED_PKGS}<; got >${DEFAULT_PKGS}<"
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
cat > $FILE << EOF
|
||||||
|
rimraf
|
||||||
|
not~a~package~name
|
||||||
|
mkdirp
|
||||||
|
EOF
|
||||||
|
|
||||||
|
DEFAULT_PKGS="$(nvm_get_default_packages)"
|
||||||
|
EXPECTED_PKGS='rimraf not~a~package~name mkdirp'
|
||||||
|
[ "${DEFAULT_PKGS}" = "${EXPECTED_PKGS}" ] || die "2: expected default packages >${EXPECTED_PKGS}<; got >${DEFAULT_PKGS}<"
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
cat > $FILE << EOF
|
||||||
|
rimraf
|
||||||
|
not~a~package~name
|
||||||
|
mkdirp
|
||||||
|
EOF
|
||||||
|
printf %s "$(cat "${FILE}")" > $FILE # strip trailing newline
|
||||||
|
|
||||||
|
DEFAULT_PKGS="$(nvm_get_default_packages)"
|
||||||
|
EXPECTED_PKGS='rimraf not~a~package~name mkdirp'
|
||||||
|
[ "${DEFAULT_PKGS}" = "${EXPECTED_PKGS}" ] || die "3: expected default packages >${EXPECTED_PKGS}<; got >${DEFAULT_PKGS}<"
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
cat > $FILE << EOF
|
||||||
|
object-inspect @ 1.0.2
|
||||||
|
rimraf
|
||||||
|
EOF
|
||||||
|
|
||||||
|
DEFAULT_PKGS="$(nvm_get_default_packages 2>&1 >/dev/null)"
|
||||||
|
EXPECTED_PKGS="Only one package per line is allowed in the $FILE file. Please remove any lines with multiple space-separated values."
|
||||||
|
[ "${DEFAULT_PKGS}" = "${EXPECTED_PKGS}" ] || die "4: expected default packages >${EXPECTED_PKGS}<; got >${DEFAULT_PKGS}<"
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
rm -rf $FILE
|
||||||
|
|
||||||
|
DEFAULT_PKGS="$(nvm_get_default_packages)"
|
||||||
|
EXPECTED_PKGS=''
|
||||||
|
[ "${DEFAULT_PKGS}" = "${EXPECTED_PKGS}" ] || die "5: expected default packages >${EXPECTED_PKGS}<; got >${DEFAULT_PKGS}<"
|
||||||
|
|
||||||
|
touch $FILE
|
||||||
|
|
||||||
|
cleanup
|
||||||
@@ -9,4 +9,3 @@ nvm_has cat && type cat > /dev/null || die 'nvm_has locates "cat" properly'
|
|||||||
[ "~$(nvm_has foobarbaz 2>&1)" = "~" ] || die "nvm_has does not suppress error output"
|
[ "~$(nvm_has foobarbaz 2>&1)" = "~" ] || die "nvm_has does not suppress error output"
|
||||||
|
|
||||||
! nvm_has foobarbaz && ! type foobarbaz >/dev/null 2>&1 || die "nvm_has does not return a nonzero exit code when not found"
|
! nvm_has foobarbaz && ! type foobarbaz >/dev/null 2>&1 || die "nvm_has does not return a nonzero exit code when not found"
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ assert_not_ok nvm_has_solaris_binary "v3.3.1"
|
|||||||
# Valid io.js version numbers that have a Solaris binary succeed
|
# Valid io.js version numbers that have a Solaris binary succeed
|
||||||
assert_ok nvm_has_solaris_binary "iojs-v3.3.1"
|
assert_ok nvm_has_solaris_binary "iojs-v3.3.1"
|
||||||
|
|
||||||
# Invvalid io.js version numbers fail
|
# Invalid io.js version numbers fail
|
||||||
assert_not_ok nvm_has_solaris_binary "iojs-v0.12.7"
|
assert_not_ok nvm_has_solaris_binary "iojs-v0.12.7"
|
||||||
|
|
||||||
# Valid node version numbers that don't have a Solaris binary fail
|
# Valid node version numbers that don't have a Solaris binary fail
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cleanup () {
|
cleanup () {
|
||||||
rm "${NVM_DIR}/versions/io.js/v0.1.2/node"
|
rm -rf "${NVM_DIR}/versions/io.js/v0.1.2"
|
||||||
rm "${NVM_DIR}/versions/io.js/v0.1.2/iojs"
|
|
||||||
rmdir "${NVM_DIR}/versions/io.js/v0.1.2"
|
|
||||||
}
|
}
|
||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/versions/io.js/v0.1.2"
|
make_fake_iojs v0.1.2
|
||||||
touch "${NVM_DIR}/versions/io.js/v0.1.2/node"
|
|
||||||
touch "${NVM_DIR}/versions/io.js/v0.1.2/iojs"
|
|
||||||
|
|
||||||
nvm use iojs-v0.1.2
|
nvm use iojs-v0.1.2
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
cleanup () {
|
cleanup () {
|
||||||
rm -rf "${NVM_DIR}/v0.1.2/node"
|
rm -rf "${NVM_DIR}/v0.1.2"
|
||||||
}
|
}
|
||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.1.2"
|
make_fake_node v0.1.2
|
||||||
touch "${NVM_DIR}/v0.1.2/node"
|
|
||||||
|
|
||||||
nvm use 0.1.2
|
nvm use 0.1.2
|
||||||
|
|
||||||
|
|||||||
43
test/fast/Unit tests/nvm_install_no_progress_bar
Normal file
43
test/fast/Unit tests/nvm_install_no_progress_bar
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cleanup () {
|
||||||
|
nvm cache clear
|
||||||
|
nvm deactivate
|
||||||
|
rm -rf ${NVM_DIR}/v*
|
||||||
|
nvm unalias default
|
||||||
|
}
|
||||||
|
|
||||||
|
die () { >&2 echo "$@" ; cleanup ; exit 1; }
|
||||||
|
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
|
||||||
|
nvm_has_colors() { return 1 ; }
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
|
OUTPUT="$(2>&1 nvm install --no-progress v0.12.18)"
|
||||||
|
EXPECTED_OUTPUT="Downloading and installing node v0.12.18...
|
||||||
|
Downloading https://nodejs.org/dist/v0.12.18/node-v0.12.18-linux-x64.tar.xz...
|
||||||
|
Computing checksum with sha256sum
|
||||||
|
Checksums matched!
|
||||||
|
Now using node v0.12.18 (npm v2.15.11)
|
||||||
|
Creating default alias: default -> v0.12.18 *"
|
||||||
|
|
||||||
|
[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<"
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
|
OUTPUT="$(2>&1 nvm install v0.12.18)"
|
||||||
|
EXPECTED_OUTPUT="Downloading and installing node v0.12.18...
|
||||||
|
Downloading https://nodejs.org/dist/v0.12.18/node-v0.12.18-linux-x64.tar.xz...
|
||||||
|
######################################################################## 100.0%
|
||||||
|
Computing checksum with sha256sum
|
||||||
|
Checksums matched!
|
||||||
|
Now using node v0.12.18 (npm v2.15.11)
|
||||||
|
Creating default alias: default -> v0.12.18 *"
|
||||||
|
|
||||||
|
[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<"
|
||||||
|
|
||||||
|
cleanup
|
||||||
@@ -21,6 +21,7 @@ rm -rf "$TEST_DIR"
|
|||||||
mkdir "$TEST_DIR"
|
mkdir "$TEST_DIR"
|
||||||
ln -s "$(command which which)" "$TEST_DIR/which"
|
ln -s "$(command which which)" "$TEST_DIR/which"
|
||||||
ln -s "$(command which dirname)" "$TEST_DIR/dirname"
|
ln -s "$(command which dirname)" "$TEST_DIR/dirname"
|
||||||
|
ln -s "$(command which printf)" "$TEST_DIR/printf"
|
||||||
|
|
||||||
[ "$(PATH="$TEST_DIR" nvm_ls_current)" = "none" ] || die 'when node not installed, nvm_ls_current did not return "none"'
|
[ "$(PATH="$TEST_DIR" nvm_ls_current)" = "none" ] || die 'when node not installed, nvm_ls_current did not return "none"'
|
||||||
[ "@$(PATH="$TEST_DIR" nvm_ls_current 2> /dev/stdout 1> /dev/null)@" = "@@" ] || die 'when node not installed, nvm_ls_current returned error output'
|
[ "@$(PATH="$TEST_DIR" nvm_ls_current 2> /dev/stdout 1> /dev/null)@" = "@@" ] || die 'when node not installed, nvm_ls_current returned error output'
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ nvm_ls_remote >/dev/null || die "nvm_ls_remote_failed?!"
|
|||||||
|
|
||||||
CALL_COUNT="$(cat "$CALL_COUNT_PATH")"
|
CALL_COUNT="$(cat "$CALL_COUNT_PATH")"
|
||||||
|
|
||||||
EXPECTED_COUNT=3
|
EXPECTED_COUNT=4
|
||||||
[ "$CALL_COUNT" = "$EXPECTED_COUNT" ] || die "nvm_make_alias called $CALL_COUNT times; expected $EXPECTED_COUNT"
|
[ "$CALL_COUNT" = "$EXPECTED_COUNT" ] || die "nvm_make_alias called $CALL_COUNT times; expected $EXPECTED_COUNT"
|
||||||
|
|
||||||
ARGS="$(cat "$ALIAS_ARGS_PATH")"
|
ARGS="$(cat "$ALIAS_ARGS_PATH")"
|
||||||
|
|||||||
65
test/fast/Unit tests/nvm_ls_remote nightly
Executable file
65
test/fast/Unit tests/nvm_ls_remote nightly
Executable file
@@ -0,0 +1,65 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
die () { echo "$@" ; cleanup ; exit 1; }
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
unset -f nvm_download
|
||||||
|
}
|
||||||
|
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
|
||||||
|
MOCKS_DIR="$PWD/mocks"
|
||||||
|
|
||||||
|
# sample output at the time the test was written
|
||||||
|
TAB_PATH="$MOCKS_DIR/nodejs.org-download-nightly-index.tab"
|
||||||
|
nvm_download() {
|
||||||
|
cat "$TAB_PATH"
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPECTED_OUTPUT_PATH="$MOCKS_DIR/nvm_ls_remote nightly.txt"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm_ls_remote foo)"
|
||||||
|
EXIT_CODE="$(nvm_ls_remote foo >/dev/null 2>&1 ; echo $?)"
|
||||||
|
[ "_$OUTPUT" = "_N/A" ] || die "nonexistent version did not report N/A"
|
||||||
|
[ "_$EXIT_CODE" = "_3" ] || die "nonexistent version did not exit with code 3, got $EXIT_CODE"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm_ls_remote)"
|
||||||
|
EXPECTED_OUTPUT="$(cat "$EXPECTED_OUTPUT_PATH")"
|
||||||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "bare nvm_ls_remote did not output expected sorted versions; got $(echo ">$OUTPUT<") expected $(echo ">$EXPECTED_OUTPUT<")"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm_ls_remote 10.0)"
|
||||||
|
EXPECTED_OUTPUT="v10.0.0-nightly20180424982adb5994
|
||||||
|
v10.0.1-nightly20180505ff148b987d"
|
||||||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_ls_remote 10.0 did not output 10.0 nightly versions; got $OUTPUT"
|
||||||
|
|
||||||
|
# Sanity checks
|
||||||
|
OUTPUT="$(nvm_print_implicit_alias remote stable)"
|
||||||
|
EXPECTED_OUTPUT_PATH="${MOCKS_DIR}/nvm_print_implicit_alias remote stable nightly.txt"
|
||||||
|
EXPECTED_OUTPUT="$(cat "${EXPECTED_OUTPUT_PATH}")"
|
||||||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_print_implicit_alias remote stable did not output $EXPECTED_OUTPUT; got $OUTPUT"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm_print_implicit_alias remote unstable)"
|
||||||
|
EXPECTED_OUTPUT="N/A"
|
||||||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_print_implicit_alias remote unstable did not output |$EXPECTED_OUTPUT|; got |$OUTPUT|"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm_ls_remote stable)"
|
||||||
|
EXPECTED_OUTPUT_PATH="${MOCKS_DIR}/nvm_ls_remote stable nightly.txt"
|
||||||
|
EXPECTED_OUTPUT="$(cat "${EXPECTED_OUTPUT_PATH}")"
|
||||||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_ls_remote stable did not output $EXPECTED_OUTPUT; got $OUTPUT"
|
||||||
|
|
||||||
|
OUTPUT="$(nvm_ls_remote unstable)"
|
||||||
|
EXPECTED_OUTPUT="N/A"
|
||||||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_ls_remote unstable did not output |$EXPECTED_OUTPUT|; got |$OUTPUT|"
|
||||||
|
|
||||||
|
EXPECTED_OUTPUT_PATH="$MOCKS_DIR/nvm_ls_remote LTS nightly.txt"
|
||||||
|
EXPECTED_OUTPUT="$(cat "$EXPECTED_OUTPUT_PATH")"
|
||||||
|
OUTPUT="$(NVM_LTS='*' nvm_ls_remote)"
|
||||||
|
|
||||||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "\`NVM_LTS='*' nvm_ls_remote\` did not output >$EXPECTED_OUTPUT<; got >$OUTPUT<"
|
||||||
|
|
||||||
|
EXPECTED_OUTPUT_PATH="$MOCKS_DIR/nvm_ls_remote LTS nightly argon.txt"
|
||||||
|
EXPECTED_OUTPUT="$(cat "$EXPECTED_OUTPUT_PATH")"
|
||||||
|
OUTPUT="$(NVM_LTS=argon nvm_ls_remote)"
|
||||||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "\`NVM_LTS=argon nvm_ls_remote\` did not output >$EXPECTED_OUTPUT<; got >$OUTPUT<"
|
||||||
|
|
||||||
|
cleanup
|
||||||
@@ -35,4 +35,3 @@ iojs-v1.0.4"
|
|||||||
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_ls_remote_iojs 1.0 did not output 1.0.x versions; got $OUTPUT"
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_ls_remote_iojs 1.0 did not output 1.0.x versions; got $OUTPUT"
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
|
|||||||
@@ -22,4 +22,3 @@ die () { echo "$@" ; exit 1; }
|
|||||||
[ "~$(nvm_num_version_groups 1.2.3)" = "~3" ] || die "1.2.3 should give 3"
|
[ "~$(nvm_num_version_groups 1.2.3)" = "~3" ] || die "1.2.3 should give 3"
|
||||||
[ "~$(nvm_num_version_groups v1.2.3)" = "~3" ] || die "v1.2.3 should give 3"
|
[ "~$(nvm_num_version_groups v1.2.3)" = "~3" ] || die "v1.2.3 should give 3"
|
||||||
[ "~$(nvm_num_version_groups v1.2.3.)" = "~3" ] || die "v1.2.3. should give 3"
|
[ "~$(nvm_num_version_groups v1.2.3.)" = "~3" ] || die "v1.2.3. should give 3"
|
||||||
|
|
||||||
|
|||||||
@@ -23,4 +23,3 @@ EXPECTED_SECOND_MSG="Only implicit aliases 'stable', 'unstable', 'iojs', and 'no
|
|||||||
SECOND_EXIT_CODE="$(nvm_print_implicit_alias local > /dev/null 2>&1 ; echo $?)"
|
SECOND_EXIT_CODE="$(nvm_print_implicit_alias local > /dev/null 2>&1 ; echo $?)"
|
||||||
[ "_$SECOND_EXIT_CODE" = "_2" ] \
|
[ "_$SECOND_EXIT_CODE" = "_2" ] \
|
||||||
|| die "nvm_print_implicit_alias without stable|unstable|iojs|node had wrong exit code: expected 2, got $SECOND_EXIT_CODE"
|
|| die "nvm_print_implicit_alias without stable|unstable|iojs|node had wrong exit code: expected 2, got $SECOND_EXIT_CODE"
|
||||||
|
|
||||||
|
|||||||
@@ -14,13 +14,14 @@ cleanup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
|
\. ../../common.sh
|
||||||
|
|
||||||
mkdir "${NVM_DIR}/v0.2.3"
|
make_fake_node v0.2.3
|
||||||
mkdir "${NVM_DIR}/v0.3.4"
|
make_fake_node v0.3.4
|
||||||
mkdir "${NVM_DIR}/v0.4.6"
|
make_fake_node v0.4.6
|
||||||
mkdir "${NVM_DIR}/v0.5.7"
|
make_fake_node v0.5.7
|
||||||
mkdir "${NVM_DIR}/v0.7.7"
|
make_fake_node v0.7.7
|
||||||
mkdir -p "${NVM_DIR}/versions/io.js/v0.98.0"
|
make_fake_iojs v0.98.0
|
||||||
|
|
||||||
LATEST_STABLE="$(nvm_print_implicit_alias local stable)"
|
LATEST_STABLE="$(nvm_print_implicit_alias local stable)"
|
||||||
[ "_$LATEST_STABLE" = "_0.4" ] || die "local stable is not latest even minor: expected 0.4, got $LATEST_STABLE"
|
[ "_$LATEST_STABLE" = "_0.4" ] || die "local stable is not latest even minor: expected 0.4, got $LATEST_STABLE"
|
||||||
@@ -35,8 +36,9 @@ LATEST_IOJS="$(nvm_print_implicit_alias local iojs)"
|
|||||||
[ "_$LATEST_IOJS" = "_iojs-v0.98" ] || die "local iojs is not latest iojs: expected iojs-v0.98, got $LATEST_IOJS"
|
[ "_$LATEST_IOJS" = "_iojs-v0.98" ] || die "local iojs is not latest iojs: expected iojs-v0.98, got $LATEST_IOJS"
|
||||||
|
|
||||||
## node post v1.0/io.js merger ##
|
## node post v1.0/io.js merger ##
|
||||||
mkdir -p "${NVM_DIR}/versions/node/v1.0.0"
|
make_fake_node v1.0.0
|
||||||
mkdir -p "${NVM_DIR}/versions/node/v1.1.0"
|
make_fake_node v1.1.0
|
||||||
|
|
||||||
|
|
||||||
LATEST_STABLE="$(nvm_print_implicit_alias local stable)"
|
LATEST_STABLE="$(nvm_print_implicit_alias local stable)"
|
||||||
[ "_$LATEST_STABLE" = "_1.1" ] || die "local stable when post-v1.0 exists is not latest: expected 1.1, got $LATEST_STABLE"
|
[ "_$LATEST_STABLE" = "_1.1" ] || die "local stable when post-v1.0 exists is not latest: expected 1.1, got $LATEST_STABLE"
|
||||||
|
|||||||
@@ -75,4 +75,3 @@ EXIT_CODE="$(nvm_remote_versions iojs >/dev/null 2>&1 ; echo $?)"
|
|||||||
[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_versions iojs did not exit with 0, got $EXIT_CODE"
|
[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_versions iojs did not exit with 0, got $EXIT_CODE"
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
|
|||||||
32
test/fast/Unit tests/nvm_stdout_is_terminal
Executable file
32
test/fast/Unit tests/nvm_stdout_is_terminal
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
tempfile=$(mktemp)
|
||||||
|
|
||||||
|
die () { echo "$@" ; cleanup; exit 1; }
|
||||||
|
cleanup() { rm -f "$tempfile"; }
|
||||||
|
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
# test is running in a terminal, e.g. locally
|
||||||
|
nvm_stdout_is_terminal || die 'nvm_stdout_is_terminal should be true'
|
||||||
|
nvm_stdout_is_terminal 2>/dev/null || die 'nvm_stdout_is_terminal should be true when stderr is redirected'
|
||||||
|
nvm_stdout_is_terminal </dev/null || die 'nvm_stdout_is_terminal should be true when stdin is redirected'
|
||||||
|
else
|
||||||
|
# test is not running in a terminal, e.g. on travis-ci
|
||||||
|
! nvm_stdout_is_terminal || die 'nvm_stdout_is_terminal should be false'
|
||||||
|
! nvm_stdout_is_terminal 2>/dev/null || die 'nvm_stdout_is_terminal should be false when stderr is redirected'
|
||||||
|
! nvm_stdout_is_terminal </dev/null || die 'nvm_stdout_is_terminal should be false when stdin is redirected'
|
||||||
|
fi
|
||||||
|
|
||||||
|
(! nvm_stdout_is_terminal || echo "boo!") | read && die 'nvm_stdout_is_terminal should be false when stdout goes to a pipe'
|
||||||
|
! nvm_stdout_is_terminal >/dev/null || die 'nvm_stdout_is_terminal should be false when stdout goes to /dev/null'
|
||||||
|
! nvm_stdout_is_terminal >"$tempfile" || die 'nvm_stdout_is_terminal should be false when stdout goes to a file'
|
||||||
|
[ "$(nvm_stdout_is_terminal; echo $?)" = "1" ] || die 'nvm_stdout_is_terminal should be false in command substitution'
|
||||||
|
|
||||||
|
# also test the 'true' case while running on travis-ci or similar environments
|
||||||
|
nvm_stdout_is_terminal >/dev/tty || die 'nvm_stdout_is_terminal should be true when stdout goes to /dev/tty'
|
||||||
|
nvm_stdout_is_terminal >/dev/tty 2>/dev/null || die 'nvm_stdout_is_terminal should be true when stdout goes to /dev/tty and stderr is redirected'
|
||||||
|
nvm_stdout_is_terminal >/dev/tty </dev/null || die 'nvm_stdout_is_terminal should be true when stdout goes to /dev/tty and stdin is redirected'
|
||||||
|
|
||||||
|
cleanup
|
||||||
27
test/fast/Unit tests/nvm_supports_source_options
Executable file
27
test/fast/Unit tests/nvm_supports_source_options
Executable file
@@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
|
||||||
|
x=0
|
||||||
|
i=0
|
||||||
|
runs=5
|
||||||
|
calls=500
|
||||||
|
first_result=false
|
||||||
|
if (nvm_supports_source_options && printf .); then
|
||||||
|
first_result=true
|
||||||
|
fi
|
||||||
|
while [ $x -le $runs ]; do
|
||||||
|
y=$x
|
||||||
|
x=$(( x + 1 ))
|
||||||
|
while [ $i -le $calls ]; do
|
||||||
|
this_result=false
|
||||||
|
if (nvm_supports_source_options && printf .); then
|
||||||
|
this_result=true
|
||||||
|
fi
|
||||||
|
[ $this_result = $first_result ] || die "call ${i}, run ${y} got ${this_result}; expected ${first_result}"
|
||||||
|
i=$(( i + 1 ))
|
||||||
|
done
|
||||||
|
done
|
||||||
|
echo "${runs} runs of ${calls} calls succeeded"
|
||||||
@@ -29,4 +29,3 @@ nvm_tree_contains_path tmp2 tmp2/node || die '"tmp2" should contain "tmp2/node"'
|
|||||||
nvm_tree_contains_path tmp2 tmp/node && die '"tmp2" should not contain "tmp/node"'
|
nvm_tree_contains_path tmp2 tmp/node && die '"tmp2" should not contain "tmp/node"'
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
|
|||||||
@@ -18,4 +18,3 @@ nvm_validate_implicit_alias stable || die "nvm_validate_implicit_alias stable di
|
|||||||
nvm_validate_implicit_alias unstable || die "nvm_validate_implicit_alias unstable did not exit 0"
|
nvm_validate_implicit_alias unstable || die "nvm_validate_implicit_alias unstable did not exit 0"
|
||||||
nvm_validate_implicit_alias node || die "nvm_validate_implicit_alias node did not exit 0"
|
nvm_validate_implicit_alias node || die "nvm_validate_implicit_alias node did not exit 0"
|
||||||
nvm_validate_implicit_alias iojs || die "nvm_validate_implicit_alias iojs did not exit 0"
|
nvm_validate_implicit_alias iojs || die "nvm_validate_implicit_alias iojs did not exit 0"
|
||||||
|
|
||||||
|
|||||||
@@ -9,4 +9,3 @@ die () { echo "$@" ; exit 1; }
|
|||||||
[ "$(nvm_version_dir new)" = "$(nvm_version_dir)" ] || die '"nvm_version_dir new" did not return new dir path'
|
[ "$(nvm_version_dir new)" = "$(nvm_version_dir)" ] || die '"nvm_version_dir new" did not return new dir path'
|
||||||
[ "$(nvm_version_dir old)" = "$NVM_DIR" ] || die '"nvm_version_dir old" did not return old dir path'
|
[ "$(nvm_version_dir old)" = "$NVM_DIR" ] || die '"nvm_version_dir old" did not return old dir path'
|
||||||
[ "$(nvm_version_dir foo 2>&1)" = "unknown version dir" ] || die '"nvm_version_dir foo" did not error out'
|
[ "$(nvm_version_dir foo 2>&1)" = "unknown version dir" ] || die '"nvm_version_dir foo" did not error out'
|
||||||
|
|
||||||
|
|||||||
@@ -13,4 +13,3 @@ fi
|
|||||||
if nvm_version_greater 0.10.0 0.10.0; then
|
if nvm_version_greater 0.10.0 0.10.0; then
|
||||||
die '"nvm_version_greater" returned false for the same two versions'
|
die '"nvm_version_greater" returned false for the same two versions'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -12,4 +12,3 @@ EXPECTED_OUTPUT="$NVM_DIR/foo"
|
|||||||
[ "$(nvm_version_path v0.11.0)" = "$NVM_DIR/v0.11.0" ] || die 'old version has the wrong path'
|
[ "$(nvm_version_path v0.11.0)" = "$NVM_DIR/v0.11.0" ] || die 'old version has the wrong path'
|
||||||
[ "$(nvm_version_path v0.12.0)" = "$NVM_DIR/versions/node/v0.12.0" ] || die 'new version has the wrong path'
|
[ "$(nvm_version_path v0.12.0)" = "$NVM_DIR/versions/node/v0.12.0" ] || die 'new version has the wrong path'
|
||||||
[ "$(nvm_version_path iojs-v0.12.0)" = "$NVM_DIR/versions/io.js/v0.12.0" ] || die 'iojs version has the wrong path'
|
[ "$(nvm_version_path iojs-v0.12.0)" = "$NVM_DIR/versions/io.js/v0.12.0" ] || die 'iojs version has the wrong path'
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
|
export NVM_DIR_BASE="/tmp"
|
||||||
|
export NVM_DIR="${NVM_DIR_BASE}/"
|
||||||
|
|
||||||
|
\. ../../nvm.sh
|
||||||
|
|
||||||
|
[ "${NVM_DIR}" = "${NVM_DIR_BASE}" ] || die 'nvm should remove the last trailing slash in "$NVM_DIR"'
|
||||||
|
|
||||||
|
export NVM_DIR="${NVM_DIR_BASE}//"
|
||||||
|
|
||||||
|
\. ../../nvm.sh
|
||||||
|
|
||||||
|
[ "${NVM_DIR}" = "${NVM_DIR_BASE}" ] || die 'nvm should remove all the last trailing slashes in "$NVM_DIR"'
|
||||||
@@ -14,6 +14,8 @@ cleanup () {
|
|||||||
unset HOME
|
unset HOME
|
||||||
unset NVM_ENV
|
unset NVM_ENV
|
||||||
unset NVM_DETECT_PROFILE
|
unset NVM_DETECT_PROFILE
|
||||||
|
unset BASH_VERSION
|
||||||
|
unset ZSH_VERSION
|
||||||
unset -f setup cleanup die
|
unset -f setup cleanup die
|
||||||
rm -f ".bashrc" ".bash_profile" ".zshrc" ".profile" "test_profile" > "/dev/null" 2>&1
|
rm -f ".bashrc" ".bash_profile" ".zshrc" ".profile" "test_profile" > "/dev/null" 2>&1
|
||||||
}
|
}
|
||||||
@@ -26,8 +28,14 @@ setup
|
|||||||
# Confirm profile detection via $SHELL works and that $PROFILE overrides profile detection
|
# Confirm profile detection via $SHELL works and that $PROFILE overrides profile detection
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# setting $PROFILE to /dev/null should return no detected profile
|
||||||
|
NVM_DETECT_PROFILE="$(PROFILE='/dev/null'; nvm_detect_profile)"
|
||||||
|
if [ -n "$NVM_DETECT_PROFILE" ]; then
|
||||||
|
die "nvm_detect_profile still detected a profile even though PROFILE=/dev/null"
|
||||||
|
fi
|
||||||
|
|
||||||
# .bashrc should be detected for bash
|
# .bashrc should be detected for bash
|
||||||
NVM_DETECT_PROFILE="$(SHELL="/bin/bash"; unset PROFILE; nvm_detect_profile)"
|
NVM_DETECT_PROFILE="$(BASH_VERSION="1"; unset PROFILE; nvm_detect_profile)"
|
||||||
if [ "$NVM_DETECT_PROFILE" != "$HOME/.bashrc" ]; then
|
if [ "$NVM_DETECT_PROFILE" != "$HOME/.bashrc" ]; then
|
||||||
die "nvm_detect_profile didn't pick \$HOME/.bashrc for bash"
|
die "nvm_detect_profile didn't pick \$HOME/.bashrc for bash"
|
||||||
fi
|
fi
|
||||||
@@ -39,7 +47,7 @@ if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# .zshrc should be detected for zsh
|
# .zshrc should be detected for zsh
|
||||||
NVM_DETECT_PROFILE="$(SHELL="/usr/bin/zsh"; unset PROFILE; nvm_detect_profile)"
|
NVM_DETECT_PROFILE="$(ZSH_VERSION="1"; unset PROFILE; unset BASH_VERSION; nvm_detect_profile)"
|
||||||
if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then
|
if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then
|
||||||
die "nvm_detect_profile didn't pick \$HOME/.zshrc for zsh"
|
die "nvm_detect_profile didn't pick \$HOME/.zshrc for zsh"
|
||||||
fi
|
fi
|
||||||
@@ -47,7 +55,7 @@ fi
|
|||||||
# $PROFILE should override .zshrc profile detection
|
# $PROFILE should override .zshrc profile detection
|
||||||
NVM_DETECT_PROFILE="$(SHELL="/usr/bin/zsh"; PROFILE="test_profile"; nvm_detect_profile)"
|
NVM_DETECT_PROFILE="$(SHELL="/usr/bin/zsh"; PROFILE="test_profile"; nvm_detect_profile)"
|
||||||
if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then
|
if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then
|
||||||
die "nvm_detect_profile ignored \$PROFILE"
|
die "nvm_detect_profile ignored \$PROFILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -56,7 +64,7 @@ fi
|
|||||||
#
|
#
|
||||||
|
|
||||||
# $PROFILE is a valid file
|
# $PROFILE is a valid file
|
||||||
NVM_DETECT_PROFILE="$(PROFILE="test_profile"; nvm_detect_profile)"
|
NVM_DETECT_PROFILE="$(PROFILE="test_profile"; unset ZSH_VERSION; nvm_detect_profile)"
|
||||||
if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then
|
if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then
|
||||||
die "nvm_detect_profile didn't pick \$PROFILE when it was a valid file"
|
die "nvm_detect_profile didn't pick \$PROFILE when it was a valid file"
|
||||||
fi
|
fi
|
||||||
@@ -75,35 +83,35 @@ fi
|
|||||||
#
|
#
|
||||||
|
|
||||||
# It should favor .profile if file exists
|
# It should favor .profile if file exists
|
||||||
NVM_DETECT_PROFILE="$(unset SHELL; nvm_detect_profile)"
|
NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)"
|
||||||
if [ "$NVM_DETECT_PROFILE" != "$HOME/.profile" ]; then
|
if [ "$NVM_DETECT_PROFILE" != "$HOME/.profile" ]; then
|
||||||
die "nvm_detect_profile should have selected .profile"
|
die "nvm_detect_profile should have selected .profile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Otherwise, it should favor .bashrc if file exists
|
# Otherwise, it should favor .bashrc if file exists
|
||||||
rm ".profile"
|
rm ".profile"
|
||||||
NVM_DETECT_PROFILE="$(unset SHELL; nvm_detect_profile)"
|
NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)"
|
||||||
if [ "$NVM_DETECT_PROFILE" != "$HOME/.bashrc" ]; then
|
if [ "$NVM_DETECT_PROFILE" != "$HOME/.bashrc" ]; then
|
||||||
die "nvm_detect_profile should have selected .bashrc"
|
die "nvm_detect_profile should have selected .bashrc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Otherwise, it should favor .bash_profile if file exists
|
# Otherwise, it should favor .bash_profile if file exists
|
||||||
rm ".bashrc"
|
rm ".bashrc"
|
||||||
NVM_DETECT_PROFILE="$(unset SHELL; nvm_detect_profile)"
|
NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)"
|
||||||
if [ "$NVM_DETECT_PROFILE" != "$HOME/.bash_profile" ]; then
|
if [ "$NVM_DETECT_PROFILE" != "$HOME/.bash_profile" ]; then
|
||||||
die "nvm_detect_profile should have selected .bash_profile"
|
die "nvm_detect_profile should have selected .bash_profile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Otherwise, it should favor .zshrc if file exists
|
# Otherwise, it should favor .zshrc if file exists
|
||||||
rm ".bash_profile"
|
rm ".bash_profile"
|
||||||
NVM_DETECT_PROFILE="$(unset SHELL; nvm_detect_profile)"
|
NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)"
|
||||||
if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then
|
if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then
|
||||||
die "nvm_detect_profile should have selected .zshrc"
|
die "nvm_detect_profile should have selected .zshrc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# It should be empty if none is found
|
# It should be empty if none is found
|
||||||
rm ".zshrc"
|
rm ".zshrc"
|
||||||
NVM_DETECT_PROFILE="$(unset SHELL; nvm_detect_profile)"
|
NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)"
|
||||||
if [ ! -z "$NVM_DETECT_PROFILE" ]; then
|
if [ ! -z "$NVM_DETECT_PROFILE" ]; then
|
||||||
die "nvm_detect_profile should have returned an empty value"
|
die "nvm_detect_profile should have returned an empty value"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user