Skip to content

trim node version from .nvmrc#3

Open
Yvem wants to merge 1 commit into
callerc1:masterfrom
Yvem:trim-node-version
Open

trim node version from .nvmrc#3
Yvem wants to merge 1 commit into
callerc1:masterfrom
Yvem:trim-node-version

Conversation

@Yvem

@Yvem Yvem commented Nov 26, 2015

Copy link
Copy Markdown

Most editors either add a trailing new line and/or hide an existing trailing newline.

This cause the following error :

Running ". ~/.nvm/nvm.sh && nvm use 4.2.2
 && nvm alias default 4.2.2
" on host "localhost".
@localhost Now using node v4.2.2 (npm v2.14.7)
@localhost-err bash: -c: line 1: syntax error near unexpected token `&&'
@localhost-err bash: -c: line 1: ` && nvm alias default 4.2.2'
Error: Command failed: /bin/sh -c ssh xyz@localhost ". ~/.nvm/nvm.sh && nvm use 4.2.2
 && nvm alias default 4.2.2
"
bash: -c: line 1: syntax error near unexpected token `&&'
bash: -c: line 1: ` && nvm alias default 4.2.2'

this fix it.

@adrian-ludwig

Copy link
Copy Markdown

+1

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

Successfully merging this pull request may close these issues.

2 participants