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

Performance issue when opening bash shell #2212

Closed
ghost opened this issue May 8, 2020 · 5 comments
Closed

Performance issue when opening bash shell #2212

ghost opened this issue May 8, 2020 · 5 comments
Labels
performance This relates to anything regarding the speed of using nvm.

Comments

@ghost
Copy link

ghost commented May 8, 2020

I am using Debian 9 and latest NVM with Node 13.9 installed in it.

Always when I open terminal or execute "bash" command in existing terminal it hangs for 1-2 seconds.

Uninstalling NVM removed all of the delay. I tried also having only NVM without any Node installed which was noticeably faster than with Node.

Its minor problem but can be really annoying at some situations.

@ljharb
Copy link
Member

ljharb commented May 8, 2020

If you run nvm unalias default, the issue will go away as well; you can also source nvm.sh in your profile with --no-use.

The slowness is caused by npm config get prefix, which nvm use runs.

@ljharb ljharb added the performance This relates to anything regarding the speed of using nvm. label May 8, 2020
@ghost
Copy link
Author

ghost commented May 8, 2020

I can't use the short "node" keyword in terminal after those though.

@ljharb
Copy link
Member

ljharb commented May 8, 2020

indeed, that's true.

There's nothing to be done to speed up nvm here until npm config get prefix is made faster, I'm afraid.

@ghost
Copy link
Author

ghost commented May 8, 2020

Alright.

I opened issue in npm repo just incase there is some people who would care about it

npm/cli#1260

@ljharb
Copy link
Member

ljharb commented May 8, 2020

No need, one already exists: npm/cli#1243

@ljharb ljharb closed this as completed May 8, 2020
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

1 participant