nvm creates a $HOME directory instead of using the value that variable $HOME has.

Created on 2 Feb 2017  ·  5Comments  ·  Source: nvm-sh/nvm

-bash-4.2$ printf %s "${NVM_DIR:-"$HOME/.nvm"}" | sed "s:^$HOME:\$HOME:"
$HOME/.nvm-bash-4.2$
-bash-4.2$ env | grep $HOME
PWD=/home/staging
HOME=/home/staging

command above is from nvm_install_dir() function in install.sh

I did just edit the script and removed the part after pipe. Was it only me who experience this?

Most helpful comment

Hi @ljharb , I'm sorry if it took me sooooo long before closing this issue. We have used the explicit tagged release as you suggested. Forgot that I have this issue still opened. Thank you very much! :) 💯

All 5 comments

How did you install nvm exactly?

I'm using Puppet to install nvm to our servers, here is the full command that I am executing
/usr/bin/wget https://raw.github.com/creationix/nvm/master/install.sh && sh install.sh

Ah - master is broken and unstable (I break it intentionally sometimes). Please install from the explicit latest tagged release version instead (which is linked in the readme).

@markedcahinde hopefully you resolved your issue :-)

Hi @ljharb , I'm sorry if it took me sooooo long before closing this issue. We have used the explicit tagged release as you suggested. Forgot that I have this issue still opened. Thank you very much! :) 💯

Was this page helpful?
0 / 5 - 0 ratings