Nvm: Add --verbose option to help diagnose remote/install slowness

Created on 16 Jul 2016  路  7Comments  路  Source: nvm-sh/nvm

I ran into some slowness here, thought nvm was hanging since it took over 2 minutes to do an nvm ls-remote: https://github.com/creationix/nvm/issues/1157

A --verbose option for nvm install/nvm ls-remote/nvm version-remote would really be useful to enable end users to diagnose their own issues. Specifically, if DNS/network/disk issues can have a negative effect on nvm, it will be useful to collect that information to better place blame.

feature requests installing node pull request wanted

Most helpful comment

That works, but is a pretty big hammer :-) a more tightly focused option would be nice.

All 7 comments

Any updates on this?

Nope, nobody's submitted a PR.

An alternative way to "debug" is using set -x before a nvm command:

$ set -x
$ nvm install 10

then a lot of output will be printed, I hope it helps :smile:

That works, but is a pretty big hammer :-) a more tightly focused option would be nice.

_For Future Googler's_

I was using a fresh Ubuntu installation, and forgot to install curl.

sudo apt install curl

After this I was able to see the nvm install 8 output...

Hi @ljharb, @gitburd and I are looking into this and wondering if you can point us toward what sort of "more tightly focused option" could be used here?

@naomiquinones that comment was mostly about the set -x over the entire nvm install command. A --verbose option that printed helpful info, but not quite as much as set -x does, would likely be helpful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

reneruiz picture reneruiz  路  4Comments

dtgriscom picture dtgriscom  路  4Comments

cdelorme picture cdelorme  路  5Comments

danielepolencic picture danielepolencic  路  4Comments

nickngqs picture nickngqs  路  3Comments