wbyoung / avn

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

Not actually switching #61

Closed eng618 closed 7 years ago

eng618 commented 7 years ago

Please describe your issue clearly and also include all details below.

Has never worked for me. It has only served as a warning to manually run nvm use x.x.x.

Whenever switching to a dir I get the avn could not activate node x.x.x

Details

The output of __avn_debug in the directory with a .node-version file is:

avn could not activate node 6.11.1
error: no plugin passed predicate
  avn-nvm: nvm exited with status: 127
/usr/local/bin/bash: /Users/engarcia/.nvm/nvm.sh: No such file or directory
/usr/local/bin/bash: nvm: command not found
  avn-n: no version matching 6.11.1

avn is loaded in my ~/.{bash|zsh}{_profile|rc} file with:

[[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh" # load avn

nvm specific

wbyoung commented 7 years ago

Is there a file at /Users/engarcia/.nvm/nvm.sh?

I'd suggest trying to uninstall and reinstall nvm. Also, please be sure you did not install via Homebrew. If you did, things are expected to fail (hence the checkbox above asking about it).

eng618 commented 7 years ago

Okay, seems to be working fine now...had it installed with homebrew originally