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

error install nvm in ubuntu 10.04 #37

Closed
hidenowt opened this issue May 24, 2011 · 5 comments
Closed

error install nvm in ubuntu 10.04 #37

hidenowt opened this issue May 24, 2011 · 5 comments

Comments

@hidenowt
Copy link

: comando não encontrado
'ash: /home/herminio/.nvm/nvm.sh: linha 16: erro de sintaxe próximo do token' não esperado{
'ash: /home/herminio/.nvm/nvm.sh: linha 16: ` curl() {

and

$ sh .nvm/nvm.sh
: not found: 7:
.nvm/nvm.sh: 55: Syntax error: word unexpected (expecting "then")

@creationix
Copy link
Collaborator

nvm is not an executable shell script, it's a bash function that you source.

. $HOME/.nvm/nvm.sh
nvm install v0.4.8
nvm use v0.4.8

@hidenowt
Copy link
Author

$ git clone git://github.com/creationix/nvm.git ~/.nvm
Initialized empty Git repository in /home/herminio/.nvm/.git/
remote: Counting objects: 197, done.
remote: Compressing objects: 100% (152/152), done.
remote: Total 197 (delta 105), reused 81 (delta 37)
Receiving objects: 100% (197/197), 25.77 KiB, done.
Resolving deltas: 100% (105/105), done.

$ . $HOME/.nvm/nvm.sh
: comando não encontrado
bash: /home/herminio/.nvm/nvm.sh: linha 16: erro de sintaxe próximo do token' n'o esperado{
'ash: /home/herminio/.nvm/nvm.sh: linha 16: ` curl() {

@creationix
Copy link
Collaborator

do you have curl installed? What's your environment? bash? zsh? other?

@hidenowt
Copy link
Author

bash.... ubuntu use bash.

@dsimard
Copy link

dsimard commented Feb 1, 2012

I had the same problem on Ubuntu 10.04. I went to ~/.nvm/src/node-v0.X.Y and ran make install.

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

3 participants