Repository: nvm
Issue: Installing node from source fails in configure because of --latest-npm option
Labels: installing node,bugs

- Operating system and version: macOS 10.13.4
- `nvm debug` output:
<details>

```
nvm --version: v0.34.0
$TERM_PROGRAM: iTerm.app
$SHELL: /bin/bash
$SHLVL: 1
$HOME: /Users/jcayzac
$NVM_DIR: '$HOME/.nvm'
$PATH: $HOME/.rbenv/shims:$HOME/.prefix/bin:$HOME/.cargo/bin:$HOME/.go/bin:/usr/local/opt/go/libexec/bin:$HOME/Library/Android/sdk/tools:$HOME/Library/Android/sdk/tools/bin:$HOME/Library/Android/sdk/platform-tools:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)'
uname -a: 'Darwin 17.7.0 Darwin Kernel Version 17.7.0: Wed Feb 27 00:43:23 PST 2019; root:xnu-4570.71.35~1/RELEASE_X86_64 x86_64'
OS version: Mac 10.13.6 17G6030
curl: /usr/bin/curl, curl 7.54.0 (x86_64-apple-darwin17.0) libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
wget: /usr/local/bin/wget, GNU Wget 1.20.3 built on darwin17.7.0.
git: /usr/local/bin/git, git version 2.22.0
grep: /usr/bin/grep (grep --color), grep (BSD grep) 2.5.1-FreeBSD
awk: /usr/local/bin/awk, GNU Awk 5.0.0, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
sed: illegal option -- -
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: /usr/bin/sed, 
cut: illegal option -- -
usage: cut -b list [-n] [file ...]
       cut -c list [file ...]
       cut -f list [-s] [-d delim] [file ...]
cut: /usr/bin/cut, 
bash: basename: --: invalid option
basename: usage: basename string [suffix]
basename: basename is a shell builtin, 
rm: illegal option -- -
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file
rm: /bin/rm, 
mkdir: illegal option -- -
usage: mkdir [-pv] [-m mode] directory ...
mkdir: /bin/mkdir, 
xargs: illegal option -- -
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
             [-L number] [-n number [-x]] [-P maxprocs] [-s size]
             [utility [argument ...]]
xargs: /usr/bin/xargs, 
nvm current: none
which node: 
which iojs: 
which npm: 
npm config get prefix: bash: npm: command not found
npm root -g: bash: npm: command not found
```

</details>

- `nvm ls` output:
<details>

```sh
        v10.9.0
[0;34m        v12.0.0[0m
[0;34mdefault[0m [0;90m->[0m [0;34mnode[0m ([0;90m->[0m [0;34mv12.0.0[0m)
[0;34mnode[0m [0;90m->[0m [0;34mstable[0m ([0;90m->[0m [0;34mv12.0.0[0m) [0;37m(default)[0m
[0;34mstable[0m [0;90m->[0m [0;34m12.0[0m ([0;90m->[0m [0;34mv12.0.0[0m) [0;37m(default)[0m
[1;31miojs[0m [0;90m->[0m [1;31mN/A[0m [0;37m(default)[0m
[1;31munstable[0m [0;90m->[0m [1;31mN/A[0m [0;37m(default)[0m
[1;33mlts/*[0m [0;90m->[0m [1;33mlts/dubnium[0m ([0;90m->[0m [1;31mN/A[0m)
[1;33mlts/argon[0m [0;90m->[0m [1;31mv4.9.1[0m ([0;90m->[0m [1;31mN/A[0m)
[1;33mlts/boron[0m [0;90m->[0m [1;31mv6.17.1[0m ([0;90m->[0m [1;31mN/A[0m)
[1;33mlts/carbon[0m [0;90m->[0m [1;31mv8.16.0[0m ([0;90m->[0m [1;31mN/A[0m)
[1;33mlts/dubnium[0m [0;90m->[0m [1;31mv10.16.0[0m ([0;90m->[0m [1;31mN/A[0m)
```

</details>

- How did you install `nvm`? install script

- What steps did you perform?

```sh
. ~/nvm/nvm.sh --no-use
nvm install -s node --latest-npm --reinstall-packages-from=node
```

- What happened?

```
$>./configure --prefix=/Users/jcayzac/.nvm/versions/node/v12.4.0 --latest-npm<
Usage: configure [options]

configure: error: no such option: --latest-npm
nvm: install v12.4.0 failed!
```

- What did you expect to happen?

Successful install