wbyoung / avn

Automatic Version Switching for Node
MIT License
1.14k stars 54 forks source link

__avn_debug command not found #40

Closed grssnbchr closed 8 years ago

grssnbchr commented 8 years ago

I get a "command not found" error when trying to run __avn_debug or _avn in the shell. I installed via "npm i -g avn avn-nvm" and successfully ran "avn setup".

wbyoung commented 8 years ago

What shell and what version are you using? What does your profile (~/.{bash|zsh}{_profile|rc}) look like for that shell? Did you launch a new shell after running avn seup or just continue to use the same shell? Can you try launching a new shell?

Also, anything here that you can provide would help.

grssnbchr commented 8 years ago

I basically installend avn with npm install -g avn avn-nvm with both of my node versions (v4.0.0 and v0.12.1) and ran avn setup for both. Opening up a new shell doesn't solve the problem.

Thank you

wbyoung commented 8 years ago

What happens when you source it directly with source "$HOME/.avn/bin/avn.sh"?

grssnbchr commented 8 years ago

Now it works - I added source "$HOME/.avn/bin/avn.sh" to my .bashrc. Somehow, .bash_profile is not recognized in my system (and redundant, anyway, because I have .bashrc). Maybe avn should check for the existence of .bashrc upon setup. Thanks!

wbyoung commented 8 years ago

Yup, it's hard to get right. See #31.

edsfocci commented 7 years ago

@grssnbchr What operating system were you running at the time (March 25, 2016), including version number? I'm guessing probably not one based on Ubuntu 16.04, unless you were running a beta or release candidate OS.

grssnbchr commented 7 years ago

@edsfocci Ubuntu 12.04