Nvm: NVM Issue on running first step of installation: curl command

Created on 20 Jun 2018  ·  6Comments  ·  Source: nvm-sh/nvm

  • Operating system and version: osX v10.11

Stuck in Install on this stage:

nvm_do_install() {
if [ -n "${NVM_DIR-}" ] && ! [ -d "${NVM_DIR}" ]; then
echo >&2 "_You have $NVM_DIR set to "${NVM_DIR}", but that directory does not exist. Check your profile files and environment._"
exit 1

Stuck on this stage: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash with error above



installing nvm needs followup

Most helpful comment

I get the same thing on Ubuntu when I change to another user then try to install NVM which didn't happen to me in the past. export NVM_DIR="$INSTALL_DIR" Fixed it for me.

All 6 comments

Solved it by re-opening terminal. But still curious as to why this occurred as I am still in the same user as where I ran command

@WizardOfAus would you please fill out the entire issue template, omitting nothing?

I get the same thing on Ubuntu when I change to another user then try to install NVM which didn't happen to me in the past. export NVM_DIR="$INSTALL_DIR" Fixed it for me.

If you change to another user in a way that preserves the environment variables from the old user, then that's expected.

I'm going to close this since there's not enough info in the OP.

@bluestreek18 's advice worked for me too, ty

I get the same thing on Ubuntu when I change to another user then try to install NVM which didn't happen to me in the past. export NVM_DIR="$INSTALL_DIR" Fixed it for me.

Great!

Was this page helpful?
0 / 5 - 0 ratings