npm / npm/cli

[BUG] `npm ls --dev` does not show only dev dependencies

Open
#5,085 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug cmd:list Priority 2 Release 8.x
Dominant language
JavaScript
Stars
10.1k
Forks
4.7k
Avg merge
2d 2h
Merged PRs (30d)
19

Description

Is there an existing issue for this?
  • I have searched the existing issues
This issue exists in the latest npm version
  • I am using the latest npm
Current Behavior

No response

Expected Behavior

No response

Steps To Reproduce

No response

Environment
  • npm:8.11.0
  • Node.js:16.15.1
  • OS Name:macOS Monterey Version 12.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior with npm 8.11.0 and Node.js 16.15.1 using npm ls --dev, then inspect the npm CLI handling for dependency listing. Done means the command displays only development dependencies; the issue provides no reproduction project, test, or source file to guide the investigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.