-
Notifications
You must be signed in to change notification settings - Fork 54
Running with nvm
doesn't switch versions consistently
#30
Comments
It might be helpful if it showed the |
@mockdeep what shell are you using? Can you post the contents of your How did you install |
@wbyoung I'm using bash on linux. Here's my [[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
[[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh" # load avn |
Can you add a |
Okay, so I dug into it a bit more and it turns out it's erring out when it tries to load: $ sh .avn/bin/avn.sh
.avn/bin/avn.sh: 5: .avn/bin/avn.sh: [[: not found
.avn/bin/avn.sh: 7: .avn/bin/avn.sh: [[: not found
avn does not yet support this shell
.avn/bin/avn.sh: 16: export: Illegal option -a I tossed a |
That seems a bit odd. Your login shell is set as If so, this is something I'd want to try to cover when tackling #26. Everything's working now, though? If so, let's close this issue. |
@mockdeep I think that's a red herring. You're supposed to source |
@wbyoung I did that before and didn't get any output. Because I wasn't seeing any output I added |
Your I just tested my suggestion to add |
Okay, so I've been digging around for a little while now. It appears you're right that I can confirm that it does load |
Yeah, on a Mac |
Yep, all good. Thanks! |
I'm having some trouble getting up and running with
avn
. I've installed it fornvm
and ranavn setup
. Here's what happens when I try to use it, though:It does seem to set the right version sometimes, though. Maybe when I first open a new terminal session and cd to the directory.
The text was updated successfully, but these errors were encountered: