Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

`npm install [tab]` hangs #2318

Closed
alFReD-NSH opened this Issue · 3 comments

2 participants

@alFReD-NSH

I am using ubuntu 11.10 and put npm bash completion under my .bashrc, works fine if do npm [tab] but, not for the package names. It just hangs and I have to Ctrl-C to take it out.

@isaacs
Owner

It will eventually return, it just takes a while.

$ npm install 
Display all 8361 possibilities? (y or n)
@isaacs isaacs closed this
@isaacs
Owner

On my system, it takes about 9 seconds from an empty cache. If your cache is full, it's much faster.

It'd be nice to rework that bit to respond more quickly somehow, but it's not exactly clear how to do that. It already caches quite agressively. It's fetching this page, which is quite large: http://registry.npmjs.org/-/short

@alFReD-NSH

In this case 9 seconds is good enough sir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.