`npm install [tab]` hangs #2318

Closed
alFReD-NSH opened this Issue Mar 29, 2012 · 3 comments

Comments

Projects
None yet
2 participants

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.

Owner

isaacs commented Mar 29, 2012

It will eventually return, it just takes a while.

$ npm install 
Display all 8361 possibilities? (y or n)

isaacs closed this Mar 29, 2012

Owner

isaacs commented Mar 29, 2012

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

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