cli
cli copied to clipboard
[BUG] `npm list` is still slow
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
- On Debian or Termux
- Run
time npm list(-goptional) - 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