wbyoung / avn

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

avn could not activate node lts/carbon #71

Open NimaSoroush opened 6 years ago

NimaSoroush commented 6 years ago

avn does not activate named lts like lts/carbon.

This is what I get when I set the version in .nvmrc

.nvmrc => lts/carbon       // avn could not activate node lts/carbon
.nvmrc => 8.9.4            // avn activated 8.9.4 via .nvmrc (avn-nvm v8.9.4)

Details

The output of __avn_debug in the directory with a .nvmrc file is:

avn could not activate node lts/carbon
error: no plugin passed predicate
  avn-nvm: no version matching lts/carbon

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

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
[[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh" # load avn

nvm specific

ljharb commented 6 years ago

May be related to #43