Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading $NVM_DIR/nvm.sh is slow #1721

Closed
miguelmota opened this issue Feb 5, 2018 · 1 comment
Closed

loading $NVM_DIR/nvm.sh is slow #1721

miguelmota opened this issue Feb 5, 2018 · 1 comment
Labels
performance This relates to anything regarding the speed of using nvm.

Comments

@miguelmota
Copy link

Currently have the following snippet in ~/.profile (from REAMDE)

if [ -e $NVM_DIR ]; then
  export NVM_DIR=$(echo $HOME)/.nvm
  [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
fi

However, every time I open a new terminal window it takes 2-3 seconds to run which is too slow.

I'm I loading it incorrectly? I'v resorted to the DMG install from node website because it was a nuisance opening a new terminal window and waiting. Is there anything that can be done? Thanks.

@ljharb
Copy link
Member

ljharb commented Feb 7, 2018

This is a duplicate of #539 and #1242

@ljharb ljharb closed this as completed Feb 7, 2018
@ljharb ljharb added the performance This relates to anything regarding the speed of using nvm. label Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance This relates to anything regarding the speed of using nvm.
Projects
None yet
Development

No branches or pull requests

2 participants