Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
markedcahinde opened this issue Feb 2, 2017 · 5 comments

Comments

@markedcahinde
Copy link

markedcahinde commented Feb 2, 2017

-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?

@ljharb
Copy link
Member

ljharb commented Feb 2, 2017

How did you install nvm exactly?

@markedcahinde
Copy link
Author

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

@ljharb
Copy link
Member

ljharb commented Feb 2, 2017

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).

@ljharb
Copy link
Member

ljharb commented Oct 1, 2020

@markedcahinde hopefully you resolved your issue :-)

@markedcahinde
Copy link
Author

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! :) 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants