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 can't ls or use #434

Closed
ghost opened this issue Jun 15, 2014 · 1 comment
Closed

nvm can't ls or use #434

ghost opened this issue Jun 15, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 15, 2014

I installed nvm via the wget command from my user (not root/sudo)
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.7.0/install.sh | sh

It was not automatically added to my zsh. I had to run source ~/.nvm/nvm.sh
Then I proceeded to install node 0.10.28
It node worked fine.
I rebooted.
Now after opening the terminal and running source ~/.nvm/nvm.sh
the nvm command produces the nvm menu.

But nvm ls or nvm use 0.10.28 produces this error:
mdm
mkdir: cannot create directory ‘/etc/mdm/alias’: Permission denied

if I open a sudo -s terminal then nvm ls shows 0.10.28 and use nvm 0.10
but running the use command from there is not the right way to do things.

What can I do?

why is NVM trying to write to /etc/mdm/alias. Seems very strange. It never did that before... :/
I guess I'll have to use an older version of nvm in the mean time

@ljharb
Copy link
Member

ljharb commented Jun 16, 2014

I see you asked this same question in #node.js in freenode - I believe this is a duplicate of #394.

Somehow $NVM_DIR is set to the wrong value. See the last comment on #394 for a solution.

@ljharb ljharb closed this as completed Jun 16, 2014
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

1 participant