-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
problem about installing nvm on ubuntu 1310 #394
Comments
i'm not familiar with "sbin". What shell are you using? |
It's bash which is default shell on ubuntu.and Thanks for reply. |
You did activate nvm after you restarted? Because |
Hi!, I think I have the same problem. In Ubuntu 14.04 I run:
And then I add
Then I think the If I add I have to add a Recap: I have to add 3 lines to my
|
@vicnala can you use the install script? |
Hi @ljharb, the I only have to move the line added from Thanks! |
+1 ubuntu 12.04 echo $NVM_DIR is /usr/sbin, don't know why. |
use ./install.sh still gets the $NVM_DIR to /usr/sbin.It's very weird |
what does the line in your |
This problem still persists for me. $NVM_DIR is /usr/sbin. The line in my .profile |
Similar problem in Debian after fresh install.
And |
A temporary fix would be to add export NVM_DIR=/home/pervez/.nvm
[ -s "/home/pervez/.nvm/nvm.sh" ] && . "/home/pervez/.nvm/nvm.sh" But it seems that directory discovery is not working correctly in all shells... |
Was having this same problem on a fresh install of Elementary OS Luna. Adding the "temporary fix" @koenpunt suggests did the trick (though it required a reboot). |
I've implemented the solution vicnala suggested and have since rebooted. But I still have to run source ~/.profile every time I open a terminal window to get nvm working. Weird. |
Just as an information, I think most of these problems probably come from the fact that people are using Ubuntu's standard Gnome Terminal. Gnome Terminal does not run bash as a login shell by default, and as such .profile is ignored by bash. So you either put the information into .bashrc or you tell Gnome Terminal to run bash as a login shell (See the first link below). If you tell Gnome Terminal to run bash as a login shell, .bashrc won't be read. Of course there are options to circumvent this behavior: the second and third link below provide some answers. More info: http://askubuntu.com/questions/279180/nvm-command-not-found-issue |
I usually use ubuntu with gnome-terminal when in linux, but then again, I always manually added the line to my |
What about:
|
That will work, except you'll need to source |
Ok, so I finally figured out the problem - I wasn't running Thanks |
@jasonabullard you may also wish to use |
I'm having the same problem. obs: Anybody could help me? |
@crtormen you should have full permissions and ownership on everything inside |
Closing this for now - happy to reopen if more debug or repro info can be provided. |
I tried to install nvm on ubuntu 1310. first I run command below:
curl https://raw.github.com/creationix/nvm/v0.4.0/install.sh | sh
and then i activated nvm:
source ~/.nvm/nvm.sh
intsalled nodejs:
nvm install 0.10
finally I could use node normal. but after i had restarted system, the nvm didn't work,when run command such as "nvm ls", i got error prompt:
user@ubuntu:~$ nvm ls
sbin
mkdir: cannot create directory ‘/usr/sbin/alias’: Permission denied
The text was updated successfully, but these errors were encountered: