Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Silence nvm #141

Closed
jacobrask opened this Issue · 6 comments

5 participants

@jacobrask

The fact that nvm outputs Now using Node <version> every time I start bash breaks things like using my server as a git remote. I get the error fatal: protocol error: bad line length character: Now.

Could there be a silent option somehow, or could nvm be silent by default?

@rummik

It sounds like you're sourcing it from .bash_profile, which executes for non-interactive shells as well. Try moving it to .bashrc?

You could also try sending the output to /dev/null, with something like . ~/nvm/nvm.sh > /dev/null

@creationix
Owner
@ljharb
Collaborator

This seems closeable.

@ljharb ljharb closed this
@k-bx

Hi! I just installed nvm, then added nvm use default at the end of my ~/.zshrc, and it still echoes "Now using node ..." every time I open a new shell.

Is removing it manually is the only solution?

Thanks.

@ljharb
Collaborator

@k-bx You shouldn't need to add that yourself - please make sure you've installed the latest version of nvm, as https://github.com/creationix/nvm/blob/master/nvm.sh#L898-L902 ensures it silently uses the default whenever nvm is sourced. You can also create a .nvmrc file in your user dir.

@k-bx

@ljharb Ah, I got it. What I did wrong was probably misreading the docs.

At the end I had "nvm use default" at the end of my zshrc, but now I see if you have default it will be activated by itself and silently.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.