wbyoung / avn

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

New terminal tabs open slower after installing avn with nvm #62

Closed ip closed 6 years ago

ip commented 6 years ago

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

Details

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

ljharb commented 6 years ago

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

wbyoung commented 6 years ago

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).