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.
Now using Node <version>
fatal: protocol error: bad line length character: Now
Could there be a silent option somehow, or could nvm be silent by default?
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
. ~/nvm/nvm.sh > /dev/null
This seems closeable.
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.
nvm use default
Is removing it manually is the only solution?
@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.
@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.