wbyoung/avn

New terminal tabs open slower after installing avn with nvm

ip opened this issue · 2 comments

ip commented

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

Details

  • avn avn --version
    0.2.3
  • node node --version
    6.11.5
  • nvm nvm --version
    0.33.6
  • n n --version
  • zsh zsh --version
    zsh 5.3 (x86_64-apple-darwin17.0)
  • bash bash --version

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

  • As an nvm user I am confirming that I did not install with Homebrew

This is because nvm relies on npm config get prefix, which is slow. It’s not an issue with avn itself.

Yup, as @ljharb says. I personally use n for speed and because I don't actually switch node versions often (if I did, I'd prefer nvm's PATH updating approach).