Repository: nvm
Issue: nvm on nixos and bash hashing 
Labels: installing node,needs followup

Bug/something when install node version on NixOS
NVM seemed to install fine on NixOS but when:

- Operating system and version: nixos

```
[root@ip-172-31-18-139:~]# cat /etc/os-release
NAME=NixOS
ID=nixos
VERSION="19.03.172286.8ea36d73256 (Koi)"
VERSION_CODENAME=koi
VERSION_ID="19.03.172286.8ea36d73256"
PRETTY_NAME="NixOS 19.03.172286.8ea36d73256 (Koi)"
LOGO="nix-snowflake"
HOME_URL="https://nixos.org/"
SUPPORT_URL="https://nixos.org/nixos/support.html"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
```

- `nvm debug` output:

```
nvm debug
nvm --version: v0.34.0
$SHELL: /run/current-system/sw/bin/bash
$SHLVL: 1
$HOME: /root
$NVM_DIR: '$HOME/.nvm'
$PATH: $HOME/bin:/run/wrappers/bin:$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/etc/profiles/per-user$HOME/bin
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 4.4.23(1)-release (x86_64-unknown-linux-gnu)'
uname -a: 'Linux 4.19.35 #1-NixOS SMP Wed Apr 17 06:38:55 UTC 2019 x86_64 GNU/Linux'
OS version: NixOS 19.03.172286.8ea36d73256 (Koi)
curl: /run/current-system/sw/bin/curl, curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.0.2r zlib/1.2.11 libssh2/1.8.1 nghttp2/1.36.0
wget: not found
git: not found
grep: /run/current-system/sw/bin/grep, grep (GNU grep) 3.3
awk: /run/current-system/sw/bin/awk, GNU Awk 4.2.1, API: 2.0
sed: /run/current-system/sw/bin/sed, sed (GNU sed) 4.7
cut: /run/current-system/sw/bin/cut, cut (GNU coreutils) 8.30
basename: /run/current-system/sw/bin/basename, basename (GNU coreutils) 8.30
rm: /run/current-system/sw/bin/rm, rm (GNU coreutils) 8.30
mkdir: /run/current-system/sw/bin/mkdir, mkdir (GNU coreutils) 8.30
xargs: /run/current-system/sw/bin/xargs, xargs (GNU findutils) 4.6.0
nvm current: none
which node: which: no node in ($HOME/bin:/run/wrappers/bin:$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/etc/profiles/per-user$HOME/bin)
which iojs: which: no iojs in ($HOME/bin:/run/wrappers/bin:$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/etc/profiles/per-user$HOME/bin)
which npm: which: no npm in ($HOME/bin:/run/wrappers/bin:$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/etc/profiles/per-user$HOME/bin)
npm config get prefix: The program ‘npm’ is currently not installed. You can install it by typing:
  nix-env -iA nixos.nodejs
npm root -g: The program ‘npm’ is currently not installed. You can install it by typing:
  nix-env -iA nixos.nodejs
```

So I did this:

```
[root@ip-172-31-18-139:~]# nvm install 11
Downloading and installing node v11.15.0...
Downloading https://nodejs.org/dist/v11.15.0/node-v11.15.0-linux-x64.tar.xz...
####################################################################################################################################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
-bash: hash: hashing disabled  #### <<<<<<<< ! here is where it got weird
/usr/bin/env: ‘node’: No such file or directory
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v11.15.0` to unset it.
```

See `here is where it got weird` above