Skip to content

git autocrlf setting causes syntax errors after install #636

@jesstelford

Description

@jesstelford

I'm getting the following error when opening a new shell after installing nvm:

: command not found
: command not found
'ash: /Users/jtelford/.nvm/nvm.sh: line 12: syntax error near unexpected token `{
'ash: /Users/jtelford/.nvm/nvm.sh: line 12: `nvm_has() {

I successfully installed nvm with the following command:

$ curl https://raw.githubusercontent.com/creationix/nvm/v0.23.2/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5226  100  5226    0     0   8682      0 --:--:-- --:--:-- --:--:--  8681
=> Downloading nvm from git to '/Users/jtelford/.nvm'
=> Cloning into '/Users/jtelford/.nvm'...
remote: Counting objects: 3230, done.
remote: Total 3230 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3230/3230), 608.11 KiB | 128.00 KiB/s, done.
Resolving deltas: 100% (1827/1827), done.
Checking connectivity... done.

=> Source string already in /Users/jtelford/.bash_profile
=> Close and reopen your terminal to start using nvm

I am running OSX 10.10.1, and my shell is iTerm2 v2.0

Is there something I am doing wrong?

Thanks for your help :)

Metadata

Metadata

Assignees

Labels

bugsOh no, something's broken :-(installing nodeIssues with installing node/io.js versions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions