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

trim node version from .nvmrc #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Yvem
Copy link

@Yvem Yvem commented Nov 26, 2015

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

+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