documentation icon indicating copy to clipboard operation
documentation copied to clipboard

`list include` talks about installing packages instead of listing them

Open RedCMD opened this issue 7 months ago • 2 comments

documentation indicates that npm list --include installs dependencies

Option that allows for defining which types of dependencies to install.

shouldn't it say list instead of install?


this applies to multiple items:

  • https://docs.npmjs.com/cli/v10/commands/npm-ls#include
  • https://docs.npmjs.com/cli/v10/commands/npm-ls#omit
  • https://docs.npmjs.com/cli/v10/commands/npm-ls#global
  • https://docs.npmjs.com/cli/v10/commands/npm-ls#workspaces
  • https://docs.npmjs.com/cli/v10/commands/npm-ls#install-links

RedCMD avatar Jul 26 '25 04:07 RedCMD

The npm list command is used to display the dependency tree of installed packages in a Node.js project.

Also you contradict your own statement, as the command is for list and not install:

shouldn't it say list instead of install?

My intuition says this issue is invalid. Please revise & clarify your comments and close this issue if needed.

Cheers!

kenshanta avatar Jul 28 '25 13:07 kenshanta

sorry

Also you contradict your own statement, as the command is for list and not install:

I'm not talking the install command I'm talking about the documentation for the list command which contradicts itself

The npm list command is used to display the dependency tree

the documentation uses the word install Image but it should use the word list or display

https://docs.npmjs.com/cli/v10/commands/npm-ls#include

many other items in the list documentation page also use the word install

RedCMD avatar Jul 28 '25 20:07 RedCMD