Peter Dave Hello
daa9c3604d
[Fix] To confirm curl exists before detecting curl libz feature
2017-04-06 05:20:55 +08:00
Peter Dave Hello
ec3ba1973a
[New] `install.sh`: Parallel script download jobs
2017-04-05 04:54:38 +08:00
Peter Dave Hello
c6866eeb37
[Test] "nvm alias" lts test bug fix
2017-04-02 14:34:04 +08:00
Peter Dave Hello
7bd7a35cb2
[Docs] Improve nvm usage examples
...
Correct two double [tab] and try to improve its readability
2017-04-06 00:36:13 +08:00
Peter Dave Hello
e84bcaabdc
[Refactor] Improve profile detection in install script
2017-04-03 23:06:04 +08:00
Yanick Champoux
d4e3f0943b
[Docs] add 'fnm' as part of the fish alternatives
2017-04-04 15:01:39 -04:00
Peter Dave Hello
3f5fd57881
[Refactor] Reduce a sed command with pipe
2017-04-05 04:58:34 +08:00
Peter Dave Hello
f524bcb973
[Fix] Correct indent in install.sh
2017-04-05 05:01:54 +08:00
Peter Dave Hello
a0534b720a
[Tests] Reduce apt package dependencies calculation complexity
2017-04-02 16:48:28 +08:00
Peter Dave Hello
424056c839
[Tests] Remove ShellCheck manual dependency install under Ubuntu 14.04
2017-04-02 15:49:01 +08:00
Peter Dave Hello
18df8e3d2e
[Tests] Remove ppa source since we migrated to Ubuntu Trusty
2017-04-02 07:24:56 +08:00
Jordan Harband
4249b1c2bb
[Fix] `nvm_ensure_version_installed`: add `system` support.
...
Relates to #1238
2017-03-31 00:52:56 -07:00
Peter Dave Hello
5776cc952a
[copyright] update to 2017
2017-03-29 17:54:15 +08:00
Peter Dave Hello
6c24346af5
[New] Add missing commands in bash_completion
2017-03-30 19:49:30 +08:00
Peter Dave Hello
450088e51a
[Refactor] Improve if conditoion logic in "use"
2017-03-30 00:41:31 +08:00
Peter Dave Hello
9a6e657e53
[Docs] Remove curl `--compressed` notes since we added its detection
2017-03-29 17:51:23 +08:00
Peter Dave Hello
8fc7e854de
[Tests] Comment out ksh dependency installation, cc #574
...
- Mistakenly uncommented in 70370a857f
- per afba4e08fd
/ #574
2017-03-29 18:05:15 +08:00
Peter Dave Hello
93c1036758
[Tests] Move to Ubuntu 14.04 on Travis CI
...
Since Ubuntu 12.04 is pretty old now, it's also going to EOL next month,
maybe we can just move on Ubuntu 14.04 first.
2017-03-26 05:19:57 +08:00
Ægir Örn Símonarson
4411abf82e
[Docs] Add Mac OS "troubleshooting" to README
...
It has a section on nvm node version not being found in vim.
2017-03-29 19:04:31 -07:00
Peter Dave Hello
a36af70571
[Docs] Update issue #900 title in README.markdown
2017-03-28 22:47:34 +08:00
Peter Dave Hello
059ab0e1ac
[Refactor] Make the code a little bit cleaner
2017-03-28 15:27:49 +08:00
Jordan Harband
b9f9977cdd
[Fix] `nvm install -s`: npm detection
...
- add `nvm_use_if_needed`
- add `nvm_install_npm_if_needed`
2017-03-27 15:00:50 -07:00
Peter Dave Hello
676fff0219
[completions] Remove nospace in bash_completion
2017-03-26 06:10:53 +08:00
Peter Dave Hello
7b253c8c0a
[New] Supercharge `nvm debug` output
...
Try to get shell version, OS and its version, curl/wget/git version.
2017-03-23 14:48:00 +08:00
Peter Dave Hello
f344d0694b
[Tests] Move cabel, nvm & npm install into TravisCI "install" section
2017-03-26 05:22:48 +08:00
Peter Dave Hello
d9704471ff
[Tests] Cache "node_modules" in CI
2017-03-26 04:06:32 +08:00
Peter Dave Hello
82aaa0a20d
[Tests] Do not install nodejs, npm deps for SHELLCHECK
2017-03-25 16:57:42 +08:00
Peter Dave Hello
e41197ea94
[Tests] Improve npm dependencies installaion in travis ci
2017-03-24 13:46:50 +08:00
Peter Dave Hello
6ef2be8db4
[Docs] Get https://nodejs.org/dist header instead of its body, fix #1451
2017-03-23 14:12:31 +08:00
Peter Dave Hello
d465493832
[Docs] Use https protocol for nodejs.org in issue template
2017-03-23 14:07:07 +08:00
Peter Dave Hello
0e5fba2dfb
[Docs] Also add `--compressed` for `curl` in issue template, cc #1437
2017-03-23 14:01:46 +08:00
Peter Dave Hello
973dfc6d4a
[New] Dynamically detect if curl supports `--compressed`
2017-03-23 16:51:20 +08:00
Peter Dave Hello
6a3b1dd2c3
[New] Enable curl auto compression/decompression
...
Enable `--compressed` parameter on curl to automatically enable
compression on request content by sending coressponding header, if the
server side supports compression format like deflate or gzip, curl will
also decompress the content automatically, so there is no additional
works need to done manually on client side, but just enjoy the benifits
of bandwidth and time saving!
Take https://nodejs.org/dist/index.tab as an example which is last
modified on Tue, 14 Mar 2017 22:41:05 GMT, the compressed transmission
only take 4829 bytes howevet the not compressed on taks 48000 bytes,
which is about 10 times larger!
This feature can be traced back to Sep 3 2002, in curl commit:
- 64bbe9dfaf
So should be supported on various versions widely.
2017-03-23 16:51:20 +08:00
Peter Dave Hello
4c97828f79
Update .gitattributes
2017-03-23 04:52:46 +08:00
Peter Dave Hello
ccd9697ef2
Delete .npmignore
2017-03-23 08:47:53 +08:00
Peter Dave Hello
20a40dd8c2
[Docs] Update CONTRIBUTING.md
2017-03-23 04:46:49 +08:00
Peter Dave Hello
237c3a78e2
[Tests] Add retry on urchin setup which has no built in retry feature
...
Unlike other built in functions like git fetch or apt-get dependencies,
manual installations won't have retry by default, enabling retry could
help reduce the impact of network issues and furthur prevent getting
build error like Job #1956.21:
- https://travis-ci.org/creationix/nvm/jobs/212640007
Ref:
- https://docs.travis-ci.com/user/common-build-problems/
2017-03-22 20:42:33 +08:00
Peter Dave Hello
fa3631fee3
[Refactor] Add `nvm_has_non_aliased`
2017-03-20 16:57:26 +08:00
Peter Dave Hello
316c9f34c6
[Performance] Use awk's comparison to save a pipe to grep
2017-03-20 04:50:32 +08:00
Peter Dave Hello
6cb12b0f99
[Performance] Improve awk usage
2017-03-21 04:23:53 +08:00
Peter Dave Hello
6ed73b0696
[Refactor] Improve sed usage for performance
2017-03-20 17:53:44 -07:00
Shirsh Zibbu
dcd008ff61
[Refactor] remove unnecessary quotes
2017-03-07 05:46:45 +05:30
Peter Dave Hello
039afb9470
[Docs] Update Installation section
...
1. If we are not going to install nodejs or io.js from source, we may
not need to have c++ compiler or libssl-dev package
2. the `build-essential` and `libssl-dev` packages should work on all
the Debian and Ubuntu based GNU/Linux distros
3. Remove useless blank lines
2017-03-16 04:22:29 +08:00
Peter Dave Hello
b879628394
[Fix] declare MANPATH if and only if it's not set
...
By manpath's man page in Ubuntu 16.04:
> If $MANPATH is set, manpath will simply display its contents and issue
> a warning.
By fa22d712ff
for #1413 , `nvm` now will
declare the "MANPATH" variable, no matter if it's set or not, so in the
situation that $MANPATH is set, you'll get the warning:
> manpath: warning: $MANPATH set, ignoring /etc/manpath.config
2017-03-19 02:19:14 +08:00
Jordan Harband
9b2629384f
[Fix] `nvm install -s`: ensure additional params lack a trailing space.
...
Note: I believe this does not fix the underlying issue in zsh, which is
that it does not split up `$ADDITIONAL_PARAMETERS` and instead passes
the contents as one single argument.
2017-03-17 23:20:17 -07:00
Peter Dave Hello
50ae1e5199
[Fix] Install failed should return correct exit status, fix #1347
2016-12-10 00:20:04 +08:00
Matthew McEachen
1e6b5ce039
[Fix] stop setting mirror env vars unnecessarily
...
Fixes #1429
2017-03-16 23:54:55 -07:00
Peter Dave Hello
952d0067b3
[Fix] bash_completion should make sure nvm loaded
2017-03-15 14:34:28 +08:00
Peter Dave Hello
911ff87601
[Fix] bash_completion source prompt, remove &&
2017-03-15 14:34:28 +08:00
Peter Dave Hello
9593616b8c
[Fix] NVM_PROFILE bash/zsh detection in installation
2017-03-15 14:34:28 +08:00