We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e76b6 commit 283a376Copy full SHA for 283a376
pages/common/npm-explain.md
@@ -0,0 +1,20 @@
1
+# npm explain
2
+
3
+> Explain how a package is installed, detailing its dependencies and reasons for inclusion.
4
+> More information: <https://docs.npmjs.com/cli/explain>.
5
6
+- Explain why a specific package is installed:
7
8
+`npm explain {{package_name}}`
9
10
+- Show explanation in JSON format:
11
12
+`npm explain {{package_name}} --json`
13
14
+- Include peer dependencies in the explanation:
15
16
+`npm explain {{package_name}} --include peer`
17
18
+- Limit explanation depth to 2 levels deep:
19
20
+`npm explain {{package_name}} --depth 2`
0 commit comments