Nvm: Latest master breaks bashrc

Created on 23 Aug 2016  Â·  5Comments  Â·  Source: nvm-sh/nvm

I am getting this line verbatum in my ~/.bashrc on debian linux:

\nexport NVM_DIR="/home/vagrant/.nvm"\n[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm\n
bugs installing nvm

Most helpful comment

Whoops, thanks, will fix.

All 5 comments

Whoops, thanks, will fix.

We are teaching a beginner node class today and we were running into this same problem

Also experienced this on zsh if that makes any difference!

The problem is at this line: https://github.com/creationix/nvm/commit/681c81ad30e2e4b4c05da4d7aae0177b187780ce#diff-3fbb47e318cd8802bd325e7da9aaabe8R286

v0.31.6 released. Sorry about that, and thanks @aredridel for the fix!

Sure thing!

Was this page helpful?
0 / 5 - 0 ratings