Repository: nvm
Issue: CentOS issues with ls-remote and install
Labels: needs followup

<!-- 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: CentOS 5.10

- `nvm debug` output:
<details>

```sh
nvm --version: v0.33.4
$SHELL: /bin/bash
$HOME: /data/jenkins
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)'
uname -a: 'Linux 2.6.18-371.12.1.el5 #1 SMP Wed Sep 3 16:22:34 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux'
OS version: CentOS release 5.10 (Final)
curl: /usr/bin/curl, curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
wget: /usr/bin/wget, GNU Wget 1.11.4 Red Hat modified
sed: invalid option -- E
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if extension supplied)
  -c, --copy
                 use copy instead of rename when shuffling files in -i mode
         (avoids change of input file ownership)
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -r, --regexp-extended
                 use extended regular expressions in the script.
  -s, --separate
                 consider files as separate rather than as a single continuous
                 long stream.
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

E-mail bug reports to: bonzini@gnu.org .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
git: , git version 2.1.3
nvm current: system
which node: /usr/bin/node
which iojs: which: no iojs in (/local/bin:/local/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin)
which npm: /usr/bin/npm
npm config get prefix: /opt/node-v6.11.2-linux-x64
npm root -g: /opt/node-v6.11.2-linux-x64/lib/node_modules
```
</details>

- `nvm ls` output:
<details>
<!-- do not delete the following blank line -->

```sh

```
</details>

- How did you install `nvm`? (e.g. install script in readme, homebrew): Shell script following the readme
<details>

```sh
git clone https://github.com/creationix/nvm.git ${NVM_DIR}
git -C ${NVM_DIR} checkout --quiet v0.33.4
. ${NVM_DIR}/nvm.sh
nvm ls-remote
```
</details>

- What steps did you perform? nvm ls-remote and nvm install

- What happened?
On these CentOS boxes, nvm ls-remote breaks for me as of version 0.33.3 and nvm install breaks for me as of version 0.31.1. The nvm ls-remote command returns "N/A". Checking the connection to https://nodejs.org/dist/ with curl works fine. Using version 0.31.0 works so far.

- What did you expect to happen?
The commands should work as usual.

- Is there anything in any of your profile files (`.bashrc`, `.bash_profile`, `.zshrc`, etc) that modifies the `PATH`?

<!-- if this does not apply, please delete this section -->
- If you are having installation issues, or getting "N/A", what does `curl -I --compressed -v https://nodejs.org/dist/` print out?
<details>

```sh
* About to connect() to nodejs.org port 443
*   Trying 104.20.22.46... connected
* Connected to nodejs.org (104.20.22.46) port 443
* successfully set certificate verify locations:
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSLv3, TLS handshake, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSL connection using AES128-SHA
* Server certificate:
* 	 subject: /OU=Domain Control Validated/OU=PositiveSSL Wildcard/CN=*.nodejs.org
* 	 start date: 2017-08-14 00:00:00 GMT
* 	 expire date: 2019-11-20 23:59:59 GMT
* 	 subjectAltName: nodejs.org matched
* 	 issuer: /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Domain Validation Secure Server CA
* SSL certificate verify ok.
> HEAD /dist/ HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: nodejs.org
> Accept: */*
> Accept-Encoding: deflate, gzip
> 
< HTTP/1.1 200 OK
< Date: Fri, 08 Sep 2017 19:22:03 GMT
< Content-Type: text/html
< Connection: keep-alive
< Set-Cookie: __cfduid=d688cbe20209e376ee613b24e849ed9bc1504898523; expires=Sat, 08-Sep-18 19:22:03 GMT; path=/; domain=.nodejs.org; HttpOnly
< CF-Cache-Status: HIT
< Vary: Accept-Encoding
< Expires: Fri, 08 Sep 2017 23:22:03 GMT
< Cache-Control: public, max-age=14400
< Server: cloudflare-nginx
< CF-RAY: 39b4463e8e82559a-ORD
< Content-Encoding: gzip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connection #0 to host nodejs.org left intact

* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
HTTP/1.1 200 OK
Date: Fri, 08 Sep 2017 19:22:03 GMT
Content-Type: text/html
Connection: keep-alive
Set-Cookie: __cfduid=d688cbe20209e376ee613b24e849ed9bc1504898523; expires=Sat, 08-Sep-18 19:22:03 GMT; path=/; domain=.nodejs.org; HttpOnly
CF-Cache-Status: HIT
Vary: Accept-Encoding
Expires: Fri, 08 Sep 2017 23:22:03 GMT
Cache-Control: public, max-age=14400
Server: cloudflare-nginx
CF-RAY: 39b4463e8e82559a-ORD
Content-Encoding: gzip
```
</details>