cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] `npm list` is still slow

Open Rudxain opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

This issue exists in the latest npm version

  • [X] I am using the latest npm

Current Behavior

npm/npm#6507

  • On an Dell Inspiron 15R, with its HDD replaced by an SSD, running Debian 13, it takes ~1.2s
  • On a Samsung Galaxy A31, from Termux repos, it takes ~3s

It's slow, both with and without -g flag. Even on directories that contain no package.json

Expected Behavior

It should be sub ~128ms

Steps To Reproduce

  1. On Debian or Termux
  2. Run time npm list (-g optional)
  3. See timings

Environment

  • npm: 10.9.0
  • Node.js: v20.17.0
  • OS Name: Debian 13 "Trixie"
  • System Model Name: Inspiron 5521
  • npm config:
; copy and paste output from `npm config ls` here
; TO-DO

Rudxain avatar Oct 06 '24 12:10 Rudxain