assassinlike commited on
Commit
4dbb58a
·
verified ·
1 Parent(s): 82ea532

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/README.md +71 -0
  2. home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/bin/codex.js +249 -0
  3. home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/README.md +71 -0
  4. home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/package.json +23 -0
  5. home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-package.json +9 -0
  6. home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/package.json +30 -0
  7. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/bin/node-gyp-bin/node-gyp +6 -0
  8. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd +5 -0
  9. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-access.md +123 -0
  10. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-adduser.md +86 -0
  11. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-audit.md +478 -0
  12. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-bugs.md +109 -0
  13. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-cache.md +94 -0
  14. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-ci.md +318 -0
  15. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-completion.md +41 -0
  16. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-config.md +182 -0
  17. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-dedupe.md +320 -0
  18. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-deprecate.md +73 -0
  19. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-diff.md +319 -0
  20. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-dist-tag.md +154 -0
  21. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-docs.md +108 -0
  22. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-doctor.md +123 -0
  23. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-edit.md +46 -0
  24. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-exec.md +366 -0
  25. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-explain.md +105 -0
  26. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-explore.md +49 -0
  27. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-find-dupes.md +246 -0
  28. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-fund.md +145 -0
  29. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-help-search.md +40 -0
  30. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-help.md +46 -0
  31. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-hook.md +112 -0
  32. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-init.md +349 -0
  33. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-install-ci-test.md +265 -0
  34. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-install-test.md +372 -0
  35. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-install.md +806 -0
  36. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-link.md +396 -0
  37. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-login.md +93 -0
  38. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-logout.md +75 -0
  39. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-ls.md +294 -0
  40. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-org.md +114 -0
  41. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-outdated.md +178 -0
  42. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-owner.md +106 -0
  43. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-pack.md +126 -0
  44. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-ping.md +46 -0
  45. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-pkg.md +272 -0
  46. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-prefix.md +59 -0
  47. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-profile.md +120 -0
  48. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-prune.md +197 -0
  49. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-publish.md +238 -0
  50. home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-query.md +272 -0
home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <p align="center"><strong>Codex CLI</strong> is a coding agent from OpenAI that runs locally on your computer.
2
+ <p align="center">
3
+ <img src="https://github.com/openai/codex/blob/main/.github/codex-cli-splash.png" alt="Codex CLI splash" width="80%" />
4
+ </p>
5
+ </br>
6
+ If you want Codex in your code editor (VS Code, Cursor, Windsurf), <a href="https://developers.openai.com/codex/ide">install in your IDE.</a>
7
+ </br>If you want the desktop app experience, run <code>codex app</code> or visit <a href="https://chatgpt.com/codex?app-landing-page=true">the Codex App page</a>.
8
+ </br>If you are looking for the <em>cloud-based agent</em> from OpenAI, <strong>Codex Web</strong>, go to <a href="https://chatgpt.com/codex">chatgpt.com/codex</a>.</p>
9
+
10
+ ---
11
+
12
+ ## Quickstart
13
+
14
+ ### Installing and running Codex CLI
15
+
16
+ Run the following on Mac or Linux to install Codex CLI:
17
+
18
+ ```shell
19
+ curl -fsSL https://chatgpt.com/codex/install.sh | sh
20
+ ```
21
+
22
+ Run the following on Windows to install Codex CLI:
23
+
24
+ ```shell
25
+ powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
26
+ ```
27
+
28
+ Codex CLI can also be installed via the following package managers:
29
+
30
+ ```shell
31
+ # Install using npm
32
+ npm install -g @openai/codex
33
+ ```
34
+
35
+ ```shell
36
+ # Install using Homebrew
37
+ brew install --cask codex
38
+ ```
39
+
40
+ Then simply run `codex` to get started.
41
+
42
+ <details>
43
+ <summary>You can also go to the <a href="https://github.com/openai/codex/releases/latest">latest GitHub Release</a> and download the appropriate binary for your platform.</summary>
44
+
45
+ Each GitHub Release contains many executables, but in practice, you likely want one of these:
46
+
47
+ - macOS
48
+ - Apple Silicon/arm64: `codex-aarch64-apple-darwin.tar.gz`
49
+ - x86_64 (older Mac hardware): `codex-x86_64-apple-darwin.tar.gz`
50
+ - Linux
51
+ - x86_64: `codex-x86_64-unknown-linux-musl.tar.gz`
52
+ - arm64: `codex-aarch64-unknown-linux-musl.tar.gz`
53
+
54
+ Each archive contains a single entry with the platform baked into the name (e.g., `codex-x86_64-unknown-linux-musl`), so you likely want to rename it to `codex` after extracting it.
55
+
56
+ </details>
57
+
58
+ ### Using Codex with your ChatGPT plan
59
+
60
+ Run `codex` and select **Sign in with ChatGPT**. We recommend signing into your ChatGPT account to use Codex as part of your Plus, Pro, Business, Edu, or Enterprise plan. [Learn more about what's included in your ChatGPT plan](https://help.openai.com/en/articles/11369540-codex-in-chatgpt).
61
+
62
+ You can also use Codex with an API key, but this requires [additional setup](https://developers.openai.com/codex/auth#sign-in-with-an-api-key).
63
+
64
+ ## Docs
65
+
66
+ - [**Codex Documentation**](https://developers.openai.com/codex)
67
+ - [**Contributing**](./docs/contributing.md)
68
+ - [**Installing & building**](./docs/install.md)
69
+ - [**Open source fund**](./docs/open-source-fund.md)
70
+
71
+ This repository is licensed under the [Apache-2.0 License](LICENSE).
home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/bin/codex.js ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env node
2
+ // Unified entry point for the Codex CLI.
3
+
4
+ import { spawn } from "node:child_process";
5
+ import { existsSync, realpathSync } from "fs";
6
+ import { createRequire } from "node:module";
7
+ import path from "path";
8
+ import { fileURLToPath } from "url";
9
+
10
+ // __dirname equivalent in ESM
11
+ const __filename = fileURLToPath(import.meta.url);
12
+ const __dirname = path.dirname(__filename);
13
+ const require = createRequire(import.meta.url);
14
+ const codexPackageRoot = realpathSync(path.join(__dirname, ".."));
15
+
16
+ const PLATFORM_PACKAGE_BY_TARGET = {
17
+ "x86_64-unknown-linux-musl": "@openai/codex-linux-x64",
18
+ "aarch64-unknown-linux-musl": "@openai/codex-linux-arm64",
19
+ "x86_64-apple-darwin": "@openai/codex-darwin-x64",
20
+ "aarch64-apple-darwin": "@openai/codex-darwin-arm64",
21
+ "x86_64-pc-windows-msvc": "@openai/codex-win32-x64",
22
+ "aarch64-pc-windows-msvc": "@openai/codex-win32-arm64",
23
+ };
24
+
25
+ const { platform, arch } = process;
26
+
27
+ let targetTriple = null;
28
+ switch (platform) {
29
+ case "linux":
30
+ case "android":
31
+ switch (arch) {
32
+ case "x64":
33
+ targetTriple = "x86_64-unknown-linux-musl";
34
+ break;
35
+ case "arm64":
36
+ targetTriple = "aarch64-unknown-linux-musl";
37
+ break;
38
+ default:
39
+ break;
40
+ }
41
+ break;
42
+ case "darwin":
43
+ switch (arch) {
44
+ case "x64":
45
+ targetTriple = "x86_64-apple-darwin";
46
+ break;
47
+ case "arm64":
48
+ targetTriple = "aarch64-apple-darwin";
49
+ break;
50
+ default:
51
+ break;
52
+ }
53
+ break;
54
+ case "win32":
55
+ switch (arch) {
56
+ case "x64":
57
+ targetTriple = "x86_64-pc-windows-msvc";
58
+ break;
59
+ case "arm64":
60
+ targetTriple = "aarch64-pc-windows-msvc";
61
+ break;
62
+ default:
63
+ break;
64
+ }
65
+ break;
66
+ default:
67
+ break;
68
+ }
69
+
70
+ if (!targetTriple) {
71
+ throw new Error(`Unsupported platform: ${platform} (${arch})`);
72
+ }
73
+
74
+ const platformPackage = PLATFORM_PACKAGE_BY_TARGET[targetTriple];
75
+ if (!platformPackage) {
76
+ throw new Error(`Unsupported target triple: ${targetTriple}`);
77
+ }
78
+
79
+ function findCodexExecutable() {
80
+ let vendorRoot;
81
+ try {
82
+ const packageJsonPath = require.resolve(`${platformPackage}/package.json`);
83
+ vendorRoot = path.join(path.dirname(packageJsonPath), "vendor");
84
+ } catch {
85
+ vendorRoot = path.join(__dirname, "..", "vendor");
86
+ }
87
+
88
+ const codexExecutable = path.join(
89
+ vendorRoot,
90
+ targetTriple,
91
+ "bin",
92
+ process.platform === "win32" ? "codex.exe" : "codex",
93
+ );
94
+ if (existsSync(codexExecutable)) {
95
+ return codexExecutable;
96
+ }
97
+
98
+ const packageManager = detectPackageManager();
99
+ const updateCommand =
100
+ packageManager === "bun"
101
+ ? "bun install -g @openai/codex@latest"
102
+ : packageManager === "pnpm"
103
+ ? "pnpm add -g @openai/codex@latest"
104
+ : "npm install -g @openai/codex@latest";
105
+ throw new Error(
106
+ `Missing optional dependency ${platformPackage}. Reinstall Codex: ${updateCommand}`,
107
+ );
108
+ }
109
+
110
+ const binaryPath = findCodexExecutable();
111
+
112
+ // Use an asynchronous spawn instead of spawnSync so that Node is able to
113
+ // respond to signals (e.g. Ctrl-C / SIGINT) while the native binary is
114
+ // executing. This allows us to forward those signals to the child process
115
+ // and guarantees that when either the child terminates or the parent
116
+ // receives a fatal signal, both processes exit in a predictable manner.
117
+
118
+ function isPnpmOwnedCodexInstall(nodeModulesDir) {
119
+ if (!existsSync(path.join(nodeModulesDir, ".modules.yaml"))) {
120
+ return false;
121
+ }
122
+
123
+ try {
124
+ return (
125
+ realpathSync(path.join(nodeModulesDir, "@openai", "codex")) ===
126
+ codexPackageRoot
127
+ );
128
+ } catch {
129
+ return false;
130
+ }
131
+ }
132
+
133
+ /**
134
+ * Use heuristics to detect the package manager that was used to install Codex
135
+ * in order to give the user a hint about how to update it.
136
+ */
137
+ function detectPackageManager() {
138
+ // pnpm's owning node_modules directory can be several parents above the
139
+ // package in isolated global layouts. Search ancestors of both the canonical
140
+ // package root and lexical entrypoint because pnpm may link either path.
141
+ const entrypointDir = path.dirname(path.resolve(process.argv[1]));
142
+ for (const startDir of new Set([codexPackageRoot, entrypointDir])) {
143
+ const filesystemRoot = path.parse(startDir).root;
144
+ for (
145
+ let currentDir = startDir;
146
+ currentDir !== filesystemRoot;
147
+ currentDir = path.dirname(currentDir)
148
+ ) {
149
+ if (isPnpmOwnedCodexInstall(path.join(currentDir, "node_modules"))) {
150
+ return "pnpm";
151
+ }
152
+ }
153
+
154
+ if (isPnpmOwnedCodexInstall(path.join(filesystemRoot, "node_modules"))) {
155
+ return "pnpm";
156
+ }
157
+ }
158
+
159
+ const userAgent = process.env.npm_config_user_agent || "";
160
+ if (/\bbun\//.test(userAgent)) {
161
+ return "bun";
162
+ }
163
+
164
+ const execPath = process.env.npm_execpath || "";
165
+ if (execPath.includes("bun")) {
166
+ return "bun";
167
+ }
168
+
169
+ if (
170
+ __dirname.includes(".bun/install/global") ||
171
+ __dirname.includes(".bun\\install\\global")
172
+ ) {
173
+ return "bun";
174
+ }
175
+
176
+ return userAgent ? "npm" : null;
177
+ }
178
+
179
+ const packageManager = detectPackageManager();
180
+ const packageManagerEnvVar =
181
+ packageManager === "bun"
182
+ ? "CODEX_MANAGED_BY_BUN"
183
+ : packageManager === "pnpm"
184
+ ? "CODEX_MANAGED_BY_PNPM"
185
+ : "CODEX_MANAGED_BY_NPM";
186
+ const env = {
187
+ ...process.env,
188
+ CODEX_MANAGED_PACKAGE_ROOT: codexPackageRoot,
189
+ };
190
+ delete env.CODEX_MANAGED_BY_NPM;
191
+ delete env.CODEX_MANAGED_BY_BUN;
192
+ delete env.CODEX_MANAGED_BY_PNPM;
193
+ env[packageManagerEnvVar] = "1";
194
+
195
+ const child = spawn(binaryPath, process.argv.slice(2), {
196
+ stdio: "inherit",
197
+ env,
198
+ });
199
+
200
+ child.on("error", (err) => {
201
+ // Typically triggered when the binary is missing or not executable.
202
+ // Re-throwing here will terminate the parent with a non-zero exit code
203
+ // while still printing a helpful stack trace.
204
+ // eslint-disable-next-line no-console
205
+ console.error(err);
206
+ process.exit(1);
207
+ });
208
+
209
+ // Forward common termination signals to the child so that it shuts down
210
+ // gracefully. In the handler we temporarily disable the default behavior of
211
+ // exiting immediately; once the child has been signaled we simply wait for
212
+ // its exit event which will in turn terminate the parent (see below).
213
+ const forwardSignal = (signal) => {
214
+ if (child.killed) {
215
+ return;
216
+ }
217
+ try {
218
+ child.kill(signal);
219
+ } catch {
220
+ /* ignore */
221
+ }
222
+ };
223
+
224
+ ["SIGINT", "SIGTERM", "SIGHUP"].forEach((sig) => {
225
+ process.on(sig, () => forwardSignal(sig));
226
+ });
227
+
228
+ // When the child exits, mirror its termination reason in the parent so that
229
+ // shell scripts and other tooling observe the correct exit status.
230
+ // Wrap the lifetime of the child process in a Promise so that we can await
231
+ // its termination in a structured way. The Promise resolves with an object
232
+ // describing how the child exited: either via exit code or due to a signal.
233
+ const childResult = await new Promise((resolve) => {
234
+ child.on("exit", (code, signal) => {
235
+ if (signal) {
236
+ resolve({ type: "signal", signal });
237
+ } else {
238
+ resolve({ type: "code", exitCode: code ?? 1 });
239
+ }
240
+ });
241
+ });
242
+
243
+ if (childResult.type === "signal") {
244
+ // Re-emit the same signal so that the parent terminates with the expected
245
+ // semantics (this also sets the correct exit code of 128 + n).
246
+ process.kill(process.pid, childResult.signal);
247
+ } else {
248
+ process.exit(childResult.exitCode);
249
+ }
home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <p align="center"><strong>Codex CLI</strong> is a coding agent from OpenAI that runs locally on your computer.
2
+ <p align="center">
3
+ <img src="https://github.com/openai/codex/blob/main/.github/codex-cli-splash.png" alt="Codex CLI splash" width="80%" />
4
+ </p>
5
+ </br>
6
+ If you want Codex in your code editor (VS Code, Cursor, Windsurf), <a href="https://developers.openai.com/codex/ide">install in your IDE.</a>
7
+ </br>If you want the desktop app experience, run <code>codex app</code> or visit <a href="https://chatgpt.com/codex?app-landing-page=true">the Codex App page</a>.
8
+ </br>If you are looking for the <em>cloud-based agent</em> from OpenAI, <strong>Codex Web</strong>, go to <a href="https://chatgpt.com/codex">chatgpt.com/codex</a>.</p>
9
+
10
+ ---
11
+
12
+ ## Quickstart
13
+
14
+ ### Installing and running Codex CLI
15
+
16
+ Run the following on Mac or Linux to install Codex CLI:
17
+
18
+ ```shell
19
+ curl -fsSL https://chatgpt.com/codex/install.sh | sh
20
+ ```
21
+
22
+ Run the following on Windows to install Codex CLI:
23
+
24
+ ```shell
25
+ powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
26
+ ```
27
+
28
+ Codex CLI can also be installed via the following package managers:
29
+
30
+ ```shell
31
+ # Install using npm
32
+ npm install -g @openai/codex
33
+ ```
34
+
35
+ ```shell
36
+ # Install using Homebrew
37
+ brew install --cask codex
38
+ ```
39
+
40
+ Then simply run `codex` to get started.
41
+
42
+ <details>
43
+ <summary>You can also go to the <a href="https://github.com/openai/codex/releases/latest">latest GitHub Release</a> and download the appropriate binary for your platform.</summary>
44
+
45
+ Each GitHub Release contains many executables, but in practice, you likely want one of these:
46
+
47
+ - macOS
48
+ - Apple Silicon/arm64: `codex-aarch64-apple-darwin.tar.gz`
49
+ - x86_64 (older Mac hardware): `codex-x86_64-apple-darwin.tar.gz`
50
+ - Linux
51
+ - x86_64: `codex-x86_64-unknown-linux-musl.tar.gz`
52
+ - arm64: `codex-aarch64-unknown-linux-musl.tar.gz`
53
+
54
+ Each archive contains a single entry with the platform baked into the name (e.g., `codex-x86_64-unknown-linux-musl`), so you likely want to rename it to `codex` after extracting it.
55
+
56
+ </details>
57
+
58
+ ### Using Codex with your ChatGPT plan
59
+
60
+ Run `codex` and select **Sign in with ChatGPT**. We recommend signing into your ChatGPT account to use Codex as part of your Plus, Pro, Business, Edu, or Enterprise plan. [Learn more about what's included in your ChatGPT plan](https://help.openai.com/en/articles/11369540-codex-in-chatgpt).
61
+
62
+ You can also use Codex with an API key, but this requires [additional setup](https://developers.openai.com/codex/auth#sign-in-with-an-api-key).
63
+
64
+ ## Docs
65
+
66
+ - [**Codex Documentation**](https://developers.openai.com/codex)
67
+ - [**Contributing**](./docs/contributing.md)
68
+ - [**Installing & building**](./docs/install.md)
69
+ - [**Open source fund**](./docs/open-source-fund.md)
70
+
71
+ This repository is licensed under the [Apache-2.0 License](LICENSE).
home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/package.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@openai/codex",
3
+ "version": "0.144.1-linux-x64",
4
+ "license": "Apache-2.0",
5
+ "os": [
6
+ "linux"
7
+ ],
8
+ "cpu": [
9
+ "x64"
10
+ ],
11
+ "files": [
12
+ "vendor"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/openai/codex.git",
17
+ "directory": "codex-cli"
18
+ },
19
+ "engines": {
20
+ "node": ">=16"
21
+ },
22
+ "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319"
23
+ }
home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-package.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "layoutVersion": 1,
3
+ "version": "0.144.1",
4
+ "target": "x86_64-unknown-linux-musl",
5
+ "variant": "codex",
6
+ "entrypoint": "bin/codex",
7
+ "resourcesDir": "codex-resources",
8
+ "pathDir": "codex-path"
9
+ }
home/.nvm/versions/node/v22.22.1/lib/node_modules/@openai/codex/package.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@openai/codex",
3
+ "version": "0.144.1",
4
+ "description": "Codex CLI is a coding agent from OpenAI that runs locally on your computer.",
5
+ "license": "Apache-2.0",
6
+ "bin": {
7
+ "codex": "bin/codex.js"
8
+ },
9
+ "type": "module",
10
+ "engines": {
11
+ "node": ">=16"
12
+ },
13
+ "files": [
14
+ "bin/codex.js"
15
+ ],
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/openai/codex.git",
19
+ "directory": "codex-cli"
20
+ },
21
+ "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
22
+ "optionalDependencies": {
23
+ "@openai/codex-linux-x64": "npm:@openai/codex@0.144.1-linux-x64",
24
+ "@openai/codex-linux-arm64": "npm:@openai/codex@0.144.1-linux-arm64",
25
+ "@openai/codex-darwin-x64": "npm:@openai/codex@0.144.1-darwin-x64",
26
+ "@openai/codex-darwin-arm64": "npm:@openai/codex@0.144.1-darwin-arm64",
27
+ "@openai/codex-win32-x64": "npm:@openai/codex@0.144.1-win32-x64",
28
+ "@openai/codex-win32-arm64": "npm:@openai/codex@0.144.1-win32-arm64"
29
+ }
30
+ }
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/bin/node-gyp-bin/node-gyp ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/usr/bin/env sh
2
+ if [ "x$npm_config_node_gyp" = "x" ]; then
3
+ node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@"
4
+ else
5
+ "$npm_config_node_gyp" "$@"
6
+ fi
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ if not defined npm_config_node_gyp (
2
+ node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %*
3
+ ) else (
4
+ node "%npm_config_node_gyp%" %*
5
+ )
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-access.md ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-access
3
+ section: 1
4
+ description: Set access level on published packages
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm access list packages [<user>|<scope>|<scope:team>] [<package>]
11
+ npm access list collaborators [<package> [<user>]]
12
+ npm access get status [<package>]
13
+ npm access set status=public|private [<package>]
14
+ npm access set mfa=none|publish|automation [<package>]
15
+ npm access grant <read-only|read-write> <scope:team> [<package>]
16
+ npm access revoke <scope:team> [<package>]
17
+ ```
18
+
19
+ Note: This command is unaware of workspaces.
20
+
21
+ ### Description
22
+
23
+ Used to set access controls on private packages.
24
+
25
+ For all of the subcommands, `npm access` will perform actions on the packages
26
+ in the current working directory if no package name is passed to the
27
+ subcommand.
28
+
29
+ * public / restricted (deprecated):
30
+ Set a package to be either publicly accessible or restricted.
31
+
32
+ * grant / revoke (deprecated):
33
+ Add or remove the ability of users and teams to have read-only or read-write
34
+ access to a package.
35
+
36
+ * 2fa-required / 2fa-not-required (deprecated):
37
+ Configure whether a package requires that anyone publishing it have two-factor
38
+ authentication enabled on their account.
39
+
40
+ * ls-packages (deprecated):
41
+ Show all of the packages a user or a team is able to access, along with the
42
+ access level, except for read-only public packages (it won't print the whole
43
+ registry listing)
44
+
45
+ * ls-collaborators (deprecated):
46
+ Show all of the access privileges for a package. Will only show permissions
47
+ for packages to which you have at least read access. If `<user>` is passed in,
48
+ the list is filtered only to teams _that_ user happens to belong to.
49
+
50
+ * edit (not implemented)
51
+
52
+ ### Details
53
+
54
+ `npm access` always operates directly on the current registry, configurable
55
+ from the command line using `--registry=<registry url>`.
56
+
57
+ Unscoped packages are *always public*.
58
+
59
+ Scoped packages *default to restricted*, but you can either publish them as
60
+ public using `npm publish --access=public`, or set their access as public using
61
+ `npm access public` after the initial publish.
62
+
63
+ You must have privileges to set the access of a package:
64
+
65
+ * You are an owner of an unscoped or scoped package.
66
+ * You are a member of the team that owns a scope.
67
+ * You have been given read-write privileges for a package, either as a member
68
+ of a team or directly as an owner.
69
+
70
+ If you have two-factor authentication enabled then you'll be prompted to provide a second factor, or may use the `--otp=...` option to specify it on
71
+ the command line.
72
+
73
+ If your account is not paid, then attempts to publish scoped packages will
74
+ fail with an HTTP 402 status code (logically enough), unless you use
75
+ `--access=public`.
76
+
77
+ Management of teams and team memberships is done with the `npm team` command.
78
+
79
+ ### Configuration
80
+
81
+ #### `json`
82
+
83
+ * Default: false
84
+ * Type: Boolean
85
+
86
+ Whether or not to output JSON data, rather than the normal output.
87
+
88
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
89
+ saving them to your `package.json`.
90
+
91
+ Not supported by all npm commands.
92
+
93
+
94
+
95
+ #### `otp`
96
+
97
+ * Default: null
98
+ * Type: null or String
99
+
100
+ This is a one-time password from a two-factor authenticator. It's needed
101
+ when publishing or changing package permissions with `npm access`.
102
+
103
+ If not set, and a registry response fails with a challenge for a one-time
104
+ password, npm will prompt on the command line for one.
105
+
106
+
107
+
108
+ #### `registry`
109
+
110
+ * Default: "https://registry.npmjs.org/"
111
+ * Type: URL
112
+
113
+ The base URL of the npm registry.
114
+
115
+
116
+
117
+ ### See Also
118
+
119
+ * [`libnpmaccess`](https://npm.im/libnpmaccess)
120
+ * [npm team](/commands/npm-team)
121
+ * [npm publish](/commands/npm-publish)
122
+ * [npm config](/commands/npm-config)
123
+ * [npm registry](/using-npm/registry)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-adduser.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-adduser
3
+ section: 1
4
+ description: Add a registry user account
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm adduser
11
+
12
+ alias: add-user
13
+ ```
14
+
15
+ Note: This command is unaware of workspaces.
16
+
17
+ ### Description
18
+
19
+ Create a new user in the specified registry, and save the credentials to
20
+ the `.npmrc` file. If no registry is specified, the default registry
21
+ will be used (see [`registry`](/using-npm/registry)).
22
+
23
+ When using `legacy` for your `auth-type`, the username, password, and
24
+ email are read in from prompts.
25
+
26
+ ### Configuration
27
+
28
+ #### `registry`
29
+
30
+ * Default: "https://registry.npmjs.org/"
31
+ * Type: URL
32
+
33
+ The base URL of the npm registry.
34
+
35
+
36
+
37
+ #### `scope`
38
+
39
+ * Default: the scope of the current project, if any, or ""
40
+ * Type: String
41
+
42
+ Associate an operation with a scope for a scoped registry.
43
+
44
+ Useful when logging in to or out of a private registry:
45
+
46
+ ```
47
+ # log in, linking the scope to the custom registry
48
+ npm login --scope=@mycorp --registry=https://registry.mycorp.com
49
+
50
+ # log out, removing the link and the auth token
51
+ npm logout --scope=@mycorp
52
+ ```
53
+
54
+ This will cause `@mycorp` to be mapped to the registry for future
55
+ installation of packages specified according to the pattern
56
+ `@mycorp/package`.
57
+
58
+ This will also cause `npm init` to create a scoped package.
59
+
60
+ ```
61
+ # accept all defaults, and create a package named "@foo/whatever",
62
+ # instead of just named "whatever"
63
+ npm init --scope=@foo --yes
64
+ ```
65
+
66
+
67
+
68
+ #### `auth-type`
69
+
70
+ * Default: "web"
71
+ * Type: "legacy" or "web"
72
+
73
+ What authentication strategy to use with `login`. Note that if an `otp`
74
+ config is given, this value will always be set to `legacy`.
75
+
76
+
77
+
78
+ ### See Also
79
+
80
+ * [npm registry](/using-npm/registry)
81
+ * [npm config](/commands/npm-config)
82
+ * [npmrc](/configuring-npm/npmrc)
83
+ * [npm owner](/commands/npm-owner)
84
+ * [npm whoami](/commands/npm-whoami)
85
+ * [npm token](/commands/npm-token)
86
+ * [npm profile](/commands/npm-profile)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-audit.md ADDED
@@ -0,0 +1,478 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-audit
3
+ section: 1
4
+ description: Run a security audit
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm audit [fix|signatures]
11
+ ```
12
+
13
+ ### Description
14
+
15
+ The audit command submits a description of the dependencies configured in
16
+ your project to your default registry and asks for a report of known
17
+ vulnerabilities. If any vulnerabilities are found, then the impact and
18
+ appropriate remediation will be calculated. If the `fix` argument is
19
+ provided, then remediations will be applied to the package tree.
20
+
21
+ The command will exit with a 0 exit code if no vulnerabilities were found.
22
+
23
+ Note that some vulnerabilities cannot be fixed automatically and will
24
+ require manual intervention or review. Also note that since `npm audit
25
+ fix` runs a full-fledged `npm install` under the hood, all configs that
26
+ apply to the installer will also apply to `npm install` -- so things like
27
+ `npm audit fix --package-lock-only` will work as expected.
28
+
29
+ By default, the audit command will exit with a non-zero code if any
30
+ vulnerability is found. It may be useful in CI environments to include the
31
+ `--audit-level` parameter to specify the minimum vulnerability level that
32
+ will cause the command to fail. This option does not filter the report
33
+ output, it simply changes the command's failure threshold.
34
+
35
+ ### Package lock
36
+
37
+ By default npm requires a package-lock or shrinkwrap in order to run the
38
+ audit. You can bypass the package lock with `--no-package-lock` but be
39
+ aware the results may be different with every run, since npm will
40
+ re-build the dependency tree each time.
41
+
42
+ ### Audit Signatures
43
+
44
+ To ensure the integrity of packages you download from the public npm registry, or any registry that supports signatures, you can verify the registry signatures of downloaded packages using the npm CLI.
45
+
46
+ Registry signatures can be verified using the following `audit` command:
47
+
48
+ ```bash
49
+ $ npm audit signatures
50
+ ```
51
+
52
+ The `audit signatures` command will also verify the provenance attestations of
53
+ downloaded packages. Because provenance attestations are such a new feature,
54
+ security features may be added to (or changed in) the attestation format over
55
+ time. To ensure that you're always able to verify attestation signatures check
56
+ that you're running the latest version of the npm CLI. Please note this often
57
+ means updating npm beyond the version that ships with Node.js.
58
+
59
+ The npm CLI supports registry signatures and signing keys provided by any registry if the following conventions are followed:
60
+
61
+ 1. Signatures are provided in the package's `packument` in each published version within the `dist` object:
62
+
63
+ ```json
64
+ "dist":{
65
+ "..omitted..": "..omitted..",
66
+ "signatures": [{
67
+ "keyid": "SHA256:{{SHA256_PUBLIC_KEY}}",
68
+ "sig": "a312b9c3cb4a1b693e8ebac5ee1ca9cc01f2661c14391917dcb111517f72370809..."
69
+ }]
70
+ }
71
+ ```
72
+
73
+ See this [example](https://registry.npmjs.org/light-cycle/1.4.3) of a signed package from the public npm registry.
74
+
75
+ The `sig` is generated using the following template: `${package.name}@${package.version}:${package.dist.integrity}` and the `keyid` has to match one of the public signing keys below.
76
+
77
+ 2. Public signing keys are provided at `registry-host.tld/-/npm/v1/keys` in the following format:
78
+
79
+ ```
80
+ {
81
+ "keys": [{
82
+ "expires": null,
83
+ "keyid": "SHA256:{{SHA256_PUBLIC_KEY}}",
84
+ "keytype": "ecdsa-sha2-nistp256",
85
+ "scheme": "ecdsa-sha2-nistp256",
86
+ "key": "{{B64_PUBLIC_KEY}}"
87
+ }]
88
+ }
89
+ ```
90
+
91
+ Keys response:
92
+
93
+ - `expires`: null or a simplified extended [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDTHH:mm:ss.sssZ`
94
+ - `keydid`: sha256 fingerprint of the public key
95
+ - `keytype`: only `ecdsa-sha2-nistp256` is currently supported by the npm CLI
96
+ - `scheme`: only `ecdsa-sha2-nistp256` is currently supported by the npm CLI
97
+ - `key`: base64 encoded public key
98
+
99
+ See this [example key's response from the public npm registry](https://registry.npmjs.org/-/npm/v1/keys).
100
+
101
+ ### Audit Endpoints
102
+
103
+ There are two audit endpoints that npm may use to fetch vulnerability
104
+ information: the `Bulk Advisory` endpoint and the `Quick Audit` endpoint.
105
+
106
+ #### Bulk Advisory Endpoint
107
+
108
+ As of version 7, npm uses the much faster `Bulk Advisory` endpoint to
109
+ optimize the speed of calculating audit results.
110
+
111
+ npm will generate a JSON payload with the name and list of versions of each
112
+ package in the tree, and POST it to the default configured registry at
113
+ the path `/-/npm/v1/security/advisories/bulk`.
114
+
115
+ Any packages in the tree that do not have a `version` field in their
116
+ package.json file will be ignored. If any `--omit` options are specified
117
+ (either via the [`--omit` config](/using-npm/config#omit), or one of the
118
+ shorthands such as `--production`, `--only=dev`, and so on), then packages will
119
+ be omitted from the submitted payload as appropriate.
120
+
121
+ If the registry responds with an error, or with an invalid response, then
122
+ npm will attempt to load advisory data from the `Quick Audit` endpoint.
123
+
124
+ The expected result will contain a set of advisory objects for each
125
+ dependency that matches the advisory range. Each advisory object contains
126
+ a `name`, `url`, `id`, `severity`, `vulnerable_versions`, and `title`.
127
+
128
+ npm then uses these advisory objects to calculate vulnerabilities and
129
+ meta-vulnerabilities of the dependencies within the tree.
130
+
131
+ #### Quick Audit Endpoint
132
+
133
+ If the `Bulk Advisory` endpoint returns an error, or invalid data, npm will
134
+ attempt to load advisory data from the `Quick Audit` endpoint, which is
135
+ considerably slower in most cases.
136
+
137
+ The full package tree as found in `package-lock.json` is submitted, along
138
+ with the following pieces of additional metadata:
139
+
140
+ * `npm_version`
141
+ * `node_version`
142
+ * `platform`
143
+ * `arch`
144
+ * `node_env`
145
+
146
+ All packages in the tree are submitted to the Quick Audit endpoint.
147
+ Omitted dependency types are skipped when generating the report.
148
+
149
+ #### Scrubbing
150
+
151
+ Out of an abundance of caution, npm versions 5 and 6 would "scrub" any
152
+ packages from the submitted report if their name contained a `/` character,
153
+ so as to avoid leaking the names of potentially private packages or git
154
+ URLs.
155
+
156
+ However, in practice, this resulted in audits often failing to properly
157
+ detect meta-vulnerabilities, because the tree would appear to be invalid
158
+ due to missing dependencies, and prevented the detection of vulnerabilities
159
+ in package trees that used git dependencies or private modules.
160
+
161
+ This scrubbing has been removed from npm as of version 7.
162
+
163
+ #### Calculating Meta-Vulnerabilities and Remediations
164
+
165
+ npm uses the
166
+ [`@npmcli/metavuln-calculator`](http://npm.im/@npmcli/metavuln-calculator)
167
+ module to turn a set of security advisories into a set of "vulnerability"
168
+ objects. A "meta-vulnerability" is a dependency that is vulnerable by
169
+ virtue of dependence on vulnerable versions of a vulnerable package.
170
+
171
+ For example, if the package `foo` is vulnerable in the range `>=1.0.2
172
+ <2.0.0`, and the package `bar` depends on `foo@^1.1.0`, then that version
173
+ of `bar` can only be installed by installing a vulnerable version of `foo`.
174
+ In this case, `bar` is a "metavulnerability".
175
+
176
+ Once metavulnerabilities for a given package are calculated, they are
177
+ cached in the `~/.npm` folder and only re-evaluated if the advisory range
178
+ changes, or a new version of the package is published (in which case, the
179
+ new version is checked for metavulnerable status as well).
180
+
181
+ If the chain of metavulnerabilities extends all the way to the root
182
+ project, and it cannot be updated without changing its dependency ranges,
183
+ then `npm audit fix` will require the `--force` option to apply the
184
+ remediation. If remediations do not require changes to the dependency
185
+ ranges, then all vulnerable packages will be updated to a version that does
186
+ not have an advisory or metavulnerability posted against it.
187
+
188
+ ### Exit Code
189
+
190
+ The `npm audit` command will exit with a 0 exit code if no vulnerabilities
191
+ were found. The `npm audit fix` command will exit with 0 exit code if no
192
+ vulnerabilities are found _or_ if the remediation is able to successfully
193
+ fix all vulnerabilities.
194
+
195
+ If vulnerabilities were found the exit code will depend on the
196
+ [`audit-level` config](/using-npm/config#audit-level).
197
+
198
+ ### Examples
199
+
200
+ Scan your project for vulnerabilities and automatically install any compatible
201
+ updates to vulnerable dependencies:
202
+
203
+ ```bash
204
+ $ npm audit fix
205
+ ```
206
+
207
+ Run `audit fix` without modifying `node_modules`, but still updating the
208
+ pkglock:
209
+
210
+ ```bash
211
+ $ npm audit fix --package-lock-only
212
+ ```
213
+
214
+ Skip updating `devDependencies`:
215
+
216
+ ```bash
217
+ $ npm audit fix --only=prod
218
+ ```
219
+
220
+ Have `audit fix` install SemVer-major updates to toplevel dependencies, not
221
+ just SemVer-compatible ones:
222
+
223
+ ```bash
224
+ $ npm audit fix --force
225
+ ```
226
+
227
+ Do a dry run to get an idea of what `audit fix` will do, and _also_ output
228
+ install information in JSON format:
229
+
230
+ ```bash
231
+ $ npm audit fix --dry-run --json
232
+ ```
233
+
234
+ Scan your project for vulnerabilities and just show the details, without
235
+ fixing anything:
236
+
237
+ ```bash
238
+ $ npm audit
239
+ ```
240
+
241
+ Get the detailed audit report in JSON format:
242
+
243
+ ```bash
244
+ $ npm audit --json
245
+ ```
246
+
247
+ Fail an audit only if the results include a vulnerability with a level of moderate or higher:
248
+
249
+ ```bash
250
+ $ npm audit --audit-level=moderate
251
+ ```
252
+
253
+ ### Configuration
254
+
255
+ #### `audit-level`
256
+
257
+ * Default: null
258
+ * Type: null, "info", "low", "moderate", "high", "critical", or "none"
259
+
260
+ The minimum level of vulnerability for `npm audit` to exit with a non-zero
261
+ exit code.
262
+
263
+
264
+
265
+ #### `dry-run`
266
+
267
+ * Default: false
268
+ * Type: Boolean
269
+
270
+ Indicates that you don't want npm to make any changes and that it should
271
+ only report what it would have done. This can be passed into any of the
272
+ commands that modify your local installation, eg, `install`, `update`,
273
+ `dedupe`, `uninstall`, as well as `pack` and `publish`.
274
+
275
+ Note: This is NOT honored by other network related commands, eg `dist-tags`,
276
+ `owner`, etc.
277
+
278
+
279
+
280
+ #### `force`
281
+
282
+ * Default: false
283
+ * Type: Boolean
284
+
285
+ Removes various protections against unfortunate side effects, common
286
+ mistakes, unnecessary performance degradation, and malicious input.
287
+
288
+ * Allow clobbering non-npm files in global installs.
289
+ * Allow the `npm version` command to work on an unclean git repository.
290
+ * Allow deleting the cache folder with `npm cache clean`.
291
+ * Allow installing packages that have an `engines` declaration requiring a
292
+ different version of npm.
293
+ * Allow installing packages that have an `engines` declaration requiring a
294
+ different version of `node`, even if `--engine-strict` is enabled.
295
+ * Allow `npm audit fix` to install modules outside your stated dependency
296
+ range (including SemVer-major changes).
297
+ * Allow unpublishing all versions of a published package.
298
+ * Allow conflicting peerDependencies to be installed in the root project.
299
+ * Implicitly set `--yes` during `npm init`.
300
+ * Allow clobbering existing values in `npm pkg`
301
+ * Allow unpublishing of entire packages (not just a single version).
302
+
303
+ If you don't have a clear idea of what you want to do, it is strongly
304
+ recommended that you do not use this option!
305
+
306
+
307
+
308
+ #### `json`
309
+
310
+ * Default: false
311
+ * Type: Boolean
312
+
313
+ Whether or not to output JSON data, rather than the normal output.
314
+
315
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
316
+ saving them to your `package.json`.
317
+
318
+ Not supported by all npm commands.
319
+
320
+
321
+
322
+ #### `package-lock-only`
323
+
324
+ * Default: false
325
+ * Type: Boolean
326
+
327
+ If set to true, the current operation will only use the `package-lock.json`,
328
+ ignoring `node_modules`.
329
+
330
+ For `update` this means only the `package-lock.json` will be updated,
331
+ instead of checking `node_modules` and downloading dependencies.
332
+
333
+ For `list` this means the output will be based on the tree described by the
334
+ `package-lock.json`, rather than the contents of `node_modules`.
335
+
336
+
337
+
338
+ #### `package-lock`
339
+
340
+ * Default: true
341
+ * Type: Boolean
342
+
343
+ If set to false, then ignore `package-lock.json` files when installing. This
344
+ will also prevent _writing_ `package-lock.json` if `save` is true.
345
+
346
+
347
+
348
+ #### `omit`
349
+
350
+ * Default: 'dev' if the `NODE_ENV` environment variable is set to
351
+ 'production', otherwise empty.
352
+ * Type: "dev", "optional", or "peer" (can be set multiple times)
353
+
354
+ Dependency types to omit from the installation tree on disk.
355
+
356
+ Note that these dependencies _are_ still resolved and added to the
357
+ `package-lock.json` or `npm-shrinkwrap.json` file. They are just not
358
+ physically installed on disk.
359
+
360
+ If a package type appears in both the `--include` and `--omit` lists, then
361
+ it will be included.
362
+
363
+ If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
364
+ variable will be set to `'production'` for all lifecycle scripts.
365
+
366
+
367
+
368
+ #### `include`
369
+
370
+ * Default:
371
+ * Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
372
+
373
+ Option that allows for defining which types of dependencies to install.
374
+
375
+ This is the inverse of `--omit=<type>`.
376
+
377
+ Dependency types specified in `--include` will not be omitted, regardless of
378
+ the order in which omit/include are specified on the command-line.
379
+
380
+
381
+
382
+ #### `foreground-scripts`
383
+
384
+ * Default: `false` unless when using `npm pack` or `npm publish` where it
385
+ defaults to `true`
386
+ * Type: Boolean
387
+
388
+ Run all build scripts (ie, `preinstall`, `install`, and `postinstall`)
389
+ scripts for installed packages in the foreground process, sharing standard
390
+ input, output, and error with the main npm process.
391
+
392
+ Note that this will generally make installs run slower, and be much noisier,
393
+ but can be useful for debugging.
394
+
395
+
396
+
397
+ #### `ignore-scripts`
398
+
399
+ * Default: false
400
+ * Type: Boolean
401
+
402
+ If true, npm does not run scripts specified in package.json files.
403
+
404
+ Note that commands explicitly intended to run a particular script, such as
405
+ `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
406
+ will still run their intended script if `ignore-scripts` is set, but they
407
+ will *not* run any pre- or post-scripts.
408
+
409
+
410
+
411
+ #### `workspace`
412
+
413
+ * Default:
414
+ * Type: String (can be set multiple times)
415
+
416
+ Enable running a command in the context of the configured workspaces of the
417
+ current project while filtering by running only the workspaces defined by
418
+ this configuration option.
419
+
420
+ Valid values for the `workspace` config are either:
421
+
422
+ * Workspace names
423
+ * Path to a workspace directory
424
+ * Path to a parent workspace directory (will result in selecting all
425
+ workspaces within that folder)
426
+
427
+ When set for the `npm init` command, this may be set to the folder of a
428
+ workspace which does not yet exist, to create the folder and set it up as a
429
+ brand new workspace within the project.
430
+
431
+ This value is not exported to the environment for child processes.
432
+
433
+ #### `workspaces`
434
+
435
+ * Default: null
436
+ * Type: null or Boolean
437
+
438
+ Set to true to run the command in the context of **all** configured
439
+ workspaces.
440
+
441
+ Explicitly setting this to false will cause commands like `install` to
442
+ ignore workspaces altogether. When not set explicitly:
443
+
444
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
445
+ will link workspaces into the `node_modules` folder. - Commands that do
446
+ other things (test, exec, publish, etc.) will operate on the root project,
447
+ _unless_ one or more workspaces are specified in the `workspace` config.
448
+
449
+ This value is not exported to the environment for child processes.
450
+
451
+ #### `include-workspace-root`
452
+
453
+ * Default: false
454
+ * Type: Boolean
455
+
456
+ Include the workspace root when workspaces are enabled for a command.
457
+
458
+ When false, specifying individual workspaces via the `workspace` config, or
459
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
460
+ the specified workspaces, and not on the root project.
461
+
462
+ This value is not exported to the environment for child processes.
463
+
464
+ #### `install-links`
465
+
466
+ * Default: false
467
+ * Type: Boolean
468
+
469
+ When set file: protocol dependencies will be packed and installed as regular
470
+ dependencies instead of creating a symlink. This option has no effect on
471
+ workspaces.
472
+
473
+
474
+
475
+ ### See Also
476
+
477
+ * [npm install](/commands/npm-install)
478
+ * [config](/using-npm/config)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-bugs.md ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-bugs
3
+ section: 1
4
+ description: Report bugs for a package in a web browser
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm bugs [<pkgname> [<pkgname> ...]]
11
+
12
+ alias: issues
13
+ ```
14
+
15
+ ### Description
16
+
17
+ This command tries to guess at the likely location of a package's bug
18
+ tracker URL or the `mailto` URL of the support email, and then tries to
19
+ open it using the [`--browser` config](/using-npm/config#browser) param. If no
20
+ package name is provided, it will search for a `package.json` in the current
21
+ folder and use the `name` property.
22
+
23
+ ### Configuration
24
+
25
+ #### `browser`
26
+
27
+ * Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
28
+ * Type: null, Boolean, or String
29
+
30
+ The browser that is called by npm commands to open websites.
31
+
32
+ Set to `false` to suppress browser behavior and instead print urls to
33
+ terminal.
34
+
35
+ Set to `true` to use default system URL opener.
36
+
37
+
38
+
39
+ #### `registry`
40
+
41
+ * Default: "https://registry.npmjs.org/"
42
+ * Type: URL
43
+
44
+ The base URL of the npm registry.
45
+
46
+
47
+
48
+ #### `workspace`
49
+
50
+ * Default:
51
+ * Type: String (can be set multiple times)
52
+
53
+ Enable running a command in the context of the configured workspaces of the
54
+ current project while filtering by running only the workspaces defined by
55
+ this configuration option.
56
+
57
+ Valid values for the `workspace` config are either:
58
+
59
+ * Workspace names
60
+ * Path to a workspace directory
61
+ * Path to a parent workspace directory (will result in selecting all
62
+ workspaces within that folder)
63
+
64
+ When set for the `npm init` command, this may be set to the folder of a
65
+ workspace which does not yet exist, to create the folder and set it up as a
66
+ brand new workspace within the project.
67
+
68
+ This value is not exported to the environment for child processes.
69
+
70
+ #### `workspaces`
71
+
72
+ * Default: null
73
+ * Type: null or Boolean
74
+
75
+ Set to true to run the command in the context of **all** configured
76
+ workspaces.
77
+
78
+ Explicitly setting this to false will cause commands like `install` to
79
+ ignore workspaces altogether. When not set explicitly:
80
+
81
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
82
+ will link workspaces into the `node_modules` folder. - Commands that do
83
+ other things (test, exec, publish, etc.) will operate on the root project,
84
+ _unless_ one or more workspaces are specified in the `workspace` config.
85
+
86
+ This value is not exported to the environment for child processes.
87
+
88
+ #### `include-workspace-root`
89
+
90
+ * Default: false
91
+ * Type: Boolean
92
+
93
+ Include the workspace root when workspaces are enabled for a command.
94
+
95
+ When false, specifying individual workspaces via the `workspace` config, or
96
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
97
+ the specified workspaces, and not on the root project.
98
+
99
+ This value is not exported to the environment for child processes.
100
+
101
+ ### See Also
102
+
103
+ * [npm docs](/commands/npm-docs)
104
+ * [npm view](/commands/npm-view)
105
+ * [npm publish](/commands/npm-publish)
106
+ * [npm registry](/using-npm/registry)
107
+ * [npm config](/commands/npm-config)
108
+ * [npmrc](/configuring-npm/npmrc)
109
+ * [package.json](/configuring-npm/package-json)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-cache.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-cache
3
+ section: 1
4
+ description: Manipulates packages cache
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm cache add <package-spec>
11
+ npm cache clean [<key>]
12
+ npm cache ls [<name>@<version>]
13
+ npm cache verify
14
+ ```
15
+
16
+ Note: This command is unaware of workspaces.
17
+
18
+ ### Description
19
+
20
+ Used to add, list, or clean the npm cache folder.
21
+
22
+ * add:
23
+ Add the specified packages to the local cache. This command is primarily
24
+ intended to be used internally by npm, but it can provide a way to
25
+ add data to the local installation cache explicitly.
26
+
27
+ * clean:
28
+ Delete all data out of the cache folder. Note that this is typically
29
+ unnecessary, as npm's cache is self-healing and resistant to data
30
+ corruption issues.
31
+
32
+ * verify:
33
+ Verify the contents of the cache folder, garbage collecting any unneeded
34
+ data, and verifying the integrity of the cache index and all cached data.
35
+
36
+ ### Details
37
+
38
+ npm stores cache data in an opaque directory within the configured `cache`,
39
+ named `_cacache`. This directory is a
40
+ [`cacache`](http://npm.im/cacache)-based content-addressable cache that
41
+ stores all http request data as well as other package-related data. This
42
+ directory is primarily accessed through `pacote`, the library responsible
43
+ for all package fetching as of npm@5.
44
+
45
+ All data that passes through the cache is fully verified for integrity on
46
+ both insertion and extraction. Cache corruption will either trigger an
47
+ error, or signal to `pacote` that the data must be refetched, which it will
48
+ do automatically. For this reason, it should never be necessary to clear
49
+ the cache for any reason other than reclaiming disk space, thus why `clean`
50
+ now requires `--force` to run.
51
+
52
+ There is currently no method exposed through npm to inspect or directly
53
+ manage the contents of this cache. In order to access it, `cacache` must be
54
+ used directly.
55
+
56
+ npm will not remove data by itself: the cache will grow as new packages are
57
+ installed.
58
+
59
+ ### A note about the cache's design
60
+
61
+ The npm cache is strictly a cache: it should not be relied upon as a
62
+ persistent and reliable data store for package data. npm makes no guarantee
63
+ that a previously-cached piece of data will be available later, and will
64
+ automatically delete corrupted contents. The primary guarantee that the
65
+ cache makes is that, if it does return data, that data will be exactly the
66
+ data that was inserted.
67
+
68
+ To run an offline verification of existing cache contents, use `npm cache
69
+ verify`.
70
+
71
+ ### Configuration
72
+
73
+ #### `cache`
74
+
75
+ * Default: Windows: `%LocalAppData%\npm-cache`, Posix: `~/.npm`
76
+ * Type: Path
77
+
78
+ The location of npm's cache directory.
79
+
80
+
81
+
82
+ ### See Also
83
+
84
+ * [package spec](/using-npm/package-spec)
85
+ * [npm folders](/configuring-npm/folders)
86
+ * [npm config](/commands/npm-config)
87
+ * [npmrc](/configuring-npm/npmrc)
88
+ * [npm install](/commands/npm-install)
89
+ * [npm publish](/commands/npm-publish)
90
+ * [npm pack](/commands/npm-pack)
91
+ * https://npm.im/cacache
92
+ * https://npm.im/pacote
93
+ * https://npm.im/@npmcli/arborist
94
+ * https://npm.im/make-fetch-happen
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-ci.md ADDED
@@ -0,0 +1,318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-ci
3
+ section: 1
4
+ description: Clean install a project
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm ci
11
+
12
+ aliases: clean-install, ic, install-clean, isntall-clean
13
+ ```
14
+
15
+ ### Description
16
+
17
+ This command is similar to [`npm install`](/commands/npm-install), except
18
+ it's meant to be used in automated environments such as test platforms,
19
+ continuous integration, and deployment -- or any situation where you want
20
+ to make sure you're doing a clean install of your dependencies.
21
+
22
+ The main differences between using `npm install` and `npm ci` are:
23
+
24
+ * The project **must** have an existing `package-lock.json` or
25
+ `npm-shrinkwrap.json`.
26
+ * If dependencies in the package lock do not match those in `package.json`,
27
+ `npm ci` will exit with an error, instead of updating the package lock.
28
+ * `npm ci` can only install entire projects at a time: individual
29
+ dependencies cannot be added with this command.
30
+ * If a `node_modules` is already present, it will be automatically removed
31
+ before `npm ci` begins its install.
32
+ * It will never write to `package.json` or any of the package-locks:
33
+ installs are essentially frozen.
34
+
35
+ NOTE: If you create your `package-lock.json` file by running `npm install`
36
+ with flags that can affect the shape of your dependency tree, such as
37
+ `--legacy-peer-deps` or `--install-links`, you _must_ provide the same
38
+ flags to `npm ci` or you are likely to encounter errors. An easy way to do
39
+ this is to run, for example,
40
+ `npm config set legacy-peer-deps=true --location=project` and commit the
41
+ `.npmrc` file to your repo.
42
+
43
+ ### Example
44
+
45
+ Make sure you have a package-lock and an up-to-date install:
46
+
47
+ ```bash
48
+ $ cd ./my/npm/project
49
+ $ npm install
50
+ added 154 packages in 10s
51
+ $ ls | grep package-lock
52
+ ```
53
+
54
+ Run `npm ci` in that project
55
+
56
+ ```bash
57
+ $ npm ci
58
+ added 154 packages in 5s
59
+ ```
60
+
61
+ Configure Travis CI to build using `npm ci` instead of `npm install`:
62
+
63
+ ```bash
64
+ # .travis.yml
65
+ install:
66
+ - npm ci
67
+ # keep the npm cache around to speed up installs
68
+ cache:
69
+ directories:
70
+ - "$HOME/.npm"
71
+ ```
72
+
73
+ ### Configuration
74
+
75
+ #### `install-strategy`
76
+
77
+ * Default: "hoisted"
78
+ * Type: "hoisted", "nested", "shallow", or "linked"
79
+
80
+ Sets the strategy for installing packages in node_modules. hoisted
81
+ (default): Install non-duplicated in top-level, and duplicated as necessary
82
+ within directory structure. nested: (formerly --legacy-bundling) install in
83
+ place, no hoisting. shallow (formerly --global-style) only install direct
84
+ deps at top-level. linked: (experimental) install in node_modules/.store,
85
+ link in place, unhoisted.
86
+
87
+
88
+
89
+ #### `legacy-bundling`
90
+
91
+ * Default: false
92
+ * Type: Boolean
93
+ * DEPRECATED: This option has been deprecated in favor of
94
+ `--install-strategy=nested`
95
+
96
+ Instead of hoisting package installs in `node_modules`, install packages in
97
+ the same manner that they are depended on. This may cause very deep
98
+ directory structures and duplicate package installs as there is no
99
+ de-duplicating. Sets `--install-strategy=nested`.
100
+
101
+
102
+
103
+ #### `global-style`
104
+
105
+ * Default: false
106
+ * Type: Boolean
107
+ * DEPRECATED: This option has been deprecated in favor of
108
+ `--install-strategy=shallow`
109
+
110
+ Only install direct dependencies in the top level `node_modules`, but hoist
111
+ on deeper dependencies. Sets `--install-strategy=shallow`.
112
+
113
+
114
+
115
+ #### `omit`
116
+
117
+ * Default: 'dev' if the `NODE_ENV` environment variable is set to
118
+ 'production', otherwise empty.
119
+ * Type: "dev", "optional", or "peer" (can be set multiple times)
120
+
121
+ Dependency types to omit from the installation tree on disk.
122
+
123
+ Note that these dependencies _are_ still resolved and added to the
124
+ `package-lock.json` or `npm-shrinkwrap.json` file. They are just not
125
+ physically installed on disk.
126
+
127
+ If a package type appears in both the `--include` and `--omit` lists, then
128
+ it will be included.
129
+
130
+ If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
131
+ variable will be set to `'production'` for all lifecycle scripts.
132
+
133
+
134
+
135
+ #### `include`
136
+
137
+ * Default:
138
+ * Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
139
+
140
+ Option that allows for defining which types of dependencies to install.
141
+
142
+ This is the inverse of `--omit=<type>`.
143
+
144
+ Dependency types specified in `--include` will not be omitted, regardless of
145
+ the order in which omit/include are specified on the command-line.
146
+
147
+
148
+
149
+ #### `strict-peer-deps`
150
+
151
+ * Default: false
152
+ * Type: Boolean
153
+
154
+ If set to `true`, and `--legacy-peer-deps` is not set, then _any_
155
+ conflicting `peerDependencies` will be treated as an install failure, even
156
+ if npm could reasonably guess the appropriate resolution based on non-peer
157
+ dependency relationships.
158
+
159
+ By default, conflicting `peerDependencies` deep in the dependency graph will
160
+ be resolved using the nearest non-peer dependency specification, even if
161
+ doing so will result in some packages receiving a peer dependency outside
162
+ the range set in their package's `peerDependencies` object.
163
+
164
+ When such an override is performed, a warning is printed, explaining the
165
+ conflict and the packages involved. If `--strict-peer-deps` is set, then
166
+ this warning is treated as a failure.
167
+
168
+
169
+
170
+ #### `foreground-scripts`
171
+
172
+ * Default: `false` unless when using `npm pack` or `npm publish` where it
173
+ defaults to `true`
174
+ * Type: Boolean
175
+
176
+ Run all build scripts (ie, `preinstall`, `install`, and `postinstall`)
177
+ scripts for installed packages in the foreground process, sharing standard
178
+ input, output, and error with the main npm process.
179
+
180
+ Note that this will generally make installs run slower, and be much noisier,
181
+ but can be useful for debugging.
182
+
183
+
184
+
185
+ #### `ignore-scripts`
186
+
187
+ * Default: false
188
+ * Type: Boolean
189
+
190
+ If true, npm does not run scripts specified in package.json files.
191
+
192
+ Note that commands explicitly intended to run a particular script, such as
193
+ `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
194
+ will still run their intended script if `ignore-scripts` is set, but they
195
+ will *not* run any pre- or post-scripts.
196
+
197
+
198
+
199
+ #### `audit`
200
+
201
+ * Default: true
202
+ * Type: Boolean
203
+
204
+ When "true" submit audit reports alongside the current npm command to the
205
+ default registry and all registries configured for scopes. See the
206
+ documentation for [`npm audit`](/commands/npm-audit) for details on what is
207
+ submitted.
208
+
209
+
210
+
211
+ #### `bin-links`
212
+
213
+ * Default: true
214
+ * Type: Boolean
215
+
216
+ Tells npm to create symlinks (or `.cmd` shims on Windows) for package
217
+ executables.
218
+
219
+ Set to false to have it not do this. This can be used to work around the
220
+ fact that some file systems don't support symlinks, even on ostensibly Unix
221
+ systems.
222
+
223
+
224
+
225
+ #### `fund`
226
+
227
+ * Default: true
228
+ * Type: Boolean
229
+
230
+ When "true" displays the message at the end of each `npm install`
231
+ acknowledging the number of dependencies looking for funding. See [`npm
232
+ fund`](/commands/npm-fund) for details.
233
+
234
+
235
+
236
+ #### `dry-run`
237
+
238
+ * Default: false
239
+ * Type: Boolean
240
+
241
+ Indicates that you don't want npm to make any changes and that it should
242
+ only report what it would have done. This can be passed into any of the
243
+ commands that modify your local installation, eg, `install`, `update`,
244
+ `dedupe`, `uninstall`, as well as `pack` and `publish`.
245
+
246
+ Note: This is NOT honored by other network related commands, eg `dist-tags`,
247
+ `owner`, etc.
248
+
249
+
250
+
251
+ #### `workspace`
252
+
253
+ * Default:
254
+ * Type: String (can be set multiple times)
255
+
256
+ Enable running a command in the context of the configured workspaces of the
257
+ current project while filtering by running only the workspaces defined by
258
+ this configuration option.
259
+
260
+ Valid values for the `workspace` config are either:
261
+
262
+ * Workspace names
263
+ * Path to a workspace directory
264
+ * Path to a parent workspace directory (will result in selecting all
265
+ workspaces within that folder)
266
+
267
+ When set for the `npm init` command, this may be set to the folder of a
268
+ workspace which does not yet exist, to create the folder and set it up as a
269
+ brand new workspace within the project.
270
+
271
+ This value is not exported to the environment for child processes.
272
+
273
+ #### `workspaces`
274
+
275
+ * Default: null
276
+ * Type: null or Boolean
277
+
278
+ Set to true to run the command in the context of **all** configured
279
+ workspaces.
280
+
281
+ Explicitly setting this to false will cause commands like `install` to
282
+ ignore workspaces altogether. When not set explicitly:
283
+
284
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
285
+ will link workspaces into the `node_modules` folder. - Commands that do
286
+ other things (test, exec, publish, etc.) will operate on the root project,
287
+ _unless_ one or more workspaces are specified in the `workspace` config.
288
+
289
+ This value is not exported to the environment for child processes.
290
+
291
+ #### `include-workspace-root`
292
+
293
+ * Default: false
294
+ * Type: Boolean
295
+
296
+ Include the workspace root when workspaces are enabled for a command.
297
+
298
+ When false, specifying individual workspaces via the `workspace` config, or
299
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
300
+ the specified workspaces, and not on the root project.
301
+
302
+ This value is not exported to the environment for child processes.
303
+
304
+ #### `install-links`
305
+
306
+ * Default: false
307
+ * Type: Boolean
308
+
309
+ When set file: protocol dependencies will be packed and installed as regular
310
+ dependencies instead of creating a symlink. This option has no effect on
311
+ workspaces.
312
+
313
+
314
+
315
+ ### See Also
316
+
317
+ * [npm install](/commands/npm-install)
318
+ * [package-lock.json](/configuring-npm/package-lock-json)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-completion.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-completion
3
+ section: 1
4
+ description: Tab Completion for npm
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm completion
11
+ ```
12
+
13
+ Note: This command is unaware of workspaces.
14
+
15
+ ### Description
16
+
17
+ Enables tab-completion in all npm commands.
18
+
19
+ The synopsis above
20
+ loads the completions into your current shell. Adding it to
21
+ your ~/.bashrc or ~/.zshrc will make the completions available
22
+ everywhere:
23
+
24
+ ```bash
25
+ npm completion >> ~/.bashrc
26
+ npm completion >> ~/.zshrc
27
+ ```
28
+
29
+ You may of course also pipe the output of `npm completion` to a file
30
+ such as `/usr/local/etc/bash_completion.d/npm` or
31
+ `/etc/bash_completion.d/npm` if you have a system that will read
32
+ that file for you.
33
+
34
+ When `COMP_CWORD`, `COMP_LINE`, and `COMP_POINT` are defined in the
35
+ environment, `npm completion` acts in "plumbing mode", and outputs
36
+ completions based on the arguments.
37
+
38
+ ### See Also
39
+
40
+ * [npm developers](/using-npm/developers)
41
+ * [npm](/commands/npm)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-config.md ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-config
3
+ section: 1
4
+ description: Manage the npm configuration files
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm config set <key>=<value> [<key>=<value> ...]
11
+ npm config get [<key> [<key> ...]]
12
+ npm config delete <key> [<key> ...]
13
+ npm config list [--json]
14
+ npm config edit
15
+ npm config fix
16
+
17
+ alias: c
18
+ ```
19
+
20
+ Note: This command is unaware of workspaces.
21
+
22
+ ### Description
23
+
24
+ npm gets its config settings from the command line, environment
25
+ variables, `npmrc` files, and in some cases, the `package.json` file.
26
+
27
+ See [npmrc](/configuring-npm/npmrc) for more information about the npmrc
28
+ files.
29
+
30
+ See [config](/using-npm/config) for a more thorough explanation of the
31
+ mechanisms involved, and a full list of config options available.
32
+
33
+ The `npm config` command can be used to update and edit the contents
34
+ of the user and global npmrc files.
35
+
36
+ ### Sub-commands
37
+
38
+ Config supports the following sub-commands:
39
+
40
+ #### set
41
+
42
+ ```bash
43
+ npm config set key=value [key=value...]
44
+ npm set key=value [key=value...]
45
+ ```
46
+
47
+ Sets each of the config keys to the value provided. Modifies the user configuration
48
+ file unless [`location`](/commands/npm-config#location) is passed.
49
+
50
+ If value is omitted, the key will be removed from your config file entirely.
51
+
52
+ Note: for backwards compatibility, `npm config set key value` is supported
53
+ as an alias for `npm config set key=value`.
54
+
55
+ #### get
56
+
57
+ ```bash
58
+ npm config get [key ...]
59
+ npm get [key ...]
60
+ ```
61
+
62
+ Echo the config value(s) to stdout.
63
+
64
+ If multiple keys are provided, then the values will be prefixed with the
65
+ key names.
66
+
67
+ If no keys are provided, then this command behaves the same as `npm config
68
+ list`.
69
+
70
+ #### list
71
+
72
+ ```bash
73
+ npm config list
74
+ ```
75
+
76
+ Show all the config settings. Use `-l` to also show defaults. Use `--json`
77
+ to show the settings in json format.
78
+
79
+ #### delete
80
+
81
+ ```bash
82
+ npm config delete key [key ...]
83
+ ```
84
+
85
+ Deletes the specified keys from all configuration files.
86
+
87
+ #### edit
88
+
89
+ ```bash
90
+ npm config edit
91
+ ```
92
+
93
+ Opens the config file in an editor. Use the `--global` flag to edit the
94
+ global config.
95
+
96
+ #### fix
97
+
98
+ ```bash
99
+ npm config fix
100
+ ```
101
+
102
+ Attempts to repair invalid configuration items. Usually this means
103
+ attaching authentication config (i.e. `_auth`, `_authToken`) to the
104
+ configured `registry`.
105
+
106
+ ### Configuration
107
+
108
+ #### `json`
109
+
110
+ * Default: false
111
+ * Type: Boolean
112
+
113
+ Whether or not to output JSON data, rather than the normal output.
114
+
115
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
116
+ saving them to your `package.json`.
117
+
118
+ Not supported by all npm commands.
119
+
120
+
121
+
122
+ #### `global`
123
+
124
+ * Default: false
125
+ * Type: Boolean
126
+
127
+ Operates in "global" mode, so that packages are installed into the `prefix`
128
+ folder instead of the current working directory. See
129
+ [folders](/configuring-npm/folders) for more on the differences in behavior.
130
+
131
+ * packages are installed into the `{prefix}/lib/node_modules` folder, instead
132
+ of the current working directory.
133
+ * bin files are linked to `{prefix}/bin`
134
+ * man pages are linked to `{prefix}/share/man`
135
+
136
+
137
+
138
+ #### `editor`
139
+
140
+ * Default: The EDITOR or VISUAL environment variables, or
141
+ '%SYSTEMROOT%\notepad.exe' on Windows, or 'vi' on Unix systems
142
+ * Type: String
143
+
144
+ The command to run for `npm edit` and `npm config edit`.
145
+
146
+
147
+
148
+ #### `location`
149
+
150
+ * Default: "user" unless `--global` is passed, which will also set this value
151
+ to "global"
152
+ * Type: "global", "user", or "project"
153
+
154
+ When passed to `npm config` this refers to which config file to use.
155
+
156
+ When set to "global" mode, packages are installed into the `prefix` folder
157
+ instead of the current working directory. See
158
+ [folders](/configuring-npm/folders) for more on the differences in behavior.
159
+
160
+ * packages are installed into the `{prefix}/lib/node_modules` folder, instead
161
+ of the current working directory.
162
+ * bin files are linked to `{prefix}/bin`
163
+ * man pages are linked to `{prefix}/share/man`
164
+
165
+
166
+
167
+ #### `long`
168
+
169
+ * Default: false
170
+ * Type: Boolean
171
+
172
+ Show extended information in `ls`, `search`, and `help-search`.
173
+
174
+
175
+
176
+ ### See Also
177
+
178
+ * [npm folders](/configuring-npm/folders)
179
+ * [npm config](/commands/npm-config)
180
+ * [package.json](/configuring-npm/package-json)
181
+ * [npmrc](/configuring-npm/npmrc)
182
+ * [npm](/commands/npm)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-dedupe.md ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-dedupe
3
+ section: 1
4
+ description: Reduce duplication in the package tree
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm dedupe
11
+
12
+ alias: ddp
13
+ ```
14
+
15
+ ### Description
16
+
17
+ Searches the local package tree and attempts to simplify the overall
18
+ structure by moving dependencies further up the tree, where they can
19
+ be more effectively shared by multiple dependent packages.
20
+
21
+ For example, consider this dependency graph:
22
+
23
+ ```
24
+ a
25
+ +-- b <-- depends on c@1.0.x
26
+ | `-- c@1.0.3
27
+ `-- d <-- depends on c@~1.0.9
28
+ `-- c@1.0.10
29
+ ```
30
+
31
+ In this case, `npm dedupe` will transform the tree to:
32
+
33
+ ```bash
34
+ a
35
+ +-- b
36
+ +-- d
37
+ `-- c@1.0.10
38
+ ```
39
+
40
+ Because of the hierarchical nature of node's module lookup, b and d
41
+ will both get their dependency met by the single c package at the root
42
+ level of the tree.
43
+
44
+ In some cases, you may have a dependency graph like this:
45
+
46
+ ```
47
+ a
48
+ +-- b <-- depends on c@1.0.x
49
+ +-- c@1.0.3
50
+ `-- d <-- depends on c@1.x
51
+ `-- c@1.9.9
52
+ ```
53
+
54
+ During the installation process, the `c@1.0.3` dependency for `b` was
55
+ placed in the root of the tree. Though `d`'s dependency on `c@1.x` could
56
+ have been satisfied by `c@1.0.3`, the newer `c@1.9.0` dependency was used,
57
+ because npm favors updates by default, even when doing so causes
58
+ duplication.
59
+
60
+ Running `npm dedupe` will cause npm to note the duplication and
61
+ re-evaluate, deleting the nested `c` module, because the one in the root is
62
+ sufficient.
63
+
64
+ To prefer deduplication over novelty during the installation process, run
65
+ `npm install --prefer-dedupe` or `npm config set prefer-dedupe true`.
66
+
67
+ Arguments are ignored. Dedupe always acts on the entire tree.
68
+
69
+ Note that this operation transforms the dependency tree, but will never
70
+ result in new modules being installed.
71
+
72
+ Using `npm find-dupes` will run the command in `--dry-run` mode.
73
+
74
+ Note: `npm dedupe` will never update the semver values of direct
75
+ dependencies in your project `package.json`, if you want to update
76
+ values in `package.json` you can run: `npm update --save` instead.
77
+
78
+ ### Configuration
79
+
80
+ #### `install-strategy`
81
+
82
+ * Default: "hoisted"
83
+ * Type: "hoisted", "nested", "shallow", or "linked"
84
+
85
+ Sets the strategy for installing packages in node_modules. hoisted
86
+ (default): Install non-duplicated in top-level, and duplicated as necessary
87
+ within directory structure. nested: (formerly --legacy-bundling) install in
88
+ place, no hoisting. shallow (formerly --global-style) only install direct
89
+ deps at top-level. linked: (experimental) install in node_modules/.store,
90
+ link in place, unhoisted.
91
+
92
+
93
+
94
+ #### `legacy-bundling`
95
+
96
+ * Default: false
97
+ * Type: Boolean
98
+ * DEPRECATED: This option has been deprecated in favor of
99
+ `--install-strategy=nested`
100
+
101
+ Instead of hoisting package installs in `node_modules`, install packages in
102
+ the same manner that they are depended on. This may cause very deep
103
+ directory structures and duplicate package installs as there is no
104
+ de-duplicating. Sets `--install-strategy=nested`.
105
+
106
+
107
+
108
+ #### `global-style`
109
+
110
+ * Default: false
111
+ * Type: Boolean
112
+ * DEPRECATED: This option has been deprecated in favor of
113
+ `--install-strategy=shallow`
114
+
115
+ Only install direct dependencies in the top level `node_modules`, but hoist
116
+ on deeper dependencies. Sets `--install-strategy=shallow`.
117
+
118
+
119
+
120
+ #### `strict-peer-deps`
121
+
122
+ * Default: false
123
+ * Type: Boolean
124
+
125
+ If set to `true`, and `--legacy-peer-deps` is not set, then _any_
126
+ conflicting `peerDependencies` will be treated as an install failure, even
127
+ if npm could reasonably guess the appropriate resolution based on non-peer
128
+ dependency relationships.
129
+
130
+ By default, conflicting `peerDependencies` deep in the dependency graph will
131
+ be resolved using the nearest non-peer dependency specification, even if
132
+ doing so will result in some packages receiving a peer dependency outside
133
+ the range set in their package's `peerDependencies` object.
134
+
135
+ When such an override is performed, a warning is printed, explaining the
136
+ conflict and the packages involved. If `--strict-peer-deps` is set, then
137
+ this warning is treated as a failure.
138
+
139
+
140
+
141
+ #### `package-lock`
142
+
143
+ * Default: true
144
+ * Type: Boolean
145
+
146
+ If set to false, then ignore `package-lock.json` files when installing. This
147
+ will also prevent _writing_ `package-lock.json` if `save` is true.
148
+
149
+
150
+
151
+ #### `omit`
152
+
153
+ * Default: 'dev' if the `NODE_ENV` environment variable is set to
154
+ 'production', otherwise empty.
155
+ * Type: "dev", "optional", or "peer" (can be set multiple times)
156
+
157
+ Dependency types to omit from the installation tree on disk.
158
+
159
+ Note that these dependencies _are_ still resolved and added to the
160
+ `package-lock.json` or `npm-shrinkwrap.json` file. They are just not
161
+ physically installed on disk.
162
+
163
+ If a package type appears in both the `--include` and `--omit` lists, then
164
+ it will be included.
165
+
166
+ If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
167
+ variable will be set to `'production'` for all lifecycle scripts.
168
+
169
+
170
+
171
+ #### `include`
172
+
173
+ * Default:
174
+ * Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
175
+
176
+ Option that allows for defining which types of dependencies to install.
177
+
178
+ This is the inverse of `--omit=<type>`.
179
+
180
+ Dependency types specified in `--include` will not be omitted, regardless of
181
+ the order in which omit/include are specified on the command-line.
182
+
183
+
184
+
185
+ #### `ignore-scripts`
186
+
187
+ * Default: false
188
+ * Type: Boolean
189
+
190
+ If true, npm does not run scripts specified in package.json files.
191
+
192
+ Note that commands explicitly intended to run a particular script, such as
193
+ `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
194
+ will still run their intended script if `ignore-scripts` is set, but they
195
+ will *not* run any pre- or post-scripts.
196
+
197
+
198
+
199
+ #### `audit`
200
+
201
+ * Default: true
202
+ * Type: Boolean
203
+
204
+ When "true" submit audit reports alongside the current npm command to the
205
+ default registry and all registries configured for scopes. See the
206
+ documentation for [`npm audit`](/commands/npm-audit) for details on what is
207
+ submitted.
208
+
209
+
210
+
211
+ #### `bin-links`
212
+
213
+ * Default: true
214
+ * Type: Boolean
215
+
216
+ Tells npm to create symlinks (or `.cmd` shims on Windows) for package
217
+ executables.
218
+
219
+ Set to false to have it not do this. This can be used to work around the
220
+ fact that some file systems don't support symlinks, even on ostensibly Unix
221
+ systems.
222
+
223
+
224
+
225
+ #### `fund`
226
+
227
+ * Default: true
228
+ * Type: Boolean
229
+
230
+ When "true" displays the message at the end of each `npm install`
231
+ acknowledging the number of dependencies looking for funding. See [`npm
232
+ fund`](/commands/npm-fund) for details.
233
+
234
+
235
+
236
+ #### `dry-run`
237
+
238
+ * Default: false
239
+ * Type: Boolean
240
+
241
+ Indicates that you don't want npm to make any changes and that it should
242
+ only report what it would have done. This can be passed into any of the
243
+ commands that modify your local installation, eg, `install`, `update`,
244
+ `dedupe`, `uninstall`, as well as `pack` and `publish`.
245
+
246
+ Note: This is NOT honored by other network related commands, eg `dist-tags`,
247
+ `owner`, etc.
248
+
249
+
250
+
251
+ #### `workspace`
252
+
253
+ * Default:
254
+ * Type: String (can be set multiple times)
255
+
256
+ Enable running a command in the context of the configured workspaces of the
257
+ current project while filtering by running only the workspaces defined by
258
+ this configuration option.
259
+
260
+ Valid values for the `workspace` config are either:
261
+
262
+ * Workspace names
263
+ * Path to a workspace directory
264
+ * Path to a parent workspace directory (will result in selecting all
265
+ workspaces within that folder)
266
+
267
+ When set for the `npm init` command, this may be set to the folder of a
268
+ workspace which does not yet exist, to create the folder and set it up as a
269
+ brand new workspace within the project.
270
+
271
+ This value is not exported to the environment for child processes.
272
+
273
+ #### `workspaces`
274
+
275
+ * Default: null
276
+ * Type: null or Boolean
277
+
278
+ Set to true to run the command in the context of **all** configured
279
+ workspaces.
280
+
281
+ Explicitly setting this to false will cause commands like `install` to
282
+ ignore workspaces altogether. When not set explicitly:
283
+
284
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
285
+ will link workspaces into the `node_modules` folder. - Commands that do
286
+ other things (test, exec, publish, etc.) will operate on the root project,
287
+ _unless_ one or more workspaces are specified in the `workspace` config.
288
+
289
+ This value is not exported to the environment for child processes.
290
+
291
+ #### `include-workspace-root`
292
+
293
+ * Default: false
294
+ * Type: Boolean
295
+
296
+ Include the workspace root when workspaces are enabled for a command.
297
+
298
+ When false, specifying individual workspaces via the `workspace` config, or
299
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
300
+ the specified workspaces, and not on the root project.
301
+
302
+ This value is not exported to the environment for child processes.
303
+
304
+ #### `install-links`
305
+
306
+ * Default: false
307
+ * Type: Boolean
308
+
309
+ When set file: protocol dependencies will be packed and installed as regular
310
+ dependencies instead of creating a symlink. This option has no effect on
311
+ workspaces.
312
+
313
+
314
+
315
+ ### See Also
316
+
317
+ * [npm find-dupes](/commands/npm-find-dupes)
318
+ * [npm ls](/commands/npm-ls)
319
+ * [npm update](/commands/npm-update)
320
+ * [npm install](/commands/npm-install)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-deprecate.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-deprecate
3
+ section: 1
4
+ description: Deprecate a version of a package
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm deprecate <package-spec> <message>
11
+ ```
12
+
13
+ Note: This command is unaware of workspaces.
14
+
15
+ ### Description
16
+
17
+ This command will update the npm registry entry for a package, providing a
18
+ deprecation warning to all who attempt to install it.
19
+
20
+ It works on [version ranges](https://semver.npmjs.com/) as well as specific
21
+ versions, so you can do something like this:
22
+
23
+ ```bash
24
+ npm deprecate my-thing@"< 0.2.3" "critical bug fixed in v0.2.3"
25
+ ```
26
+
27
+ SemVer ranges passed to this command are interpreted such that they *do*
28
+ include prerelease versions. For example:
29
+
30
+ ```bash
31
+ npm deprecate my-thing@1.x "1.x is no longer supported"
32
+ ```
33
+
34
+ In this case, a version `my-thing@1.0.0-beta.0` will also be deprecated.
35
+
36
+ You must be the package owner to deprecate something. See the `owner` and
37
+ `adduser` help topics.
38
+
39
+ To un-deprecate a package, specify an empty string (`""`) for the `message`
40
+ argument. Note that you must use double quotes with no space between them to
41
+ format an empty string.
42
+
43
+ ### Configuration
44
+
45
+ #### `registry`
46
+
47
+ * Default: "https://registry.npmjs.org/"
48
+ * Type: URL
49
+
50
+ The base URL of the npm registry.
51
+
52
+
53
+
54
+ #### `otp`
55
+
56
+ * Default: null
57
+ * Type: null or String
58
+
59
+ This is a one-time password from a two-factor authenticator. It's needed
60
+ when publishing or changing package permissions with `npm access`.
61
+
62
+ If not set, and a registry response fails with a challenge for a one-time
63
+ password, npm will prompt on the command line for one.
64
+
65
+
66
+
67
+ ### See Also
68
+
69
+ * [package spec](/using-npm/package-spec)
70
+ * [npm publish](/commands/npm-publish)
71
+ * [npm registry](/using-npm/registry)
72
+ * [npm owner](/commands/npm-owner)
73
+ * [npm adduser](/commands/npm-adduser)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-diff.md ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-diff
3
+ section: 1
4
+ description: The registry diff command
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm diff [...<paths>]
11
+ ```
12
+
13
+ ### Description
14
+
15
+ Similar to its `git diff` counterpart, this command will print diff patches
16
+ of files for packages published to the npm registry.
17
+
18
+ * `npm diff --diff=<spec-a> --diff=<spec-b>`
19
+
20
+ Compares two package versions using their registry specifiers, e.g:
21
+ `npm diff --diff=pkg@1.0.0 --diff=pkg@^2.0.0`. It's also possible to
22
+ compare across forks of any package,
23
+ e.g: `npm diff --diff=pkg@1.0.0 --diff=pkg-fork@1.0.0`.
24
+
25
+ Any valid spec can be used, so that it's also possible to compare
26
+ directories or git repositories,
27
+ e.g: `npm diff --diff=pkg@latest --diff=./packages/pkg`
28
+
29
+ Here's an example comparing two different versions of a package named
30
+ `abbrev` from the registry:
31
+
32
+ ```bash
33
+ npm diff --diff=abbrev@1.1.0 --diff=abbrev@1.1.1
34
+ ```
35
+
36
+ On success, output looks like:
37
+
38
+ ```bash
39
+ diff --git a/package.json b/package.json
40
+ index v1.1.0..v1.1.1 100644
41
+ --- a/package.json
42
+ +++ b/package.json
43
+ @@ -1,6 +1,6 @@
44
+ {
45
+ "name": "abbrev",
46
+ - "version": "1.1.0",
47
+ + "version": "1.1.1",
48
+ "description": "Like ruby's abbrev module, but in js",
49
+ "author": "Isaac Z. Schlueter <i@izs.me>",
50
+ "main": "abbrev.js",
51
+ ```
52
+
53
+ Given the flexible nature of npm specs, you can also target local
54
+ directories or git repos just like when using `npm install`:
55
+
56
+ ```bash
57
+ npm diff --diff=https://github.com/npm/libnpmdiff --diff=./local-path
58
+ ```
59
+
60
+ In the example above we can compare the contents from the package installed
61
+ from the git repo at `github.com/npm/libnpmdiff` with the contents of the
62
+ `./local-path` that contains a valid package, such as a modified copy of
63
+ the original.
64
+
65
+ * `npm diff` (in a package directory, no arguments):
66
+
67
+ If the package is published to the registry, `npm diff` will fetch the
68
+ tarball version tagged as `latest` (this value can be configured using the
69
+ `tag` option) and proceed to compare the contents of files present in that
70
+ tarball, with the current files in your local file system.
71
+
72
+ This workflow provides a handy way for package authors to see what
73
+ package-tracked files have been changed in comparison with the latest
74
+ published version of that package.
75
+
76
+ * `npm diff --diff=<pkg-name>` (in a package directory):
77
+
78
+ When using a single package name (with no version or tag specifier) as an
79
+ argument, `npm diff` will work in a similar way to
80
+ [`npm-outdated`](npm-outdated) and reach for the registry to figure out
81
+ what current published version of the package named `<pkg-name>`
82
+ will satisfy its dependent declared semver-range. Once that specific
83
+ version is known `npm diff` will print diff patches comparing the
84
+ current version of `<pkg-name>` found in the local file system with
85
+ that specific version returned by the registry.
86
+
87
+ Given a package named `abbrev` that is currently installed:
88
+
89
+ ```bash
90
+ npm diff --diff=abbrev
91
+ ```
92
+
93
+ That will request from the registry its most up to date version and
94
+ will print a diff output comparing the currently installed version to this
95
+ newer one if the version numbers are not the same.
96
+
97
+ * `npm diff --diff=<spec-a>` (in a package directory):
98
+
99
+ Similar to using only a single package name, it's also possible to declare
100
+ a full registry specifier version if you wish to compare the local version
101
+ of an installed package with the specific version/tag/semver-range provided
102
+ in `<spec-a>`.
103
+
104
+ An example: assuming `pkg@1.0.0` is installed in the current `node_modules`
105
+ folder, running:
106
+
107
+ ```bash
108
+ npm diff --diff=pkg@2.0.0
109
+ ```
110
+
111
+ It will effectively be an alias to
112
+ `npm diff --diff=pkg@1.0.0 --diff=pkg@2.0.0`.
113
+
114
+ * `npm diff --diff=<semver-a> [--diff=<semver-b>]` (in a package directory):
115
+
116
+ Using `npm diff` along with semver-valid version numbers is a shorthand
117
+ to compare different versions of the current package.
118
+
119
+ It needs to be run from a package directory, such that for a package named
120
+ `pkg` running `npm diff --diff=1.0.0 --diff=1.0.1` is the same as running
121
+ `npm diff --diff=pkg@1.0.0 --diff=pkg@1.0.1`.
122
+
123
+ If only a single argument `<version-a>` is provided, then the current local
124
+ file system is going to be compared against that version.
125
+
126
+ Here's an example comparing two specific versions (published to the
127
+ configured registry) of the current project directory:
128
+
129
+ ```bash
130
+ npm diff --diff=1.0.0 --diff=1.1.0
131
+ ```
132
+
133
+ Note that tag names are not valid `--diff` argument values, if you wish to
134
+ compare to a published tag, you must use the `pkg@tagname` syntax.
135
+
136
+ #### Filtering files
137
+
138
+ It's possible to also specify positional arguments using file names or globs
139
+ pattern matching in order to limit the result of diff patches to only a subset
140
+ of files for a given package, e.g:
141
+
142
+ ```bash
143
+ npm diff --diff=pkg@2 ./lib/ CHANGELOG.md
144
+ ```
145
+
146
+ In the example above the diff output is only going to print contents of files
147
+ located within the folder `./lib/` and changed lines of code within the
148
+ `CHANGELOG.md` file.
149
+
150
+ ### Configuration
151
+
152
+ #### `diff`
153
+
154
+ * Default:
155
+ * Type: String (can be set multiple times)
156
+
157
+ Define arguments to compare in `npm diff`.
158
+
159
+
160
+
161
+ #### `diff-name-only`
162
+
163
+ * Default: false
164
+ * Type: Boolean
165
+
166
+ Prints only filenames when using `npm diff`.
167
+
168
+
169
+
170
+ #### `diff-unified`
171
+
172
+ * Default: 3
173
+ * Type: Number
174
+
175
+ The number of lines of context to print in `npm diff`.
176
+
177
+
178
+
179
+ #### `diff-ignore-all-space`
180
+
181
+ * Default: false
182
+ * Type: Boolean
183
+
184
+ Ignore whitespace when comparing lines in `npm diff`.
185
+
186
+
187
+
188
+ #### `diff-no-prefix`
189
+
190
+ * Default: false
191
+ * Type: Boolean
192
+
193
+ Do not show any source or destination prefix in `npm diff` output.
194
+
195
+ Note: this causes `npm diff` to ignore the `--diff-src-prefix` and
196
+ `--diff-dst-prefix` configs.
197
+
198
+
199
+
200
+ #### `diff-src-prefix`
201
+
202
+ * Default: "a/"
203
+ * Type: String
204
+
205
+ Source prefix to be used in `npm diff` output.
206
+
207
+
208
+
209
+ #### `diff-dst-prefix`
210
+
211
+ * Default: "b/"
212
+ * Type: String
213
+
214
+ Destination prefix to be used in `npm diff` output.
215
+
216
+
217
+
218
+ #### `diff-text`
219
+
220
+ * Default: false
221
+ * Type: Boolean
222
+
223
+ Treat all files as text in `npm diff`.
224
+
225
+
226
+
227
+ #### `global`
228
+
229
+ * Default: false
230
+ * Type: Boolean
231
+
232
+ Operates in "global" mode, so that packages are installed into the `prefix`
233
+ folder instead of the current working directory. See
234
+ [folders](/configuring-npm/folders) for more on the differences in behavior.
235
+
236
+ * packages are installed into the `{prefix}/lib/node_modules` folder, instead
237
+ of the current working directory.
238
+ * bin files are linked to `{prefix}/bin`
239
+ * man pages are linked to `{prefix}/share/man`
240
+
241
+
242
+
243
+ #### `tag`
244
+
245
+ * Default: "latest"
246
+ * Type: String
247
+
248
+ If you ask npm to install a package and don't tell it a specific version,
249
+ then it will install the specified tag.
250
+
251
+ It is the tag added to the package@version specified in the `npm dist-tag
252
+ add` command, if no explicit tag is given.
253
+
254
+ When used by the `npm diff` command, this is the tag used to fetch the
255
+ tarball that will be compared with the local files by default.
256
+
257
+ If used in the `npm publish` command, this is the tag that will be added to
258
+ the package submitted to the registry.
259
+
260
+
261
+
262
+ #### `workspace`
263
+
264
+ * Default:
265
+ * Type: String (can be set multiple times)
266
+
267
+ Enable running a command in the context of the configured workspaces of the
268
+ current project while filtering by running only the workspaces defined by
269
+ this configuration option.
270
+
271
+ Valid values for the `workspace` config are either:
272
+
273
+ * Workspace names
274
+ * Path to a workspace directory
275
+ * Path to a parent workspace directory (will result in selecting all
276
+ workspaces within that folder)
277
+
278
+ When set for the `npm init` command, this may be set to the folder of a
279
+ workspace which does not yet exist, to create the folder and set it up as a
280
+ brand new workspace within the project.
281
+
282
+ This value is not exported to the environment for child processes.
283
+
284
+ #### `workspaces`
285
+
286
+ * Default: null
287
+ * Type: null or Boolean
288
+
289
+ Set to true to run the command in the context of **all** configured
290
+ workspaces.
291
+
292
+ Explicitly setting this to false will cause commands like `install` to
293
+ ignore workspaces altogether. When not set explicitly:
294
+
295
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
296
+ will link workspaces into the `node_modules` folder. - Commands that do
297
+ other things (test, exec, publish, etc.) will operate on the root project,
298
+ _unless_ one or more workspaces are specified in the `workspace` config.
299
+
300
+ This value is not exported to the environment for child processes.
301
+
302
+ #### `include-workspace-root`
303
+
304
+ * Default: false
305
+ * Type: Boolean
306
+
307
+ Include the workspace root when workspaces are enabled for a command.
308
+
309
+ When false, specifying individual workspaces via the `workspace` config, or
310
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
311
+ the specified workspaces, and not on the root project.
312
+
313
+ This value is not exported to the environment for child processes.
314
+ ## See Also
315
+
316
+ * [npm outdated](/commands/npm-outdated)
317
+ * [npm install](/commands/npm-install)
318
+ * [npm config](/commands/npm-config)
319
+ * [npm registry](/using-npm/registry)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-dist-tag.md ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-dist-tag
3
+ section: 1
4
+ description: Modify package distribution tags
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm dist-tag add <package-spec (with version)> [<tag>]
11
+ npm dist-tag rm <package-spec> <tag>
12
+ npm dist-tag ls [<package-spec>]
13
+
14
+ alias: dist-tags
15
+ ```
16
+
17
+ ### Description
18
+
19
+ Add, remove, and enumerate distribution tags on a package:
20
+
21
+ * add: Tags the specified version of the package with the specified tag,
22
+ or the [`--tag` config](/using-npm/config#tag) if not specified. If you have
23
+ two-factor authentication on auth-and-writes then you’ll need to include a
24
+ one-time password on the command line with
25
+ `--otp <one-time password>`, or go through a second factor flow based on your `authtype`.
26
+
27
+ * rm: Clear a tag that is no longer in use from the package. If you have
28
+ two-factor authentication on auth-and-writes then you’ll need to include
29
+ a one-time password on the command line with `--otp <one-time password>`,
30
+ or go through a second factor flow based on your `authtype`
31
+
32
+ * ls: Show all of the dist-tags for a package, defaulting to the package in
33
+ the current prefix. This is the default action if none is specified.
34
+
35
+ A tag can be used when installing packages as a reference to a version instead
36
+ of using a specific version number:
37
+
38
+ ```bash
39
+ npm install <name>@<tag>
40
+ ```
41
+
42
+ When installing dependencies, a preferred tagged version may be specified:
43
+
44
+ ```bash
45
+ npm install --tag <tag>
46
+ ```
47
+
48
+ (This also applies to any other commands that resolve and install
49
+ dependencies, such as `npm dedupe`, `npm update`, and `npm audit fix`.)
50
+
51
+ Publishing a package sets the `latest` tag to the published version unless the
52
+ `--tag` option is used. For example, `npm publish --tag=beta`.
53
+
54
+ By default, `npm install <pkg>` (without any `@<version>` or `@<tag>`
55
+ specifier) installs the `latest` tag.
56
+
57
+ ### Purpose
58
+
59
+ Tags can be used to provide an alias instead of version numbers.
60
+
61
+ For example, a project might choose to have multiple streams of development
62
+ and use a different tag for each stream, e.g., `stable`, `beta`, `dev`,
63
+ `canary`.
64
+
65
+ By default, the `latest` tag is used by npm to identify the current version
66
+ of a package, and `npm install <pkg>` (without any `@<version>` or `@<tag>`
67
+ specifier) installs the `latest` tag. Typically, projects only use the
68
+ `latest` tag for stable release versions, and use other tags for unstable
69
+ versions such as prereleases.
70
+
71
+ The `next` tag is used by some projects to identify the upcoming version.
72
+
73
+ Other than `latest`, no tag has any special significance to npm itself.
74
+
75
+ ### Caveats
76
+
77
+ This command used to be known as `npm tag`, which only created new tags,
78
+ and so had a different syntax.
79
+
80
+ Tags must share a namespace with version numbers, because they are
81
+ specified in the same slot: `npm install <pkg>@<version>` vs
82
+ `npm install <pkg>@<tag>`.
83
+
84
+ Tags that can be interpreted as valid semver ranges will be rejected. For
85
+ example, `v1.4` cannot be used as a tag, because it is interpreted by
86
+ semver as `>=1.4.0 <1.5.0`. See <https://github.com/npm/npm/issues/6082>.
87
+
88
+ The simplest way to avoid semver problems with tags is to use tags that do
89
+ not begin with a number or the letter `v`.
90
+
91
+ ### Configuration
92
+
93
+ #### `workspace`
94
+
95
+ * Default:
96
+ * Type: String (can be set multiple times)
97
+
98
+ Enable running a command in the context of the configured workspaces of the
99
+ current project while filtering by running only the workspaces defined by
100
+ this configuration option.
101
+
102
+ Valid values for the `workspace` config are either:
103
+
104
+ * Workspace names
105
+ * Path to a workspace directory
106
+ * Path to a parent workspace directory (will result in selecting all
107
+ workspaces within that folder)
108
+
109
+ When set for the `npm init` command, this may be set to the folder of a
110
+ workspace which does not yet exist, to create the folder and set it up as a
111
+ brand new workspace within the project.
112
+
113
+ This value is not exported to the environment for child processes.
114
+
115
+ #### `workspaces`
116
+
117
+ * Default: null
118
+ * Type: null or Boolean
119
+
120
+ Set to true to run the command in the context of **all** configured
121
+ workspaces.
122
+
123
+ Explicitly setting this to false will cause commands like `install` to
124
+ ignore workspaces altogether. When not set explicitly:
125
+
126
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
127
+ will link workspaces into the `node_modules` folder. - Commands that do
128
+ other things (test, exec, publish, etc.) will operate on the root project,
129
+ _unless_ one or more workspaces are specified in the `workspace` config.
130
+
131
+ This value is not exported to the environment for child processes.
132
+
133
+ #### `include-workspace-root`
134
+
135
+ * Default: false
136
+ * Type: Boolean
137
+
138
+ Include the workspace root when workspaces are enabled for a command.
139
+
140
+ When false, specifying individual workspaces via the `workspace` config, or
141
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
142
+ the specified workspaces, and not on the root project.
143
+
144
+ This value is not exported to the environment for child processes.
145
+
146
+ ### See Also
147
+
148
+ * [package spec](/using-npm/package-spec)
149
+ * [npm publish](/commands/npm-publish)
150
+ * [npm install](/commands/npm-install)
151
+ * [npm dedupe](/commands/npm-dedupe)
152
+ * [npm registry](/using-npm/registry)
153
+ * [npm config](/commands/npm-config)
154
+ * [npmrc](/configuring-npm/npmrc)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-docs.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-docs
3
+ section: 1
4
+ description: Open documentation for a package in a web browser
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm docs [<pkgname> [<pkgname> ...]]
11
+
12
+ alias: home
13
+ ```
14
+
15
+ ### Description
16
+
17
+ This command tries to guess at the likely location of a package's
18
+ documentation URL, and then tries to open it using the
19
+ [`--browser` config](/using-npm/config#browser) param. You can pass multiple
20
+ package names at once. If no package name is provided, it will search for a
21
+ `package.json` in the current folder and use the `name` property.
22
+
23
+ ### Configuration
24
+
25
+ #### `browser`
26
+
27
+ * Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
28
+ * Type: null, Boolean, or String
29
+
30
+ The browser that is called by npm commands to open websites.
31
+
32
+ Set to `false` to suppress browser behavior and instead print urls to
33
+ terminal.
34
+
35
+ Set to `true` to use default system URL opener.
36
+
37
+
38
+
39
+ #### `registry`
40
+
41
+ * Default: "https://registry.npmjs.org/"
42
+ * Type: URL
43
+
44
+ The base URL of the npm registry.
45
+
46
+
47
+
48
+ #### `workspace`
49
+
50
+ * Default:
51
+ * Type: String (can be set multiple times)
52
+
53
+ Enable running a command in the context of the configured workspaces of the
54
+ current project while filtering by running only the workspaces defined by
55
+ this configuration option.
56
+
57
+ Valid values for the `workspace` config are either:
58
+
59
+ * Workspace names
60
+ * Path to a workspace directory
61
+ * Path to a parent workspace directory (will result in selecting all
62
+ workspaces within that folder)
63
+
64
+ When set for the `npm init` command, this may be set to the folder of a
65
+ workspace which does not yet exist, to create the folder and set it up as a
66
+ brand new workspace within the project.
67
+
68
+ This value is not exported to the environment for child processes.
69
+
70
+ #### `workspaces`
71
+
72
+ * Default: null
73
+ * Type: null or Boolean
74
+
75
+ Set to true to run the command in the context of **all** configured
76
+ workspaces.
77
+
78
+ Explicitly setting this to false will cause commands like `install` to
79
+ ignore workspaces altogether. When not set explicitly:
80
+
81
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
82
+ will link workspaces into the `node_modules` folder. - Commands that do
83
+ other things (test, exec, publish, etc.) will operate on the root project,
84
+ _unless_ one or more workspaces are specified in the `workspace` config.
85
+
86
+ This value is not exported to the environment for child processes.
87
+
88
+ #### `include-workspace-root`
89
+
90
+ * Default: false
91
+ * Type: Boolean
92
+
93
+ Include the workspace root when workspaces are enabled for a command.
94
+
95
+ When false, specifying individual workspaces via the `workspace` config, or
96
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
97
+ the specified workspaces, and not on the root project.
98
+
99
+ This value is not exported to the environment for child processes.
100
+
101
+ ### See Also
102
+
103
+ * [npm view](/commands/npm-view)
104
+ * [npm publish](/commands/npm-publish)
105
+ * [npm registry](/using-npm/registry)
106
+ * [npm config](/commands/npm-config)
107
+ * [npmrc](/configuring-npm/npmrc)
108
+ * [package.json](/configuring-npm/package-json)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-doctor.md ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-doctor
3
+ section: 1
4
+ description: Check the health of your npm environment
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm doctor [connection] [registry] [versions] [environment] [permissions] [cache]
11
+ ```
12
+
13
+ Note: This command is unaware of workspaces.
14
+
15
+ ### Description
16
+
17
+ `npm doctor` runs a set of checks to ensure that your npm installation has
18
+ what it needs to manage your JavaScript packages. npm is mostly a
19
+ standalone tool, but it does have some basic requirements that must be met:
20
+
21
+ + Node.js and git must be executable by npm.
22
+ + The primary npm registry, `registry.npmjs.com`, or another service that
23
+ uses the registry API, is available.
24
+ + The directories that npm uses, `node_modules` (both locally and
25
+ globally), exist and can be written by the current user.
26
+ + The npm cache exists, and the package tarballs within it aren't corrupt.
27
+
28
+ Without all of these working properly, npm may not work properly. Many
29
+ issues are often attributable to things that are outside npm's code base,
30
+ so `npm doctor` confirms that the npm installation is in a good state.
31
+
32
+ Also, in addition to this, there are also very many issue reports due to
33
+ using old versions of npm. Since npm is constantly improving, running
34
+ `npm@latest` is better than an old version.
35
+
36
+ `npm doctor` verifies the following items in your environment, and if
37
+ there are any recommended changes, it will display them. By default npm
38
+ runs all of these checks. You can limit what checks are ran by
39
+ specifying them as extra arguments.
40
+
41
+ #### `Connecting to the registry`
42
+
43
+ By default, npm installs from the primary npm registry,
44
+ `registry.npmjs.org`. `npm doctor` hits a special connection testing
45
+ endpoint within the registry. This can also be checked with `npm ping`.
46
+ If this check fails, you may be using a proxy that needs to be
47
+ configured, or may need to talk to your IT staff to get access over
48
+ HTTPS to `registry.npmjs.org`.
49
+
50
+ This check is done against whichever registry you've configured (you can
51
+ see what that is by running `npm config get registry`), and if you're using
52
+ a private registry that doesn't support the `/whoami` endpoint supported by
53
+ the primary registry, this check may fail.
54
+
55
+ #### `Checking npm version`
56
+
57
+ While Node.js may come bundled with a particular version of npm, it's the
58
+ policy of the CLI team that we recommend all users run `npm@latest` if they
59
+ can. As the CLI is maintained by a small team of contributors, there are
60
+ only resources for a single line of development, so npm's own long-term
61
+ support releases typically only receive critical security and regression
62
+ fixes. The team believes that the latest tested version of npm is almost
63
+ always likely to be the most functional and defect-free version of npm.
64
+
65
+ #### `Checking node version`
66
+
67
+ For most users, in most circumstances, the best version of Node will be the
68
+ latest long-term support (LTS) release. Those of you who want access to new
69
+ ECMAscript features or bleeding-edge changes to Node's standard library may
70
+ be running a newer version, and some may be required to run an older
71
+ version of Node because of enterprise change control policies. That's OK!
72
+ But in general, the npm team recommends that most users run Node.js LTS.
73
+
74
+ #### `Checking configured npm registry`
75
+
76
+ You may be installing from private package registries for your project or
77
+ company. That's great! Others may be following tutorials or StackOverflow
78
+ questions in an effort to troubleshoot problems you may be having.
79
+ Sometimes, this may entail changing the registry you're pointing at. This
80
+ part of `npm doctor` just lets you, and maybe whoever's helping you with
81
+ support, know that you're not using the default registry.
82
+
83
+ #### `Checking for git executable in PATH`
84
+
85
+ While it's documented in the README, it may not be obvious that npm needs
86
+ Git installed to do many of the things that it does. Also, in some cases
87
+ – especially on Windows – you may have Git set up in such a way that it's
88
+ not accessible via your `PATH` so that npm can find it. This check ensures
89
+ that Git is available.
90
+
91
+ #### Permissions checks
92
+
93
+ * Your cache must be readable and writable by the user running npm.
94
+ * Global package binaries must be writable by the user running npm.
95
+ * Your local `node_modules` path, if you're running `npm doctor` with a
96
+ project directory, must be readable and writable by the user running npm.
97
+
98
+ #### Validate the checksums of cached packages
99
+
100
+ When an npm package is published, the publishing process generates a
101
+ checksum that npm uses at install time to verify that the package didn't
102
+ get corrupted in transit. `npm doctor` uses these checksums to validate the
103
+ package tarballs in your local cache (you can see where that cache is
104
+ located with `npm config get cache`). In the event that there are corrupt
105
+ packages in your cache, you should probably run `npm cache clean -f` and
106
+ reset the cache.
107
+
108
+ ### Configuration
109
+
110
+ #### `registry`
111
+
112
+ * Default: "https://registry.npmjs.org/"
113
+ * Type: URL
114
+
115
+ The base URL of the npm registry.
116
+
117
+
118
+
119
+ ### See Also
120
+
121
+ * [npm bugs](/commands/npm-bugs)
122
+ * [npm help](/commands/npm-help)
123
+ * [npm ping](/commands/npm-ping)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-edit.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-edit
3
+ section: 1
4
+ description: Edit an installed package
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm edit <pkg>[/<subpkg>...]
11
+ ```
12
+
13
+ Note: This command is unaware of workspaces.
14
+
15
+ ### Description
16
+
17
+ Selects a dependency in the current project and opens the package folder in
18
+ the default editor (or whatever you've configured as the npm `editor`
19
+ config -- see [`npm-config`](npm-config).)
20
+
21
+ After it has been edited, the package is rebuilt so as to pick up any
22
+ changes in compiled packages.
23
+
24
+ For instance, you can do `npm install connect` to install connect
25
+ into your package, and then `npm edit connect` to make a few
26
+ changes to your locally installed copy.
27
+
28
+ ### Configuration
29
+
30
+ #### `editor`
31
+
32
+ * Default: The EDITOR or VISUAL environment variables, or
33
+ '%SYSTEMROOT%\notepad.exe' on Windows, or 'vi' on Unix systems
34
+ * Type: String
35
+
36
+ The command to run for `npm edit` and `npm config edit`.
37
+
38
+
39
+
40
+ ### See Also
41
+
42
+ * [npm folders](/configuring-npm/folders)
43
+ * [npm explore](/commands/npm-explore)
44
+ * [npm install](/commands/npm-install)
45
+ * [npm config](/commands/npm-config)
46
+ * [npmrc](/configuring-npm/npmrc)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-exec.md ADDED
@@ -0,0 +1,366 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-exec
3
+ section: 1
4
+ description: Run a command from a local or remote npm package
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm exec -- <pkg>[@<version>] [args...]
11
+ npm exec --package=<pkg>[@<version>] -- <cmd> [args...]
12
+ npm exec -c '<cmd> [args...]'
13
+ npm exec --package=foo -c '<cmd> [args...]'
14
+
15
+ alias: x
16
+ ```
17
+
18
+ ### Description
19
+
20
+ This command allows you to run an arbitrary command from an npm package
21
+ (either one installed locally, or fetched remotely), in a similar context
22
+ as running it via `npm run`.
23
+
24
+ Run without positional arguments or `--call`, this allows you to
25
+ interactively run commands in the same sort of shell environment that
26
+ `package.json` scripts are run. Interactive mode is not supported in CI
27
+ environments when standard input is a TTY, to prevent hangs.
28
+
29
+ Whatever packages are specified by the `--package` option will be
30
+ provided in the `PATH` of the executed command, along with any locally
31
+ installed package executables. The `--package` option may be
32
+ specified multiple times, to execute the supplied command in an environment
33
+ where all specified packages are available.
34
+
35
+ If any requested packages are not present in the local project
36
+ dependencies, then a prompt is printed, which can be suppressed by
37
+ providing either `--yes` or `--no`. When standard input is not a TTY or a
38
+ CI environment is detected, `--yes` is assumed. The requested packages are
39
+ installed to a folder in the npm cache, which is added to the `PATH`
40
+ environment variable in the executed process.
41
+
42
+ Package names provided without a specifier will be matched with whatever
43
+ version exists in the local project. Package names with a specifier will
44
+ only be considered a match if they have the exact same name and version as
45
+ the local dependency.
46
+
47
+ If no `-c` or `--call` option is provided, then the positional arguments
48
+ are used to generate the command string. If no `--package` options
49
+ are provided, then npm will attempt to determine the executable name from
50
+ the package specifier provided as the first positional argument according
51
+ to the following heuristic:
52
+
53
+ - If the package has a single entry in its `bin` field in `package.json`,
54
+ or if all entries are aliases of the same command, then that command
55
+ will be used.
56
+ - If the package has multiple `bin` entries, and one of them matches the
57
+ unscoped portion of the `name` field, then that command will be used.
58
+ - If this does not result in exactly one option (either because there are
59
+ no bin entries, or none of them match the `name` of the package), then
60
+ `npm exec` exits with an error.
61
+
62
+ To run a binary _other than_ the named binary, specify one or more
63
+ `--package` options, which will prevent npm from inferring the package from
64
+ the first command argument.
65
+
66
+ ### `npx` vs `npm exec`
67
+
68
+ When run via the `npx` binary, all flags and options *must* be set prior to
69
+ any positional arguments. When run via `npm exec`, a double-hyphen `--`
70
+ flag can be used to suppress npm's parsing of switches and options that
71
+ should be sent to the executed command.
72
+
73
+ For example:
74
+
75
+ ```
76
+ $ npx foo@latest bar --package=@npmcli/foo
77
+ ```
78
+
79
+ In this case, npm will resolve the `foo` package name, and run the
80
+ following command:
81
+
82
+ ```
83
+ $ foo bar --package=@npmcli/foo
84
+ ```
85
+
86
+ Since the `--package` option comes _after_ the positional arguments, it is
87
+ treated as an argument to the executed command.
88
+
89
+ In contrast, due to npm's argument parsing logic, running this command is
90
+ different:
91
+
92
+ ```
93
+ $ npm exec foo@latest bar --package=@npmcli/foo
94
+ ```
95
+
96
+ In this case, npm will parse the `--package` option first, resolving the
97
+ `@npmcli/foo` package. Then, it will execute the following command in that
98
+ context:
99
+
100
+ ```
101
+ $ foo@latest bar
102
+ ```
103
+
104
+ The double-hyphen character is recommended to explicitly tell npm to stop
105
+ parsing command line options and switches. The following command would
106
+ thus be equivalent to the `npx` command above:
107
+
108
+ ```
109
+ $ npm exec -- foo@latest bar --package=@npmcli/foo
110
+ ```
111
+
112
+ ### Configuration
113
+
114
+ #### `package`
115
+
116
+ * Default:
117
+ * Type: String (can be set multiple times)
118
+
119
+ The package or packages to install for [`npm exec`](/commands/npm-exec)
120
+
121
+
122
+
123
+ #### `call`
124
+
125
+ * Default: ""
126
+ * Type: String
127
+
128
+ Optional companion option for `npm exec`, `npx` that allows for specifying a
129
+ custom command to be run along with the installed packages.
130
+
131
+ ```bash
132
+ npm exec --package yo --package generator-node --call "yo node"
133
+ ```
134
+
135
+
136
+
137
+ #### `workspace`
138
+
139
+ * Default:
140
+ * Type: String (can be set multiple times)
141
+
142
+ Enable running a command in the context of the configured workspaces of the
143
+ current project while filtering by running only the workspaces defined by
144
+ this configuration option.
145
+
146
+ Valid values for the `workspace` config are either:
147
+
148
+ * Workspace names
149
+ * Path to a workspace directory
150
+ * Path to a parent workspace directory (will result in selecting all
151
+ workspaces within that folder)
152
+
153
+ When set for the `npm init` command, this may be set to the folder of a
154
+ workspace which does not yet exist, to create the folder and set it up as a
155
+ brand new workspace within the project.
156
+
157
+ This value is not exported to the environment for child processes.
158
+
159
+ #### `workspaces`
160
+
161
+ * Default: null
162
+ * Type: null or Boolean
163
+
164
+ Set to true to run the command in the context of **all** configured
165
+ workspaces.
166
+
167
+ Explicitly setting this to false will cause commands like `install` to
168
+ ignore workspaces altogether. When not set explicitly:
169
+
170
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
171
+ will link workspaces into the `node_modules` folder. - Commands that do
172
+ other things (test, exec, publish, etc.) will operate on the root project,
173
+ _unless_ one or more workspaces are specified in the `workspace` config.
174
+
175
+ This value is not exported to the environment for child processes.
176
+
177
+ #### `include-workspace-root`
178
+
179
+ * Default: false
180
+ * Type: Boolean
181
+
182
+ Include the workspace root when workspaces are enabled for a command.
183
+
184
+ When false, specifying individual workspaces via the `workspace` config, or
185
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
186
+ the specified workspaces, and not on the root project.
187
+
188
+ This value is not exported to the environment for child processes.
189
+
190
+ ### Examples
191
+
192
+ Run the version of `tap` in the local dependencies, with the provided
193
+ arguments:
194
+
195
+ ```
196
+ $ npm exec -- tap --bail test/foo.js
197
+ $ npx tap --bail test/foo.js
198
+ ```
199
+
200
+ Run a command _other than_ the command whose name matches the package name
201
+ by specifying a `--package` option:
202
+
203
+ ```
204
+ $ npm exec --package=foo -- bar --bar-argument
205
+ # ~ or ~
206
+ $ npx --package=foo bar --bar-argument
207
+ ```
208
+
209
+ Run an arbitrary shell script, in the context of the current project:
210
+
211
+ ```
212
+ $ npm x -c 'eslint && say "hooray, lint passed"'
213
+ $ npx -c 'eslint && say "hooray, lint passed"'
214
+ ```
215
+
216
+ ### Workspaces support
217
+
218
+ You may use the [`workspace`](/using-npm/config#workspace) or
219
+ [`workspaces`](/using-npm/config#workspaces) configs in order to run an
220
+ arbitrary command from an npm package (either one installed locally, or fetched
221
+ remotely) in the context of the specified workspaces.
222
+ If no positional argument or `--call` option is provided, it will open an
223
+ interactive subshell in the context of each of these configured workspaces one
224
+ at a time.
225
+
226
+ Given a project with configured workspaces, e.g:
227
+
228
+ ```
229
+ .
230
+ +-- package.json
231
+ `-- packages
232
+ +-- a
233
+ | `-- package.json
234
+ +-- b
235
+ | `-- package.json
236
+ `-- c
237
+ `-- package.json
238
+ ```
239
+
240
+ Assuming the workspace configuration is properly set up at the root level
241
+ `package.json` file. e.g:
242
+
243
+ ```
244
+ {
245
+ "workspaces": [ "./packages/*" ]
246
+ }
247
+ ```
248
+
249
+ You can execute an arbitrary command from a package in the context of each of
250
+ the configured workspaces when using the
251
+ [`workspaces` config options](/using-npm/config#workspace), in this example
252
+ we're using **eslint** to lint any js file found within each workspace folder:
253
+
254
+ ```
255
+ npm exec --ws -- eslint ./*.js
256
+ ```
257
+
258
+ #### Filtering workspaces
259
+
260
+ It's also possible to execute a command in a single workspace using the
261
+ `workspace` config along with a name or directory path:
262
+
263
+ ```
264
+ npm exec --workspace=a -- eslint ./*.js
265
+ ```
266
+
267
+ The `workspace` config can also be specified multiple times in order to run a
268
+ specific script in the context of multiple workspaces. When defining values for
269
+ the `workspace` config in the command line, it also possible to use `-w` as a
270
+ shorthand, e.g:
271
+
272
+ ```
273
+ npm exec -w a -w b -- eslint ./*.js
274
+ ```
275
+
276
+ This last command will run the `eslint` command in both `./packages/a` and
277
+ `./packages/b` folders.
278
+
279
+ ### Compatibility with Older npx Versions
280
+
281
+ The `npx` binary was rewritten in npm v7.0.0, and the standalone `npx`
282
+ package deprecated at that time. `npx` uses the `npm exec`
283
+ command instead of a separate argument parser and install process, with
284
+ some affordances to maintain backwards compatibility with the arguments it
285
+ accepted in previous versions.
286
+
287
+ This resulted in some shifts in its functionality:
288
+
289
+ - Any `npm` config value may be provided.
290
+ - To prevent security and user-experience problems from mistyping package
291
+ names, `npx` prompts before installing anything. Suppress this
292
+ prompt with the `-y` or `--yes` option.
293
+ - The `--no-install` option is deprecated, and will be converted to `--no`.
294
+ - Shell fallback functionality is removed, as it is not advisable.
295
+ - The `-p` argument is a shorthand for `--parseable` in npm, but shorthand
296
+ for `--package` in npx. This is maintained, but only for the `npx`
297
+ executable.
298
+ - The `--ignore-existing` option is removed. Locally installed bins are
299
+ always present in the executed process `PATH`.
300
+ - The `--npm` option is removed. `npx` will always use the `npm` it ships
301
+ with.
302
+ - The `--node-arg` and `-n` options are removed.
303
+ - The `--always-spawn` option is redundant, and thus removed.
304
+ - The `--shell` option is replaced with `--script-shell`, but maintained
305
+ in the `npx` executable for backwards compatibility.
306
+
307
+ ### A note on caching
308
+
309
+ The npm cli utilizes its internal package cache when using the package
310
+ name specified. You can use the following to change how and when the
311
+ cli uses this cache. See [`npm cache`](/commands/npm-cache) for more on
312
+ how the cache works.
313
+
314
+ #### prefer-online
315
+
316
+ Forces staleness checks for packages, making the cli look for updates
317
+ immediately even if the package is already in the cache.
318
+
319
+ #### prefer-offline
320
+
321
+ Bypasses staleness checks for packages. Missing data will still be
322
+ requested from the server. To force full offline mode, use `offline`.
323
+
324
+ #### offline
325
+
326
+ Forces full offline mode. Any packages not locally cached will result in
327
+ an error.
328
+
329
+ #### workspace
330
+
331
+ * Default:
332
+ * Type: String (can be set multiple times)
333
+
334
+ Enable running a command in the context of the configured workspaces of the
335
+ current project while filtering by running only the workspaces defined by
336
+ this configuration option.
337
+
338
+ Valid values for the `workspace` config are either:
339
+
340
+ * Workspace names
341
+ * Path to a workspace directory
342
+ * Path to a parent workspace directory (will result to selecting all of the
343
+ nested workspaces)
344
+
345
+ This value is not exported to the environment for child processes.
346
+
347
+ #### workspaces
348
+
349
+ * Alias: `--ws`
350
+ * Type: Boolean
351
+ * Default: `false`
352
+
353
+ Run scripts in the context of all configured workspaces for the current
354
+ project.
355
+
356
+ ### See Also
357
+
358
+ * [npm run-script](/commands/npm-run-script)
359
+ * [npm scripts](/using-npm/scripts)
360
+ * [npm test](/commands/npm-test)
361
+ * [npm start](/commands/npm-start)
362
+ * [npm restart](/commands/npm-restart)
363
+ * [npm stop](/commands/npm-stop)
364
+ * [npm config](/commands/npm-config)
365
+ * [npm workspaces](/using-npm/workspaces)
366
+ * [npx](/commands/npx)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-explain.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-explain
3
+ section: 1
4
+ description: Explain installed packages
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm explain <package-spec>
11
+
12
+ alias: why
13
+ ```
14
+
15
+ ### Description
16
+
17
+ This command will print the chain of dependencies causing a given package
18
+ to be installed in the current project.
19
+
20
+ If one or more package specs are provided, then only packages matching
21
+ one of the specifiers will have their relationships explained.
22
+
23
+ The package spec can also refer to a folder within `./node_modules`
24
+
25
+ For example, running `npm explain glob` within npm's source tree will show:
26
+
27
+ ```bash
28
+ glob@7.1.6
29
+ node_modules/glob
30
+ glob@"^7.1.4" from the root project
31
+
32
+ glob@7.1.1 dev
33
+ node_modules/tacks/node_modules/glob
34
+ glob@"^7.0.5" from rimraf@2.6.2
35
+ node_modules/tacks/node_modules/rimraf
36
+ rimraf@"^2.6.2" from tacks@1.3.0
37
+ node_modules/tacks
38
+ dev tacks@"^1.3.0" from the root project
39
+ ```
40
+
41
+ To explain just the package residing at a specific folder, pass that as the
42
+ argument to the command. This can be useful when trying to figure out
43
+ exactly why a given dependency is being duplicated to satisfy conflicting
44
+ version requirements within the project.
45
+
46
+ ```bash
47
+ $ npm explain node_modules/nyc/node_modules/find-up
48
+ find-up@3.0.0 dev
49
+ node_modules/nyc/node_modules/find-up
50
+ find-up@"^3.0.0" from nyc@14.1.1
51
+ node_modules/nyc
52
+ nyc@"^14.1.1" from tap@14.10.8
53
+ node_modules/tap
54
+ dev tap@"^14.10.8" from the root project
55
+ ```
56
+
57
+ ### Configuration
58
+ #### `json`
59
+
60
+ * Default: false
61
+ * Type: Boolean
62
+
63
+ Whether or not to output JSON data, rather than the normal output.
64
+
65
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
66
+ saving them to your `package.json`.
67
+
68
+ Not supported by all npm commands.
69
+
70
+
71
+
72
+ #### `workspace`
73
+
74
+ * Default:
75
+ * Type: String (can be set multiple times)
76
+
77
+ Enable running a command in the context of the configured workspaces of the
78
+ current project while filtering by running only the workspaces defined by
79
+ this configuration option.
80
+
81
+ Valid values for the `workspace` config are either:
82
+
83
+ * Workspace names
84
+ * Path to a workspace directory
85
+ * Path to a parent workspace directory (will result in selecting all
86
+ workspaces within that folder)
87
+
88
+ When set for the `npm init` command, this may be set to the folder of a
89
+ workspace which does not yet exist, to create the folder and set it up as a
90
+ brand new workspace within the project.
91
+
92
+ This value is not exported to the environment for child processes.
93
+
94
+ ### See Also
95
+
96
+ * [package spec](/using-npm/package-spec)
97
+ * [npm config](/commands/npm-config)
98
+ * [npmrc](/configuring-npm/npmrc)
99
+ * [npm folders](/configuring-npm/folders)
100
+ * [npm ls](/commands/npm-ls)
101
+ * [npm install](/commands/npm-install)
102
+ * [npm link](/commands/npm-link)
103
+ * [npm prune](/commands/npm-prune)
104
+ * [npm outdated](/commands/npm-outdated)
105
+ * [npm update](/commands/npm-update)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-explore.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-explore
3
+ section: 1
4
+ description: Browse an installed package
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm explore <pkg> [ -- <command>]
11
+ ```
12
+
13
+ Note: This command is unaware of workspaces.
14
+
15
+ ### Description
16
+
17
+ Spawn a subshell in the directory of the installed package specified.
18
+
19
+ If a command is specified, then it is run in the subshell, which then
20
+ immediately terminates.
21
+
22
+ This is particularly handy in the case of git submodules in the
23
+ `node_modules` folder:
24
+
25
+ ```bash
26
+ npm explore some-dependency -- git pull origin master
27
+ ```
28
+
29
+ Note that the package is *not* automatically rebuilt afterwards, so be
30
+ sure to use `npm rebuild <pkg>` if you make any changes.
31
+
32
+ ### Configuration
33
+
34
+ #### `shell`
35
+
36
+ * Default: SHELL environment variable, or "bash" on Posix, or "cmd.exe" on
37
+ Windows
38
+ * Type: String
39
+
40
+ The shell to run for the `npm explore` command.
41
+
42
+
43
+
44
+ ### See Also
45
+
46
+ * [npm folders](/configuring-npm/folders)
47
+ * [npm edit](/commands/npm-edit)
48
+ * [npm rebuild](/commands/npm-rebuild)
49
+ * [npm install](/commands/npm-install)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-find-dupes.md ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-find-dupes
3
+ section: 1
4
+ description: Find duplication in the package tree
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm find-dupes
11
+ ```
12
+
13
+ ### Description
14
+
15
+ Runs `npm dedupe` in `--dry-run` mode, making npm only output the
16
+ duplications, without actually changing the package tree.
17
+
18
+ ### Configuration
19
+
20
+ #### `install-strategy`
21
+
22
+ * Default: "hoisted"
23
+ * Type: "hoisted", "nested", "shallow", or "linked"
24
+
25
+ Sets the strategy for installing packages in node_modules. hoisted
26
+ (default): Install non-duplicated in top-level, and duplicated as necessary
27
+ within directory structure. nested: (formerly --legacy-bundling) install in
28
+ place, no hoisting. shallow (formerly --global-style) only install direct
29
+ deps at top-level. linked: (experimental) install in node_modules/.store,
30
+ link in place, unhoisted.
31
+
32
+
33
+
34
+ #### `legacy-bundling`
35
+
36
+ * Default: false
37
+ * Type: Boolean
38
+ * DEPRECATED: This option has been deprecated in favor of
39
+ `--install-strategy=nested`
40
+
41
+ Instead of hoisting package installs in `node_modules`, install packages in
42
+ the same manner that they are depended on. This may cause very deep
43
+ directory structures and duplicate package installs as there is no
44
+ de-duplicating. Sets `--install-strategy=nested`.
45
+
46
+
47
+
48
+ #### `global-style`
49
+
50
+ * Default: false
51
+ * Type: Boolean
52
+ * DEPRECATED: This option has been deprecated in favor of
53
+ `--install-strategy=shallow`
54
+
55
+ Only install direct dependencies in the top level `node_modules`, but hoist
56
+ on deeper dependencies. Sets `--install-strategy=shallow`.
57
+
58
+
59
+
60
+ #### `strict-peer-deps`
61
+
62
+ * Default: false
63
+ * Type: Boolean
64
+
65
+ If set to `true`, and `--legacy-peer-deps` is not set, then _any_
66
+ conflicting `peerDependencies` will be treated as an install failure, even
67
+ if npm could reasonably guess the appropriate resolution based on non-peer
68
+ dependency relationships.
69
+
70
+ By default, conflicting `peerDependencies` deep in the dependency graph will
71
+ be resolved using the nearest non-peer dependency specification, even if
72
+ doing so will result in some packages receiving a peer dependency outside
73
+ the range set in their package's `peerDependencies` object.
74
+
75
+ When such an override is performed, a warning is printed, explaining the
76
+ conflict and the packages involved. If `--strict-peer-deps` is set, then
77
+ this warning is treated as a failure.
78
+
79
+
80
+
81
+ #### `package-lock`
82
+
83
+ * Default: true
84
+ * Type: Boolean
85
+
86
+ If set to false, then ignore `package-lock.json` files when installing. This
87
+ will also prevent _writing_ `package-lock.json` if `save` is true.
88
+
89
+
90
+
91
+ #### `omit`
92
+
93
+ * Default: 'dev' if the `NODE_ENV` environment variable is set to
94
+ 'production', otherwise empty.
95
+ * Type: "dev", "optional", or "peer" (can be set multiple times)
96
+
97
+ Dependency types to omit from the installation tree on disk.
98
+
99
+ Note that these dependencies _are_ still resolved and added to the
100
+ `package-lock.json` or `npm-shrinkwrap.json` file. They are just not
101
+ physically installed on disk.
102
+
103
+ If a package type appears in both the `--include` and `--omit` lists, then
104
+ it will be included.
105
+
106
+ If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
107
+ variable will be set to `'production'` for all lifecycle scripts.
108
+
109
+
110
+
111
+ #### `include`
112
+
113
+ * Default:
114
+ * Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
115
+
116
+ Option that allows for defining which types of dependencies to install.
117
+
118
+ This is the inverse of `--omit=<type>`.
119
+
120
+ Dependency types specified in `--include` will not be omitted, regardless of
121
+ the order in which omit/include are specified on the command-line.
122
+
123
+
124
+
125
+ #### `ignore-scripts`
126
+
127
+ * Default: false
128
+ * Type: Boolean
129
+
130
+ If true, npm does not run scripts specified in package.json files.
131
+
132
+ Note that commands explicitly intended to run a particular script, such as
133
+ `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
134
+ will still run their intended script if `ignore-scripts` is set, but they
135
+ will *not* run any pre- or post-scripts.
136
+
137
+
138
+
139
+ #### `audit`
140
+
141
+ * Default: true
142
+ * Type: Boolean
143
+
144
+ When "true" submit audit reports alongside the current npm command to the
145
+ default registry and all registries configured for scopes. See the
146
+ documentation for [`npm audit`](/commands/npm-audit) for details on what is
147
+ submitted.
148
+
149
+
150
+
151
+ #### `bin-links`
152
+
153
+ * Default: true
154
+ * Type: Boolean
155
+
156
+ Tells npm to create symlinks (or `.cmd` shims on Windows) for package
157
+ executables.
158
+
159
+ Set to false to have it not do this. This can be used to work around the
160
+ fact that some file systems don't support symlinks, even on ostensibly Unix
161
+ systems.
162
+
163
+
164
+
165
+ #### `fund`
166
+
167
+ * Default: true
168
+ * Type: Boolean
169
+
170
+ When "true" displays the message at the end of each `npm install`
171
+ acknowledging the number of dependencies looking for funding. See [`npm
172
+ fund`](/commands/npm-fund) for details.
173
+
174
+
175
+
176
+ #### `workspace`
177
+
178
+ * Default:
179
+ * Type: String (can be set multiple times)
180
+
181
+ Enable running a command in the context of the configured workspaces of the
182
+ current project while filtering by running only the workspaces defined by
183
+ this configuration option.
184
+
185
+ Valid values for the `workspace` config are either:
186
+
187
+ * Workspace names
188
+ * Path to a workspace directory
189
+ * Path to a parent workspace directory (will result in selecting all
190
+ workspaces within that folder)
191
+
192
+ When set for the `npm init` command, this may be set to the folder of a
193
+ workspace which does not yet exist, to create the folder and set it up as a
194
+ brand new workspace within the project.
195
+
196
+ This value is not exported to the environment for child processes.
197
+
198
+ #### `workspaces`
199
+
200
+ * Default: null
201
+ * Type: null or Boolean
202
+
203
+ Set to true to run the command in the context of **all** configured
204
+ workspaces.
205
+
206
+ Explicitly setting this to false will cause commands like `install` to
207
+ ignore workspaces altogether. When not set explicitly:
208
+
209
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
210
+ will link workspaces into the `node_modules` folder. - Commands that do
211
+ other things (test, exec, publish, etc.) will operate on the root project,
212
+ _unless_ one or more workspaces are specified in the `workspace` config.
213
+
214
+ This value is not exported to the environment for child processes.
215
+
216
+ #### `include-workspace-root`
217
+
218
+ * Default: false
219
+ * Type: Boolean
220
+
221
+ Include the workspace root when workspaces are enabled for a command.
222
+
223
+ When false, specifying individual workspaces via the `workspace` config, or
224
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
225
+ the specified workspaces, and not on the root project.
226
+
227
+ This value is not exported to the environment for child processes.
228
+
229
+ #### `install-links`
230
+
231
+ * Default: false
232
+ * Type: Boolean
233
+
234
+ When set file: protocol dependencies will be packed and installed as regular
235
+ dependencies instead of creating a symlink. This option has no effect on
236
+ workspaces.
237
+
238
+
239
+
240
+ ### See Also
241
+
242
+ * [npm dedupe](/commands/npm-dedupe)
243
+ * [npm ls](/commands/npm-ls)
244
+ * [npm update](/commands/npm-update)
245
+ * [npm install](/commands/npm-install)
246
+
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-fund.md ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-fund
3
+ section: 1
4
+ description: Retrieve funding information
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm fund [<package-spec>]
11
+ ```
12
+
13
+ ### Description
14
+
15
+ This command retrieves information on how to fund the dependencies of a
16
+ given project. If no package name is provided, it will list all
17
+ dependencies that are looking for funding in a tree structure, listing
18
+ the type of funding and the url to visit. If a package name is provided
19
+ then it tries to open its funding url using the
20
+ [`--browser` config](/using-npm/config#browser) param; if there are multiple
21
+ funding sources for the package, the user will be instructed to pass the
22
+ `--which` option to disambiguate.
23
+
24
+ The list will avoid duplicated entries and will stack all packages that
25
+ share the same url as a single entry. Thus, the list does not have the
26
+ same shape of the output from `npm ls`.
27
+
28
+ #### Example
29
+
30
+ ### Workspaces support
31
+
32
+ It's possible to filter the results to only include a single workspace
33
+ and its dependencies using the
34
+ [`workspace` config](/using-npm/config#workspace) option.
35
+
36
+ #### Example:
37
+
38
+ Here's an example running `npm fund` in a project with a configured
39
+ workspace `a`:
40
+
41
+ ```bash
42
+ $ npm fund
43
+ test-workspaces-fund@1.0.0
44
+ +-- https://example.com/a
45
+ | | `-- a@1.0.0
46
+ | `-- https://example.com/maintainer
47
+ | `-- foo@1.0.0
48
+ +-- https://example.com/npmcli-funding
49
+ | `-- @npmcli/test-funding
50
+ `-- https://example.com/org
51
+ `-- bar@2.0.0
52
+ ```
53
+
54
+ And here is an example of the expected result when filtering only by a
55
+ specific workspace `a` in the same project:
56
+
57
+ ```bash
58
+ $ npm fund -w a
59
+ test-workspaces-fund@1.0.0
60
+ `-- https://example.com/a
61
+ | `-- a@1.0.0
62
+ `-- https://example.com/maintainer
63
+ `-- foo@2.0.0
64
+ ```
65
+
66
+ ### Configuration
67
+
68
+ #### `json`
69
+
70
+ * Default: false
71
+ * Type: Boolean
72
+
73
+ Whether or not to output JSON data, rather than the normal output.
74
+
75
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
76
+ saving them to your `package.json`.
77
+
78
+ Not supported by all npm commands.
79
+
80
+
81
+
82
+ #### `browser`
83
+
84
+ * Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
85
+ * Type: null, Boolean, or String
86
+
87
+ The browser that is called by npm commands to open websites.
88
+
89
+ Set to `false` to suppress browser behavior and instead print urls to
90
+ terminal.
91
+
92
+ Set to `true` to use default system URL opener.
93
+
94
+
95
+
96
+ #### `unicode`
97
+
98
+ * Default: false on windows, true on mac/unix systems with a unicode locale,
99
+ as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
100
+ * Type: Boolean
101
+
102
+ When set to true, npm uses unicode characters in the tree output. When
103
+ false, it uses ascii characters instead of unicode glyphs.
104
+
105
+
106
+
107
+ #### `workspace`
108
+
109
+ * Default:
110
+ * Type: String (can be set multiple times)
111
+
112
+ Enable running a command in the context of the configured workspaces of the
113
+ current project while filtering by running only the workspaces defined by
114
+ this configuration option.
115
+
116
+ Valid values for the `workspace` config are either:
117
+
118
+ * Workspace names
119
+ * Path to a workspace directory
120
+ * Path to a parent workspace directory (will result in selecting all
121
+ workspaces within that folder)
122
+
123
+ When set for the `npm init` command, this may be set to the folder of a
124
+ workspace which does not yet exist, to create the folder and set it up as a
125
+ brand new workspace within the project.
126
+
127
+ This value is not exported to the environment for child processes.
128
+
129
+ #### `which`
130
+
131
+ * Default: null
132
+ * Type: null or Number
133
+
134
+ If there are multiple funding sources, which 1-indexed source URL to open.
135
+
136
+
137
+
138
+ ## See Also
139
+
140
+ * [package spec](/using-npm/package-spec)
141
+ * [npm install](/commands/npm-install)
142
+ * [npm docs](/commands/npm-docs)
143
+ * [npm ls](/commands/npm-ls)
144
+ * [npm config](/commands/npm-config)
145
+ * [npm workspaces](/using-npm/workspaces)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-help-search.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-help-search
3
+ section: 1
4
+ description: Search npm help documentation
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm help-search <text>
11
+ ```
12
+
13
+ Note: This command is unaware of workspaces.
14
+
15
+ ### Description
16
+
17
+ This command will search the npm markdown documentation files for the terms
18
+ provided, and then list the results, sorted by relevance.
19
+
20
+ If only one result is found, then it will show that help topic.
21
+
22
+ If the argument to `npm help` is not a known help topic, then it will call
23
+ `help-search`. It is rarely if ever necessary to call this command
24
+ directly.
25
+
26
+ ### Configuration
27
+
28
+ #### `long`
29
+
30
+ * Default: false
31
+ * Type: Boolean
32
+
33
+ Show extended information in `ls`, `search`, and `help-search`.
34
+
35
+
36
+
37
+ ### See Also
38
+
39
+ * [npm](/commands/npm)
40
+ * [npm help](/commands/npm-help)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-help.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-help
3
+ section: 1
4
+ description: Get help on npm
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm help <term> [<terms..>]
11
+
12
+ alias: hlep
13
+ ```
14
+
15
+ Note: This command is unaware of workspaces.
16
+
17
+ ### Description
18
+
19
+ If supplied a topic, then show the appropriate documentation page.
20
+
21
+ If the topic does not exist, or if multiple terms are provided, then npm
22
+ will run the `help-search` command to find a match. Note that, if
23
+ `help-search` finds a single subject, then it will run `help` on that
24
+ topic, so unique matches are equivalent to specifying a topic name.
25
+
26
+ ### Configuration
27
+
28
+ #### `viewer`
29
+
30
+ * Default: "man" on Posix, "browser" on Windows
31
+ * Type: String
32
+
33
+ The program to use to view help content.
34
+
35
+ Set to `"browser"` to view html help content in the default web browser.
36
+
37
+
38
+
39
+ ### See Also
40
+
41
+ * [npm](/commands/npm)
42
+ * [npm folders](/configuring-npm/folders)
43
+ * [npm config](/commands/npm-config)
44
+ * [npmrc](/configuring-npm/npmrc)
45
+ * [package.json](/configuring-npm/package-json)
46
+ * [npm help-search](/commands/npm-help-search)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-hook.md ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-hook
3
+ section: 1
4
+ description: Manage registry hooks
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm hook add <pkg> <url> <secret> [--type=<type>]
11
+ npm hook ls [pkg]
12
+ npm hook rm <id>
13
+ npm hook update <id> <url> <secret>
14
+ ```
15
+
16
+ Note: This command is unaware of workspaces.
17
+
18
+ ### Description
19
+
20
+ Allows you to manage [npm
21
+ hooks](https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm),
22
+ including adding, removing, listing, and updating.
23
+
24
+ Hooks allow you to configure URL endpoints that will be notified whenever a
25
+ change happens to any of the supported entity types. Three different types
26
+ of entities can be watched by hooks: packages, owners, and scopes.
27
+
28
+ To create a package hook, simply reference the package name.
29
+
30
+ To create an owner hook, prefix the owner name with `~` (as in,
31
+ `~youruser`).
32
+
33
+ To create a scope hook, prefix the scope name with `@` (as in,
34
+ `@yourscope`).
35
+
36
+ The hook `id` used by `update` and `rm` are the IDs listed in `npm hook ls`
37
+ for that particular hook.
38
+
39
+ The shared secret will be sent along to the URL endpoint so you can verify
40
+ the request came from your own configured hook.
41
+
42
+ ### Example
43
+
44
+ Add a hook to watch a package for changes:
45
+
46
+ ```bash
47
+ $ npm hook add lodash https://example.com/ my-shared-secret
48
+ ```
49
+
50
+ Add a hook to watch packages belonging to the user `substack`:
51
+
52
+ ```bash
53
+ $ npm hook add ~substack https://example.com/ my-shared-secret
54
+ ```
55
+
56
+ Add a hook to watch packages in the scope `@npm`
57
+
58
+ ```bash
59
+ $ npm hook add @npm https://example.com/ my-shared-secret
60
+ ```
61
+
62
+ List all your active hooks:
63
+
64
+ ```bash
65
+ $ npm hook ls
66
+ ```
67
+
68
+ List your active hooks for the `lodash` package:
69
+
70
+ ```bash
71
+ $ npm hook ls lodash
72
+ ```
73
+
74
+ Update an existing hook's url:
75
+
76
+ ```bash
77
+ $ npm hook update id-deadbeef https://my-new-website.here/
78
+ ```
79
+
80
+ Remove a hook:
81
+
82
+ ```bash
83
+ $ npm hook rm id-deadbeef
84
+ ```
85
+
86
+ ### Configuration
87
+
88
+ #### `registry`
89
+
90
+ * Default: "https://registry.npmjs.org/"
91
+ * Type: URL
92
+
93
+ The base URL of the npm registry.
94
+
95
+
96
+
97
+ #### `otp`
98
+
99
+ * Default: null
100
+ * Type: null or String
101
+
102
+ This is a one-time password from a two-factor authenticator. It's needed
103
+ when publishing or changing package permissions with `npm access`.
104
+
105
+ If not set, and a registry response fails with a challenge for a one-time
106
+ password, npm will prompt on the command line for one.
107
+
108
+
109
+
110
+ ### See Also
111
+
112
+ * ["Introducing Hooks" blog post](https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-init.md ADDED
@@ -0,0 +1,349 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-init
3
+ section: 1
4
+ description: Create a package.json file
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm init <package-spec> (same as `npx create-<package-spec>`)
11
+ npm init <@scope> (same as `npx <@scope>/create`)
12
+
13
+ aliases: create, innit
14
+ ```
15
+
16
+ ### Description
17
+
18
+ `npm init <initializer>` can be used to set up a new or existing npm
19
+ package.
20
+
21
+ `initializer` in this case is an npm package named `create-<initializer>`,
22
+ which will be installed by [`npm-exec`](/commands/npm-exec), and then have its
23
+ main bin executed -- presumably creating or updating `package.json` and
24
+ running any other initialization-related operations.
25
+
26
+ The init command is transformed to a corresponding `npm exec` operation as
27
+ follows:
28
+
29
+ * `npm init foo` -> `npm exec create-foo`
30
+ * `npm init @usr/foo` -> `npm exec @usr/create-foo`
31
+ * `npm init @usr` -> `npm exec @usr/create`
32
+ * `npm init @usr@2.0.0` -> `npm exec @usr/create@2.0.0`
33
+ * `npm init @usr/foo@2.0.0` -> `npm exec @usr/create-foo@2.0.0`
34
+
35
+ If the initializer is omitted (by just calling `npm init`), init will fall
36
+ back to legacy init behavior. It will ask you a bunch of questions, and
37
+ then write a package.json for you. It will attempt to make reasonable
38
+ guesses based on existing fields, dependencies, and options selected. It is
39
+ strictly additive, so it will keep any fields and values that were already
40
+ set. You can also use `-y`/`--yes` to skip the questionnaire altogether. If
41
+ you pass `--scope`, it will create a scoped package.
42
+
43
+ *Note:* if a user already has the `create-<initializer>` package
44
+ globally installed, that will be what `npm init` uses. If you want npm
45
+ to use the latest version, or another specific version you must specify
46
+ it:
47
+
48
+ * `npm init foo@latest` # fetches and runs the latest `create-foo` from
49
+ the registry
50
+ * `npm init foo@1.2.3` # runs `create-foo@1.2.3` specifically
51
+
52
+ #### Forwarding additional options
53
+
54
+ Any additional options will be passed directly to the command, so `npm init
55
+ foo -- --hello` will map to `npm exec -- create-foo --hello`.
56
+
57
+ To better illustrate how options are forwarded, here's a more evolved
58
+ example showing options passed to both the **npm cli** and a create package,
59
+ both following commands are equivalent:
60
+
61
+ - `npm init foo -y --registry=<url> -- --hello -a`
62
+ - `npm exec -y --registry=<url> -- create-foo --hello -a`
63
+
64
+ ### Examples
65
+
66
+ Create a new React-based project using
67
+ [`create-react-app`](https://npm.im/create-react-app):
68
+
69
+ ```bash
70
+ $ npm init react-app ./my-react-app
71
+ ```
72
+
73
+ Create a new `esm`-compatible package using
74
+ [`create-esm`](https://npm.im/create-esm):
75
+
76
+ ```bash
77
+ $ mkdir my-esm-lib && cd my-esm-lib
78
+ $ npm init esm --yes
79
+ ```
80
+
81
+ Generate a plain old package.json using legacy init:
82
+
83
+ ```bash
84
+ $ mkdir my-npm-pkg && cd my-npm-pkg
85
+ $ git init
86
+ $ npm init
87
+ ```
88
+
89
+ Generate it without having it ask any questions:
90
+
91
+ ```bash
92
+ $ npm init -y
93
+ ```
94
+
95
+ ### Workspaces support
96
+
97
+ It's possible to create a new workspace within your project by using the
98
+ `workspace` config option. When using `npm init -w <dir>` the cli will
99
+ create the folders and boilerplate expected while also adding a reference
100
+ to your project `package.json` `"workspaces": []` property in order to make
101
+ sure that new generated **workspace** is properly set up as such.
102
+
103
+ Given a project with no workspaces, e.g:
104
+
105
+ ```
106
+ .
107
+ +-- package.json
108
+ ```
109
+
110
+ You may generate a new workspace using the legacy init:
111
+
112
+ ```bash
113
+ $ npm init -w packages/a
114
+ ```
115
+
116
+ That will generate a new folder and `package.json` file, while also updating
117
+ your top-level `package.json` to add the reference to this new workspace:
118
+
119
+ ```
120
+ .
121
+ +-- package.json
122
+ `-- packages
123
+ `-- a
124
+ `-- package.json
125
+ ```
126
+
127
+ The workspaces init also supports the `npm init <initializer> -w <dir>`
128
+ syntax, following the same set of rules explained earlier in the initial
129
+ **Description** section of this page. Similar to the previous example of
130
+ creating a new React-based project using
131
+ [`create-react-app`](https://npm.im/create-react-app), the following syntax
132
+ will make sure to create the new react app as a nested **workspace** within your
133
+ project and configure your `package.json` to recognize it as such:
134
+
135
+ ```bash
136
+ npm init -w packages/my-react-app react-app .
137
+ ```
138
+
139
+ This will make sure to generate your react app as expected, one important
140
+ consideration to have in mind is that `npm exec` is going to be run in the
141
+ context of the newly created folder for that workspace, and that's the reason
142
+ why in this example the initializer uses the initializer name followed with a
143
+ dot to represent the current directory in that context, e.g: `react-app .`:
144
+
145
+ ```
146
+ .
147
+ +-- package.json
148
+ `-- packages
149
+ +-- a
150
+ | `-- package.json
151
+ `-- my-react-app
152
+ +-- README
153
+ +-- package.json
154
+ `-- ...
155
+ ```
156
+
157
+ ### Configuration
158
+
159
+ #### `init-author-name`
160
+
161
+ * Default: ""
162
+ * Type: String
163
+
164
+ The value `npm init` should use by default for the package author's name.
165
+
166
+
167
+
168
+ #### `init-author-url`
169
+
170
+ * Default: ""
171
+ * Type: "" or URL
172
+
173
+ The value `npm init` should use by default for the package author's
174
+ homepage.
175
+
176
+
177
+
178
+ #### `init-license`
179
+
180
+ * Default: "ISC"
181
+ * Type: String
182
+
183
+ The value `npm init` should use by default for the package license.
184
+
185
+
186
+
187
+ #### `init-module`
188
+
189
+ * Default: "~/.npm-init.js"
190
+ * Type: Path
191
+
192
+ A module that will be loaded by the `npm init` command. See the
193
+ documentation for the
194
+ [init-package-json](https://github.com/npm/init-package-json) module for
195
+ more information, or [npm init](/commands/npm-init).
196
+
197
+
198
+
199
+ #### `init-version`
200
+
201
+ * Default: "1.0.0"
202
+ * Type: SemVer string
203
+
204
+ The value that `npm init` should use by default for the package version
205
+ number, if not already set in package.json.
206
+
207
+
208
+
209
+ #### `yes`
210
+
211
+ * Default: null
212
+ * Type: null or Boolean
213
+
214
+ Automatically answer "yes" to any prompts that npm might print on the
215
+ command line.
216
+
217
+
218
+
219
+ #### `force`
220
+
221
+ * Default: false
222
+ * Type: Boolean
223
+
224
+ Removes various protections against unfortunate side effects, common
225
+ mistakes, unnecessary performance degradation, and malicious input.
226
+
227
+ * Allow clobbering non-npm files in global installs.
228
+ * Allow the `npm version` command to work on an unclean git repository.
229
+ * Allow deleting the cache folder with `npm cache clean`.
230
+ * Allow installing packages that have an `engines` declaration requiring a
231
+ different version of npm.
232
+ * Allow installing packages that have an `engines` declaration requiring a
233
+ different version of `node`, even if `--engine-strict` is enabled.
234
+ * Allow `npm audit fix` to install modules outside your stated dependency
235
+ range (including SemVer-major changes).
236
+ * Allow unpublishing all versions of a published package.
237
+ * Allow conflicting peerDependencies to be installed in the root project.
238
+ * Implicitly set `--yes` during `npm init`.
239
+ * Allow clobbering existing values in `npm pkg`
240
+ * Allow unpublishing of entire packages (not just a single version).
241
+
242
+ If you don't have a clear idea of what you want to do, it is strongly
243
+ recommended that you do not use this option!
244
+
245
+
246
+
247
+ #### `scope`
248
+
249
+ * Default: the scope of the current project, if any, or ""
250
+ * Type: String
251
+
252
+ Associate an operation with a scope for a scoped registry.
253
+
254
+ Useful when logging in to or out of a private registry:
255
+
256
+ ```
257
+ # log in, linking the scope to the custom registry
258
+ npm login --scope=@mycorp --registry=https://registry.mycorp.com
259
+
260
+ # log out, removing the link and the auth token
261
+ npm logout --scope=@mycorp
262
+ ```
263
+
264
+ This will cause `@mycorp` to be mapped to the registry for future
265
+ installation of packages specified according to the pattern
266
+ `@mycorp/package`.
267
+
268
+ This will also cause `npm init` to create a scoped package.
269
+
270
+ ```
271
+ # accept all defaults, and create a package named "@foo/whatever",
272
+ # instead of just named "whatever"
273
+ npm init --scope=@foo --yes
274
+ ```
275
+
276
+
277
+
278
+ #### `workspace`
279
+
280
+ * Default:
281
+ * Type: String (can be set multiple times)
282
+
283
+ Enable running a command in the context of the configured workspaces of the
284
+ current project while filtering by running only the workspaces defined by
285
+ this configuration option.
286
+
287
+ Valid values for the `workspace` config are either:
288
+
289
+ * Workspace names
290
+ * Path to a workspace directory
291
+ * Path to a parent workspace directory (will result in selecting all
292
+ workspaces within that folder)
293
+
294
+ When set for the `npm init` command, this may be set to the folder of a
295
+ workspace which does not yet exist, to create the folder and set it up as a
296
+ brand new workspace within the project.
297
+
298
+ This value is not exported to the environment for child processes.
299
+
300
+ #### `workspaces`
301
+
302
+ * Default: null
303
+ * Type: null or Boolean
304
+
305
+ Set to true to run the command in the context of **all** configured
306
+ workspaces.
307
+
308
+ Explicitly setting this to false will cause commands like `install` to
309
+ ignore workspaces altogether. When not set explicitly:
310
+
311
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
312
+ will link workspaces into the `node_modules` folder. - Commands that do
313
+ other things (test, exec, publish, etc.) will operate on the root project,
314
+ _unless_ one or more workspaces are specified in the `workspace` config.
315
+
316
+ This value is not exported to the environment for child processes.
317
+
318
+ #### `workspaces-update`
319
+
320
+ * Default: true
321
+ * Type: Boolean
322
+
323
+ If set to true, the npm cli will run an update after operations that may
324
+ possibly change the workspaces installed to the `node_modules` folder.
325
+
326
+
327
+
328
+ #### `include-workspace-root`
329
+
330
+ * Default: false
331
+ * Type: Boolean
332
+
333
+ Include the workspace root when workspaces are enabled for a command.
334
+
335
+ When false, specifying individual workspaces via the `workspace` config, or
336
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
337
+ the specified workspaces, and not on the root project.
338
+
339
+ This value is not exported to the environment for child processes.
340
+
341
+ ### See Also
342
+
343
+ * [package spec](/using-npm/package-spec)
344
+ * [init-package-json module](http://npm.im/init-package-json)
345
+ * [package.json](/configuring-npm/package-json)
346
+ * [npm version](/commands/npm-version)
347
+ * [npm scope](/using-npm/scope)
348
+ * [npm exec](/commands/npm-exec)
349
+ * [npm workspaces](/using-npm/workspaces)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-install-ci-test.md ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-install-ci-test
3
+ section: 1
4
+ description: Install a project with a clean slate and run tests
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm install-ci-test
11
+
12
+ aliases: cit, clean-install-test, sit
13
+ ```
14
+
15
+ ### Description
16
+
17
+ This command runs `npm ci` followed immediately by `npm test`.
18
+
19
+ ### Configuration
20
+
21
+ #### `install-strategy`
22
+
23
+ * Default: "hoisted"
24
+ * Type: "hoisted", "nested", "shallow", or "linked"
25
+
26
+ Sets the strategy for installing packages in node_modules. hoisted
27
+ (default): Install non-duplicated in top-level, and duplicated as necessary
28
+ within directory structure. nested: (formerly --legacy-bundling) install in
29
+ place, no hoisting. shallow (formerly --global-style) only install direct
30
+ deps at top-level. linked: (experimental) install in node_modules/.store,
31
+ link in place, unhoisted.
32
+
33
+
34
+
35
+ #### `legacy-bundling`
36
+
37
+ * Default: false
38
+ * Type: Boolean
39
+ * DEPRECATED: This option has been deprecated in favor of
40
+ `--install-strategy=nested`
41
+
42
+ Instead of hoisting package installs in `node_modules`, install packages in
43
+ the same manner that they are depended on. This may cause very deep
44
+ directory structures and duplicate package installs as there is no
45
+ de-duplicating. Sets `--install-strategy=nested`.
46
+
47
+
48
+
49
+ #### `global-style`
50
+
51
+ * Default: false
52
+ * Type: Boolean
53
+ * DEPRECATED: This option has been deprecated in favor of
54
+ `--install-strategy=shallow`
55
+
56
+ Only install direct dependencies in the top level `node_modules`, but hoist
57
+ on deeper dependencies. Sets `--install-strategy=shallow`.
58
+
59
+
60
+
61
+ #### `omit`
62
+
63
+ * Default: 'dev' if the `NODE_ENV` environment variable is set to
64
+ 'production', otherwise empty.
65
+ * Type: "dev", "optional", or "peer" (can be set multiple times)
66
+
67
+ Dependency types to omit from the installation tree on disk.
68
+
69
+ Note that these dependencies _are_ still resolved and added to the
70
+ `package-lock.json` or `npm-shrinkwrap.json` file. They are just not
71
+ physically installed on disk.
72
+
73
+ If a package type appears in both the `--include` and `--omit` lists, then
74
+ it will be included.
75
+
76
+ If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
77
+ variable will be set to `'production'` for all lifecycle scripts.
78
+
79
+
80
+
81
+ #### `include`
82
+
83
+ * Default:
84
+ * Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
85
+
86
+ Option that allows for defining which types of dependencies to install.
87
+
88
+ This is the inverse of `--omit=<type>`.
89
+
90
+ Dependency types specified in `--include` will not be omitted, regardless of
91
+ the order in which omit/include are specified on the command-line.
92
+
93
+
94
+
95
+ #### `strict-peer-deps`
96
+
97
+ * Default: false
98
+ * Type: Boolean
99
+
100
+ If set to `true`, and `--legacy-peer-deps` is not set, then _any_
101
+ conflicting `peerDependencies` will be treated as an install failure, even
102
+ if npm could reasonably guess the appropriate resolution based on non-peer
103
+ dependency relationships.
104
+
105
+ By default, conflicting `peerDependencies` deep in the dependency graph will
106
+ be resolved using the nearest non-peer dependency specification, even if
107
+ doing so will result in some packages receiving a peer dependency outside
108
+ the range set in their package's `peerDependencies` object.
109
+
110
+ When such an override is performed, a warning is printed, explaining the
111
+ conflict and the packages involved. If `--strict-peer-deps` is set, then
112
+ this warning is treated as a failure.
113
+
114
+
115
+
116
+ #### `foreground-scripts`
117
+
118
+ * Default: `false` unless when using `npm pack` or `npm publish` where it
119
+ defaults to `true`
120
+ * Type: Boolean
121
+
122
+ Run all build scripts (ie, `preinstall`, `install`, and `postinstall`)
123
+ scripts for installed packages in the foreground process, sharing standard
124
+ input, output, and error with the main npm process.
125
+
126
+ Note that this will generally make installs run slower, and be much noisier,
127
+ but can be useful for debugging.
128
+
129
+
130
+
131
+ #### `ignore-scripts`
132
+
133
+ * Default: false
134
+ * Type: Boolean
135
+
136
+ If true, npm does not run scripts specified in package.json files.
137
+
138
+ Note that commands explicitly intended to run a particular script, such as
139
+ `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
140
+ will still run their intended script if `ignore-scripts` is set, but they
141
+ will *not* run any pre- or post-scripts.
142
+
143
+
144
+
145
+ #### `audit`
146
+
147
+ * Default: true
148
+ * Type: Boolean
149
+
150
+ When "true" submit audit reports alongside the current npm command to the
151
+ default registry and all registries configured for scopes. See the
152
+ documentation for [`npm audit`](/commands/npm-audit) for details on what is
153
+ submitted.
154
+
155
+
156
+
157
+ #### `bin-links`
158
+
159
+ * Default: true
160
+ * Type: Boolean
161
+
162
+ Tells npm to create symlinks (or `.cmd` shims on Windows) for package
163
+ executables.
164
+
165
+ Set to false to have it not do this. This can be used to work around the
166
+ fact that some file systems don't support symlinks, even on ostensibly Unix
167
+ systems.
168
+
169
+
170
+
171
+ #### `fund`
172
+
173
+ * Default: true
174
+ * Type: Boolean
175
+
176
+ When "true" displays the message at the end of each `npm install`
177
+ acknowledging the number of dependencies looking for funding. See [`npm
178
+ fund`](/commands/npm-fund) for details.
179
+
180
+
181
+
182
+ #### `dry-run`
183
+
184
+ * Default: false
185
+ * Type: Boolean
186
+
187
+ Indicates that you don't want npm to make any changes and that it should
188
+ only report what it would have done. This can be passed into any of the
189
+ commands that modify your local installation, eg, `install`, `update`,
190
+ `dedupe`, `uninstall`, as well as `pack` and `publish`.
191
+
192
+ Note: This is NOT honored by other network related commands, eg `dist-tags`,
193
+ `owner`, etc.
194
+
195
+
196
+
197
+ #### `workspace`
198
+
199
+ * Default:
200
+ * Type: String (can be set multiple times)
201
+
202
+ Enable running a command in the context of the configured workspaces of the
203
+ current project while filtering by running only the workspaces defined by
204
+ this configuration option.
205
+
206
+ Valid values for the `workspace` config are either:
207
+
208
+ * Workspace names
209
+ * Path to a workspace directory
210
+ * Path to a parent workspace directory (will result in selecting all
211
+ workspaces within that folder)
212
+
213
+ When set for the `npm init` command, this may be set to the folder of a
214
+ workspace which does not yet exist, to create the folder and set it up as a
215
+ brand new workspace within the project.
216
+
217
+ This value is not exported to the environment for child processes.
218
+
219
+ #### `workspaces`
220
+
221
+ * Default: null
222
+ * Type: null or Boolean
223
+
224
+ Set to true to run the command in the context of **all** configured
225
+ workspaces.
226
+
227
+ Explicitly setting this to false will cause commands like `install` to
228
+ ignore workspaces altogether. When not set explicitly:
229
+
230
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
231
+ will link workspaces into the `node_modules` folder. - Commands that do
232
+ other things (test, exec, publish, etc.) will operate on the root project,
233
+ _unless_ one or more workspaces are specified in the `workspace` config.
234
+
235
+ This value is not exported to the environment for child processes.
236
+
237
+ #### `include-workspace-root`
238
+
239
+ * Default: false
240
+ * Type: Boolean
241
+
242
+ Include the workspace root when workspaces are enabled for a command.
243
+
244
+ When false, specifying individual workspaces via the `workspace` config, or
245
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
246
+ the specified workspaces, and not on the root project.
247
+
248
+ This value is not exported to the environment for child processes.
249
+
250
+ #### `install-links`
251
+
252
+ * Default: false
253
+ * Type: Boolean
254
+
255
+ When set file: protocol dependencies will be packed and installed as regular
256
+ dependencies instead of creating a symlink. This option has no effect on
257
+ workspaces.
258
+
259
+
260
+
261
+ ### See Also
262
+
263
+ * [npm install-test](/commands/npm-install-test)
264
+ * [npm ci](/commands/npm-ci)
265
+ * [npm test](/commands/npm-test)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-install-test.md ADDED
@@ -0,0 +1,372 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-install-test
3
+ section: 1
4
+ description: Install package(s) and run tests
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm install-test [<package-spec> ...]
11
+
12
+ alias: it
13
+ ```
14
+
15
+ ### Description
16
+
17
+ This command runs an `npm install` followed immediately by an `npm test`. It
18
+ takes exactly the same arguments as `npm install`.
19
+
20
+ ### Configuration
21
+
22
+ #### `save`
23
+
24
+ * Default: `true` unless when using `npm update` where it defaults to `false`
25
+ * Type: Boolean
26
+
27
+ Save installed packages to a `package.json` file as dependencies.
28
+
29
+ When used with the `npm rm` command, removes the dependency from
30
+ `package.json`.
31
+
32
+ Will also prevent writing to `package-lock.json` if set to `false`.
33
+
34
+
35
+
36
+ #### `save-exact`
37
+
38
+ * Default: false
39
+ * Type: Boolean
40
+
41
+ Dependencies saved to package.json will be configured with an exact version
42
+ rather than using npm's default semver range operator.
43
+
44
+
45
+
46
+ #### `global`
47
+
48
+ * Default: false
49
+ * Type: Boolean
50
+
51
+ Operates in "global" mode, so that packages are installed into the `prefix`
52
+ folder instead of the current working directory. See
53
+ [folders](/configuring-npm/folders) for more on the differences in behavior.
54
+
55
+ * packages are installed into the `{prefix}/lib/node_modules` folder, instead
56
+ of the current working directory.
57
+ * bin files are linked to `{prefix}/bin`
58
+ * man pages are linked to `{prefix}/share/man`
59
+
60
+
61
+
62
+ #### `install-strategy`
63
+
64
+ * Default: "hoisted"
65
+ * Type: "hoisted", "nested", "shallow", or "linked"
66
+
67
+ Sets the strategy for installing packages in node_modules. hoisted
68
+ (default): Install non-duplicated in top-level, and duplicated as necessary
69
+ within directory structure. nested: (formerly --legacy-bundling) install in
70
+ place, no hoisting. shallow (formerly --global-style) only install direct
71
+ deps at top-level. linked: (experimental) install in node_modules/.store,
72
+ link in place, unhoisted.
73
+
74
+
75
+
76
+ #### `legacy-bundling`
77
+
78
+ * Default: false
79
+ * Type: Boolean
80
+ * DEPRECATED: This option has been deprecated in favor of
81
+ `--install-strategy=nested`
82
+
83
+ Instead of hoisting package installs in `node_modules`, install packages in
84
+ the same manner that they are depended on. This may cause very deep
85
+ directory structures and duplicate package installs as there is no
86
+ de-duplicating. Sets `--install-strategy=nested`.
87
+
88
+
89
+
90
+ #### `global-style`
91
+
92
+ * Default: false
93
+ * Type: Boolean
94
+ * DEPRECATED: This option has been deprecated in favor of
95
+ `--install-strategy=shallow`
96
+
97
+ Only install direct dependencies in the top level `node_modules`, but hoist
98
+ on deeper dependencies. Sets `--install-strategy=shallow`.
99
+
100
+
101
+
102
+ #### `omit`
103
+
104
+ * Default: 'dev' if the `NODE_ENV` environment variable is set to
105
+ 'production', otherwise empty.
106
+ * Type: "dev", "optional", or "peer" (can be set multiple times)
107
+
108
+ Dependency types to omit from the installation tree on disk.
109
+
110
+ Note that these dependencies _are_ still resolved and added to the
111
+ `package-lock.json` or `npm-shrinkwrap.json` file. They are just not
112
+ physically installed on disk.
113
+
114
+ If a package type appears in both the `--include` and `--omit` lists, then
115
+ it will be included.
116
+
117
+ If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
118
+ variable will be set to `'production'` for all lifecycle scripts.
119
+
120
+
121
+
122
+ #### `include`
123
+
124
+ * Default:
125
+ * Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
126
+
127
+ Option that allows for defining which types of dependencies to install.
128
+
129
+ This is the inverse of `--omit=<type>`.
130
+
131
+ Dependency types specified in `--include` will not be omitted, regardless of
132
+ the order in which omit/include are specified on the command-line.
133
+
134
+
135
+
136
+ #### `strict-peer-deps`
137
+
138
+ * Default: false
139
+ * Type: Boolean
140
+
141
+ If set to `true`, and `--legacy-peer-deps` is not set, then _any_
142
+ conflicting `peerDependencies` will be treated as an install failure, even
143
+ if npm could reasonably guess the appropriate resolution based on non-peer
144
+ dependency relationships.
145
+
146
+ By default, conflicting `peerDependencies` deep in the dependency graph will
147
+ be resolved using the nearest non-peer dependency specification, even if
148
+ doing so will result in some packages receiving a peer dependency outside
149
+ the range set in their package's `peerDependencies` object.
150
+
151
+ When such an override is performed, a warning is printed, explaining the
152
+ conflict and the packages involved. If `--strict-peer-deps` is set, then
153
+ this warning is treated as a failure.
154
+
155
+
156
+
157
+ #### `prefer-dedupe`
158
+
159
+ * Default: false
160
+ * Type: Boolean
161
+
162
+ Prefer to deduplicate packages if possible, rather than choosing a newer
163
+ version of a dependency.
164
+
165
+
166
+
167
+ #### `package-lock`
168
+
169
+ * Default: true
170
+ * Type: Boolean
171
+
172
+ If set to false, then ignore `package-lock.json` files when installing. This
173
+ will also prevent _writing_ `package-lock.json` if `save` is true.
174
+
175
+
176
+
177
+ #### `package-lock-only`
178
+
179
+ * Default: false
180
+ * Type: Boolean
181
+
182
+ If set to true, the current operation will only use the `package-lock.json`,
183
+ ignoring `node_modules`.
184
+
185
+ For `update` this means only the `package-lock.json` will be updated,
186
+ instead of checking `node_modules` and downloading dependencies.
187
+
188
+ For `list` this means the output will be based on the tree described by the
189
+ `package-lock.json`, rather than the contents of `node_modules`.
190
+
191
+
192
+
193
+ #### `foreground-scripts`
194
+
195
+ * Default: `false` unless when using `npm pack` or `npm publish` where it
196
+ defaults to `true`
197
+ * Type: Boolean
198
+
199
+ Run all build scripts (ie, `preinstall`, `install`, and `postinstall`)
200
+ scripts for installed packages in the foreground process, sharing standard
201
+ input, output, and error with the main npm process.
202
+
203
+ Note that this will generally make installs run slower, and be much noisier,
204
+ but can be useful for debugging.
205
+
206
+
207
+
208
+ #### `ignore-scripts`
209
+
210
+ * Default: false
211
+ * Type: Boolean
212
+
213
+ If true, npm does not run scripts specified in package.json files.
214
+
215
+ Note that commands explicitly intended to run a particular script, such as
216
+ `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
217
+ will still run their intended script if `ignore-scripts` is set, but they
218
+ will *not* run any pre- or post-scripts.
219
+
220
+
221
+
222
+ #### `audit`
223
+
224
+ * Default: true
225
+ * Type: Boolean
226
+
227
+ When "true" submit audit reports alongside the current npm command to the
228
+ default registry and all registries configured for scopes. See the
229
+ documentation for [`npm audit`](/commands/npm-audit) for details on what is
230
+ submitted.
231
+
232
+
233
+
234
+ #### `bin-links`
235
+
236
+ * Default: true
237
+ * Type: Boolean
238
+
239
+ Tells npm to create symlinks (or `.cmd` shims on Windows) for package
240
+ executables.
241
+
242
+ Set to false to have it not do this. This can be used to work around the
243
+ fact that some file systems don't support symlinks, even on ostensibly Unix
244
+ systems.
245
+
246
+
247
+
248
+ #### `fund`
249
+
250
+ * Default: true
251
+ * Type: Boolean
252
+
253
+ When "true" displays the message at the end of each `npm install`
254
+ acknowledging the number of dependencies looking for funding. See [`npm
255
+ fund`](/commands/npm-fund) for details.
256
+
257
+
258
+
259
+ #### `dry-run`
260
+
261
+ * Default: false
262
+ * Type: Boolean
263
+
264
+ Indicates that you don't want npm to make any changes and that it should
265
+ only report what it would have done. This can be passed into any of the
266
+ commands that modify your local installation, eg, `install`, `update`,
267
+ `dedupe`, `uninstall`, as well as `pack` and `publish`.
268
+
269
+ Note: This is NOT honored by other network related commands, eg `dist-tags`,
270
+ `owner`, etc.
271
+
272
+
273
+
274
+ #### `cpu`
275
+
276
+ * Default: null
277
+ * Type: null or String
278
+
279
+ Override CPU architecture of native modules to install. Acceptable values
280
+ are same as `cpu` field of package.json, which comes from `process.arch`.
281
+
282
+
283
+
284
+ #### `os`
285
+
286
+ * Default: null
287
+ * Type: null or String
288
+
289
+ Override OS of native modules to install. Acceptable values are same as `os`
290
+ field of package.json, which comes from `process.platform`.
291
+
292
+
293
+
294
+ #### `libc`
295
+
296
+ * Default: null
297
+ * Type: null or String
298
+
299
+ Override libc of native modules to install. Acceptable values are same as
300
+ `libc` field of package.json
301
+
302
+
303
+
304
+ #### `workspace`
305
+
306
+ * Default:
307
+ * Type: String (can be set multiple times)
308
+
309
+ Enable running a command in the context of the configured workspaces of the
310
+ current project while filtering by running only the workspaces defined by
311
+ this configuration option.
312
+
313
+ Valid values for the `workspace` config are either:
314
+
315
+ * Workspace names
316
+ * Path to a workspace directory
317
+ * Path to a parent workspace directory (will result in selecting all
318
+ workspaces within that folder)
319
+
320
+ When set for the `npm init` command, this may be set to the folder of a
321
+ workspace which does not yet exist, to create the folder and set it up as a
322
+ brand new workspace within the project.
323
+
324
+ This value is not exported to the environment for child processes.
325
+
326
+ #### `workspaces`
327
+
328
+ * Default: null
329
+ * Type: null or Boolean
330
+
331
+ Set to true to run the command in the context of **all** configured
332
+ workspaces.
333
+
334
+ Explicitly setting this to false will cause commands like `install` to
335
+ ignore workspaces altogether. When not set explicitly:
336
+
337
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
338
+ will link workspaces into the `node_modules` folder. - Commands that do
339
+ other things (test, exec, publish, etc.) will operate on the root project,
340
+ _unless_ one or more workspaces are specified in the `workspace` config.
341
+
342
+ This value is not exported to the environment for child processes.
343
+
344
+ #### `include-workspace-root`
345
+
346
+ * Default: false
347
+ * Type: Boolean
348
+
349
+ Include the workspace root when workspaces are enabled for a command.
350
+
351
+ When false, specifying individual workspaces via the `workspace` config, or
352
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
353
+ the specified workspaces, and not on the root project.
354
+
355
+ This value is not exported to the environment for child processes.
356
+
357
+ #### `install-links`
358
+
359
+ * Default: false
360
+ * Type: Boolean
361
+
362
+ When set file: protocol dependencies will be packed and installed as regular
363
+ dependencies instead of creating a symlink. This option has no effect on
364
+ workspaces.
365
+
366
+
367
+
368
+ ### See Also
369
+
370
+ * [npm install](/commands/npm-install)
371
+ * [npm install-ci-test](/commands/npm-install-ci-test)
372
+ * [npm test](/commands/npm-test)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-install.md ADDED
@@ -0,0 +1,806 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-install
3
+ section: 1
4
+ description: Install a package
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm install [<package-spec> ...]
11
+
12
+ aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall
13
+ ```
14
+
15
+ ### Description
16
+
17
+ This command installs a package and any packages that it depends on. If the
18
+ package has a package-lock, or an npm shrinkwrap file, or a yarn lock file,
19
+ the installation of dependencies will be driven by that, respecting the
20
+ following order of precedence:
21
+
22
+ * `npm-shrinkwrap.json`
23
+ * `package-lock.json`
24
+ * `yarn.lock`
25
+
26
+ See [package-lock.json](/configuring-npm/package-lock-json) and
27
+ [`npm shrinkwrap`](/commands/npm-shrinkwrap).
28
+
29
+ A `package` is:
30
+
31
+ * a) a folder containing a program described by a
32
+ [`package.json`](/configuring-npm/package-json) file
33
+ * b) a gzipped tarball containing (a)
34
+ * c) a url that resolves to (b)
35
+ * d) a `<name>@<version>` that is published on the registry (see
36
+ [`registry`](/using-npm/registry)) with (c)
37
+ * e) a `<name>@<tag>` (see [`npm dist-tag`](/commands/npm-dist-tag)) that
38
+ points to (d)
39
+ * f) a `<name>` that has a "latest" tag satisfying (e)
40
+ * g) a `<git remote url>` that resolves to (a)
41
+
42
+ Even if you never publish your package, you can still get a lot of benefits
43
+ of using npm if you just want to write a node program (a), and perhaps if
44
+ you also want to be able to easily install it elsewhere after packing it up
45
+ into a tarball (b).
46
+
47
+
48
+ * `npm install` (in a package directory, no arguments):
49
+
50
+ Install the dependencies to the local `node_modules` folder.
51
+
52
+ In global mode (ie, with `-g` or `--global` appended to the command),
53
+ it installs the current package context (ie, the current working
54
+ directory) as a global package.
55
+
56
+ By default, `npm install` will install all modules listed as
57
+ dependencies in [`package.json`](/configuring-npm/package-json).
58
+
59
+ With the `--production` flag (or when the `NODE_ENV` environment
60
+ variable is set to `production`), npm will not install modules listed
61
+ in `devDependencies`. To install all modules listed in both
62
+ `dependencies` and `devDependencies` when `NODE_ENV` environment
63
+ variable is set to `production`, you can use `--production=false`.
64
+
65
+ > NOTE: The `--production` flag has no particular meaning when adding a
66
+ dependency to a project.
67
+
68
+ * `npm install <folder>`:
69
+
70
+ If `<folder>` sits inside the root of your project, its dependencies will be installed and may
71
+ be hoisted to the top-level `node_modules` as they would for other
72
+ types of dependencies. If `<folder>` sits outside the root of your project,
73
+ *npm will not install the package dependencies* in the directory `<folder>`,
74
+ but it will create a symlink to `<folder>`.
75
+
76
+ > NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use the `--install-links` option.
77
+
78
+ Example:
79
+
80
+ ```bash
81
+ npm install ../../other-package --install-links
82
+ npm install ./sub-package
83
+ ```
84
+
85
+ * `npm install <tarball file>`:
86
+
87
+ Install a package that is sitting on the filesystem. Note: if you just
88
+ want to link a dev directory into your npm root, you can do this more
89
+ easily by using [`npm link`](/commands/npm-link).
90
+
91
+ Tarball requirements:
92
+ * The filename *must* use `.tar`, `.tar.gz`, or `.tgz` as the
93
+ extension.
94
+ * The package contents should reside in a subfolder inside the tarball
95
+ (usually it is called `package/`). npm strips one directory layer
96
+ when installing the package (an equivalent of `tar x
97
+ --strip-components=1` is run).
98
+ * The package must contain a `package.json` file with `name` and
99
+ `version` properties.
100
+
101
+ Example:
102
+
103
+ ```bash
104
+ npm install ./package.tgz
105
+ ```
106
+
107
+ * `npm install <tarball url>`:
108
+
109
+ Fetch the tarball url, and then install it. In order to distinguish between
110
+ this and other options, the argument must start with "http://" or "https://"
111
+
112
+ Example:
113
+
114
+ ```bash
115
+ npm install https://github.com/indexzero/forever/tarball/v0.5.6
116
+ ```
117
+
118
+ * `npm install [<@scope>/]<name>`:
119
+
120
+ Do a `<name>@<tag>` install, where `<tag>` is the "tag" config. (See
121
+ [`config`](/using-npm/config#tag). The config's default value is `latest`.)
122
+
123
+ In most cases, this will install the version of the modules tagged as
124
+ `latest` on the npm registry.
125
+
126
+ Example:
127
+
128
+ ```bash
129
+ npm install sax
130
+ ```
131
+
132
+ `npm install` saves any specified packages into `dependencies` by default.
133
+ Additionally, you can control where and how they get saved with some
134
+ additional flags:
135
+
136
+ * `-P, --save-prod`: Package will appear in your `dependencies`. This
137
+ is the default unless `-D` or `-O` are present.
138
+
139
+ * `-D, --save-dev`: Package will appear in your `devDependencies`.
140
+
141
+ * `--save-peer`: Package will appear in your `peerDependencies`.
142
+
143
+ * `-O, --save-optional`: Package will appear in your
144
+ `optionalDependencies`.
145
+
146
+ * `--no-save`: Prevents saving to `dependencies`.
147
+
148
+ When using any of the above options to save dependencies to your
149
+ package.json, there are two additional, optional flags:
150
+
151
+ * `-E, --save-exact`: Saved dependencies will be configured with an
152
+ exact version rather than using npm's default semver range operator.
153
+
154
+ * `-B, --save-bundle`: Saved dependencies will also be added to your
155
+ `bundleDependencies` list.
156
+
157
+ Further, if you have an `npm-shrinkwrap.json` or `package-lock.json`
158
+ then it will be updated as well.
159
+
160
+ `<scope>` is optional. The package will be downloaded from the registry
161
+ associated with the specified scope. If no registry is associated with
162
+ the given scope the default registry is assumed. See
163
+ [`scope`](/using-npm/scope).
164
+
165
+ Note: if you do not include the @-symbol on your scope name, npm will
166
+ interpret this as a GitHub repository instead, see below. Scopes names
167
+ must also be followed by a slash.
168
+
169
+ Examples:
170
+
171
+ ```bash
172
+ npm install sax
173
+ npm install githubname/reponame
174
+ npm install @myorg/privatepackage
175
+ npm install node-tap --save-dev
176
+ npm install dtrace-provider --save-optional
177
+ npm install readable-stream --save-exact
178
+ npm install ansi-regex --save-bundle
179
+ ```
180
+
181
+ * `npm install <alias>@npm:<name>`:
182
+
183
+ Install a package under a custom alias. Allows multiple versions of
184
+ a same-name package side-by-side, more convenient import names for
185
+ packages with otherwise long ones, and using git forks replacements
186
+ or forked npm packages as replacements. Aliasing works only on your
187
+ project and does not rename packages in transitive dependencies.
188
+ Aliases should follow the naming conventions stated in
189
+ [`validate-npm-package-name`](https://www.npmjs.com/package/validate-npm-package-name#naming-rules).
190
+
191
+ Examples:
192
+
193
+ ```bash
194
+ npm install my-react@npm:react
195
+ npm install jquery2@npm:jquery@2
196
+ npm install jquery3@npm:jquery@3
197
+ npm install npa@npm:npm-package-arg
198
+ ```
199
+
200
+ * `npm install [<@scope>/]<name>@<tag>`:
201
+
202
+ Install the version of the package that is referenced by the specified tag.
203
+ If the tag does not exist in the registry data for that package, then this
204
+ will fail.
205
+
206
+ Example:
207
+
208
+ ```bash
209
+ npm install sax@latest
210
+ npm install @myorg/mypackage@latest
211
+ ```
212
+
213
+ * `npm install [<@scope>/]<name>@<version>`:
214
+
215
+ Install the specified version of the package. This will fail if the
216
+ version has not been published to the registry.
217
+
218
+ Example:
219
+
220
+ ```bash
221
+ npm install sax@0.1.1
222
+ npm install @myorg/privatepackage@1.5.0
223
+ ```
224
+
225
+ * `npm install [<@scope>/]<name>@<version range>`:
226
+
227
+ Install a version of the package matching the specified version range.
228
+ This will follow the same rules for resolving dependencies described in
229
+ [`package.json`](/configuring-npm/package-json).
230
+
231
+ Note that most version ranges must be put in quotes so that your shell
232
+ will treat it as a single argument.
233
+
234
+ Example:
235
+
236
+ ```bash
237
+ npm install sax@">=0.1.0 <0.2.0"
238
+ npm install @myorg/privatepackage@"16 - 17"
239
+ ```
240
+
241
+ * `npm install <git remote url>`:
242
+
243
+ Installs the package from the hosted git provider, cloning it with
244
+ `git`. For a full git remote url, only that URL will be attempted.
245
+
246
+ ```bash
247
+ <protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>[#<commit-ish> | #semver:<semver>]
248
+ ```
249
+
250
+ `<protocol>` is one of `git`, `git+ssh`, `git+http`, `git+https`, or
251
+ `git+file`.
252
+
253
+ If `#<commit-ish>` is provided, it will be used to clone exactly that
254
+ commit. If the commit-ish has the format `#semver:<semver>`, `<semver>`
255
+ can be any valid semver range or exact version, and npm will look for
256
+ any tags or refs matching that range in the remote repository, much as
257
+ it would for a registry dependency. If neither `#<commit-ish>` or
258
+ `#semver:<semver>` is specified, then the default branch of the
259
+ repository is used.
260
+
261
+ If the repository makes use of submodules, those submodules will be
262
+ cloned as well.
263
+
264
+ If the package being installed contains a `prepare` script, its
265
+ `dependencies` and `devDependencies` will be installed, and the prepare
266
+ script will be run, before the package is packaged and installed.
267
+
268
+ The following git environment variables are recognized by npm and will
269
+ be added to the environment when running git:
270
+
271
+ * `GIT_ASKPASS`
272
+ * `GIT_EXEC_PATH`
273
+ * `GIT_PROXY_COMMAND`
274
+ * `GIT_SSH`
275
+ * `GIT_SSH_COMMAND`
276
+ * `GIT_SSL_CAINFO`
277
+ * `GIT_SSL_NO_VERIFY`
278
+
279
+ See the git man page for details.
280
+
281
+ Examples:
282
+
283
+ ```bash
284
+ npm install git+ssh://git@github.com:npm/cli.git#v1.0.27
285
+ npm install git+ssh://git@github.com:npm/cli#pull/273
286
+ npm install git+ssh://git@github.com:npm/cli#semver:^5.0
287
+ npm install git+https://isaacs@github.com/npm/cli.git
288
+ npm install git://github.com/npm/cli.git#v1.0.27
289
+ GIT_SSH_COMMAND='ssh -i ~/.ssh/custom_ident' npm install git+ssh://git@github.com:npm/cli.git
290
+ ```
291
+
292
+ * `npm install <githubname>/<githubrepo>[#<commit-ish>]`:
293
+ * `npm install github:<githubname>/<githubrepo>[#<commit-ish>]`:
294
+
295
+ Install the package at `https://github.com/githubname/githubrepo` by
296
+ attempting to clone it using `git`.
297
+
298
+ If `#<commit-ish>` is provided, it will be used to clone exactly that
299
+ commit. If the commit-ish has the format `#semver:<semver>`, `<semver>`
300
+ can be any valid semver range or exact version, and npm will look for
301
+ any tags or refs matching that range in the remote repository, much as
302
+ it would for a registry dependency. If neither `#<commit-ish>` or
303
+ `#semver:<semver>` is specified, then the default branch is used.
304
+
305
+ As with regular git dependencies, `dependencies` and `devDependencies`
306
+ will be installed if the package has a `prepare` script before the
307
+ package is done installing.
308
+
309
+ Examples:
310
+
311
+ ```bash
312
+ npm install mygithubuser/myproject
313
+ npm install github:mygithubuser/myproject
314
+ ```
315
+
316
+ * `npm install gist:[<githubname>/]<gistID>[#<commit-ish>|#semver:<semver>]`:
317
+
318
+ Install the package at `https://gist.github.com/gistID` by attempting to
319
+ clone it using `git`. The GitHub username associated with the gist is
320
+ optional and will not be saved in `package.json`.
321
+
322
+ As with regular git dependencies, `dependencies` and `devDependencies` will
323
+ be installed if the package has a `prepare` script before the package is
324
+ done installing.
325
+
326
+ Example:
327
+
328
+ ```bash
329
+ npm install gist:101a11beef
330
+ ```
331
+
332
+ * `npm install bitbucket:<bitbucketname>/<bitbucketrepo>[#<commit-ish>]`:
333
+
334
+ Install the package at `https://bitbucket.org/bitbucketname/bitbucketrepo`
335
+ by attempting to clone it using `git`.
336
+
337
+ If `#<commit-ish>` is provided, it will be used to clone exactly that
338
+ commit. If the commit-ish has the format `#semver:<semver>`, `<semver>` can
339
+ be any valid semver range or exact version, and npm will look for any tags
340
+ or refs matching that range in the remote repository, much as it would for a
341
+ registry dependency. If neither `#<commit-ish>` or `#semver:<semver>` is
342
+ specified, then `master` is used.
343
+
344
+ As with regular git dependencies, `dependencies` and `devDependencies` will
345
+ be installed if the package has a `prepare` script before the package is
346
+ done installing.
347
+
348
+ Example:
349
+
350
+ ```bash
351
+ npm install bitbucket:mybitbucketuser/myproject
352
+ ```
353
+
354
+ * `npm install gitlab:<gitlabname>/<gitlabrepo>[#<commit-ish>]`:
355
+
356
+ Install the package at `https://gitlab.com/gitlabname/gitlabrepo`
357
+ by attempting to clone it using `git`.
358
+
359
+ If `#<commit-ish>` is provided, it will be used to clone exactly that
360
+ commit. If the commit-ish has the format `#semver:<semver>`, `<semver>` can
361
+ be any valid semver range or exact version, and npm will look for any tags
362
+ or refs matching that range in the remote repository, much as it would for a
363
+ registry dependency. If neither `#<commit-ish>` or `#semver:<semver>` is
364
+ specified, then `master` is used.
365
+
366
+ As with regular git dependencies, `dependencies` and `devDependencies` will
367
+ be installed if the package has a `prepare` script before the package is
368
+ done installing.
369
+
370
+ Example:
371
+
372
+ ```bash
373
+ npm install gitlab:mygitlabuser/myproject
374
+ npm install gitlab:myusr/myproj#semver:^5.0
375
+ ```
376
+
377
+ You may combine multiple arguments and even multiple types of arguments.
378
+ For example:
379
+
380
+ ```bash
381
+ npm install sax@">=0.1.0 <0.2.0" bench supervisor
382
+ ```
383
+
384
+ The `--tag` argument will apply to all of the specified install targets. If
385
+ a tag with the given name exists, the tagged version is preferred over
386
+ newer versions.
387
+
388
+ The `--dry-run` argument will report in the usual way what the install
389
+ would have done without actually installing anything.
390
+
391
+ The `--package-lock-only` argument will only update the
392
+ `package-lock.json`, instead of checking `node_modules` and downloading
393
+ dependencies.
394
+
395
+ The `-f` or `--force` argument will force npm to fetch remote resources
396
+ even if a local copy exists on disk.
397
+
398
+ ```bash
399
+ npm install sax --force
400
+ ```
401
+
402
+ ### Configuration
403
+
404
+ See the [`config`](/using-npm/config) help doc. Many of the configuration
405
+ params have some effect on installation, since that's most of what npm
406
+ does.
407
+
408
+ These are some of the most common options related to installation.
409
+
410
+ #### `save`
411
+
412
+ * Default: `true` unless when using `npm update` where it defaults to `false`
413
+ * Type: Boolean
414
+
415
+ Save installed packages to a `package.json` file as dependencies.
416
+
417
+ When used with the `npm rm` command, removes the dependency from
418
+ `package.json`.
419
+
420
+ Will also prevent writing to `package-lock.json` if set to `false`.
421
+
422
+
423
+
424
+ #### `save-exact`
425
+
426
+ * Default: false
427
+ * Type: Boolean
428
+
429
+ Dependencies saved to package.json will be configured with an exact version
430
+ rather than using npm's default semver range operator.
431
+
432
+
433
+
434
+ #### `global`
435
+
436
+ * Default: false
437
+ * Type: Boolean
438
+
439
+ Operates in "global" mode, so that packages are installed into the `prefix`
440
+ folder instead of the current working directory. See
441
+ [folders](/configuring-npm/folders) for more on the differences in behavior.
442
+
443
+ * packages are installed into the `{prefix}/lib/node_modules` folder, instead
444
+ of the current working directory.
445
+ * bin files are linked to `{prefix}/bin`
446
+ * man pages are linked to `{prefix}/share/man`
447
+
448
+
449
+
450
+ #### `install-strategy`
451
+
452
+ * Default: "hoisted"
453
+ * Type: "hoisted", "nested", "shallow", or "linked"
454
+
455
+ Sets the strategy for installing packages in node_modules. hoisted
456
+ (default): Install non-duplicated in top-level, and duplicated as necessary
457
+ within directory structure. nested: (formerly --legacy-bundling) install in
458
+ place, no hoisting. shallow (formerly --global-style) only install direct
459
+ deps at top-level. linked: (experimental) install in node_modules/.store,
460
+ link in place, unhoisted.
461
+
462
+
463
+
464
+ #### `legacy-bundling`
465
+
466
+ * Default: false
467
+ * Type: Boolean
468
+ * DEPRECATED: This option has been deprecated in favor of
469
+ `--install-strategy=nested`
470
+
471
+ Instead of hoisting package installs in `node_modules`, install packages in
472
+ the same manner that they are depended on. This may cause very deep
473
+ directory structures and duplicate package installs as there is no
474
+ de-duplicating. Sets `--install-strategy=nested`.
475
+
476
+
477
+
478
+ #### `global-style`
479
+
480
+ * Default: false
481
+ * Type: Boolean
482
+ * DEPRECATED: This option has been deprecated in favor of
483
+ `--install-strategy=shallow`
484
+
485
+ Only install direct dependencies in the top level `node_modules`, but hoist
486
+ on deeper dependencies. Sets `--install-strategy=shallow`.
487
+
488
+
489
+
490
+ #### `omit`
491
+
492
+ * Default: 'dev' if the `NODE_ENV` environment variable is set to
493
+ 'production', otherwise empty.
494
+ * Type: "dev", "optional", or "peer" (can be set multiple times)
495
+
496
+ Dependency types to omit from the installation tree on disk.
497
+
498
+ Note that these dependencies _are_ still resolved and added to the
499
+ `package-lock.json` or `npm-shrinkwrap.json` file. They are just not
500
+ physically installed on disk.
501
+
502
+ If a package type appears in both the `--include` and `--omit` lists, then
503
+ it will be included.
504
+
505
+ If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
506
+ variable will be set to `'production'` for all lifecycle scripts.
507
+
508
+
509
+
510
+ #### `include`
511
+
512
+ * Default:
513
+ * Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
514
+
515
+ Option that allows for defining which types of dependencies to install.
516
+
517
+ This is the inverse of `--omit=<type>`.
518
+
519
+ Dependency types specified in `--include` will not be omitted, regardless of
520
+ the order in which omit/include are specified on the command-line.
521
+
522
+
523
+
524
+ #### `strict-peer-deps`
525
+
526
+ * Default: false
527
+ * Type: Boolean
528
+
529
+ If set to `true`, and `--legacy-peer-deps` is not set, then _any_
530
+ conflicting `peerDependencies` will be treated as an install failure, even
531
+ if npm could reasonably guess the appropriate resolution based on non-peer
532
+ dependency relationships.
533
+
534
+ By default, conflicting `peerDependencies` deep in the dependency graph will
535
+ be resolved using the nearest non-peer dependency specification, even if
536
+ doing so will result in some packages receiving a peer dependency outside
537
+ the range set in their package's `peerDependencies` object.
538
+
539
+ When such an override is performed, a warning is printed, explaining the
540
+ conflict and the packages involved. If `--strict-peer-deps` is set, then
541
+ this warning is treated as a failure.
542
+
543
+
544
+
545
+ #### `prefer-dedupe`
546
+
547
+ * Default: false
548
+ * Type: Boolean
549
+
550
+ Prefer to deduplicate packages if possible, rather than choosing a newer
551
+ version of a dependency.
552
+
553
+
554
+
555
+ #### `package-lock`
556
+
557
+ * Default: true
558
+ * Type: Boolean
559
+
560
+ If set to false, then ignore `package-lock.json` files when installing. This
561
+ will also prevent _writing_ `package-lock.json` if `save` is true.
562
+
563
+
564
+
565
+ #### `package-lock-only`
566
+
567
+ * Default: false
568
+ * Type: Boolean
569
+
570
+ If set to true, the current operation will only use the `package-lock.json`,
571
+ ignoring `node_modules`.
572
+
573
+ For `update` this means only the `package-lock.json` will be updated,
574
+ instead of checking `node_modules` and downloading dependencies.
575
+
576
+ For `list` this means the output will be based on the tree described by the
577
+ `package-lock.json`, rather than the contents of `node_modules`.
578
+
579
+
580
+
581
+ #### `foreground-scripts`
582
+
583
+ * Default: `false` unless when using `npm pack` or `npm publish` where it
584
+ defaults to `true`
585
+ * Type: Boolean
586
+
587
+ Run all build scripts (ie, `preinstall`, `install`, and `postinstall`)
588
+ scripts for installed packages in the foreground process, sharing standard
589
+ input, output, and error with the main npm process.
590
+
591
+ Note that this will generally make installs run slower, and be much noisier,
592
+ but can be useful for debugging.
593
+
594
+
595
+
596
+ #### `ignore-scripts`
597
+
598
+ * Default: false
599
+ * Type: Boolean
600
+
601
+ If true, npm does not run scripts specified in package.json files.
602
+
603
+ Note that commands explicitly intended to run a particular script, such as
604
+ `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
605
+ will still run their intended script if `ignore-scripts` is set, but they
606
+ will *not* run any pre- or post-scripts.
607
+
608
+
609
+
610
+ #### `audit`
611
+
612
+ * Default: true
613
+ * Type: Boolean
614
+
615
+ When "true" submit audit reports alongside the current npm command to the
616
+ default registry and all registries configured for scopes. See the
617
+ documentation for [`npm audit`](/commands/npm-audit) for details on what is
618
+ submitted.
619
+
620
+
621
+
622
+ #### `bin-links`
623
+
624
+ * Default: true
625
+ * Type: Boolean
626
+
627
+ Tells npm to create symlinks (or `.cmd` shims on Windows) for package
628
+ executables.
629
+
630
+ Set to false to have it not do this. This can be used to work around the
631
+ fact that some file systems don't support symlinks, even on ostensibly Unix
632
+ systems.
633
+
634
+
635
+
636
+ #### `fund`
637
+
638
+ * Default: true
639
+ * Type: Boolean
640
+
641
+ When "true" displays the message at the end of each `npm install`
642
+ acknowledging the number of dependencies looking for funding. See [`npm
643
+ fund`](/commands/npm-fund) for details.
644
+
645
+
646
+
647
+ #### `dry-run`
648
+
649
+ * Default: false
650
+ * Type: Boolean
651
+
652
+ Indicates that you don't want npm to make any changes and that it should
653
+ only report what it would have done. This can be passed into any of the
654
+ commands that modify your local installation, eg, `install`, `update`,
655
+ `dedupe`, `uninstall`, as well as `pack` and `publish`.
656
+
657
+ Note: This is NOT honored by other network related commands, eg `dist-tags`,
658
+ `owner`, etc.
659
+
660
+
661
+
662
+ #### `cpu`
663
+
664
+ * Default: null
665
+ * Type: null or String
666
+
667
+ Override CPU architecture of native modules to install. Acceptable values
668
+ are same as `cpu` field of package.json, which comes from `process.arch`.
669
+
670
+
671
+
672
+ #### `os`
673
+
674
+ * Default: null
675
+ * Type: null or String
676
+
677
+ Override OS of native modules to install. Acceptable values are same as `os`
678
+ field of package.json, which comes from `process.platform`.
679
+
680
+
681
+
682
+ #### `libc`
683
+
684
+ * Default: null
685
+ * Type: null or String
686
+
687
+ Override libc of native modules to install. Acceptable values are same as
688
+ `libc` field of package.json
689
+
690
+
691
+
692
+ #### `workspace`
693
+
694
+ * Default:
695
+ * Type: String (can be set multiple times)
696
+
697
+ Enable running a command in the context of the configured workspaces of the
698
+ current project while filtering by running only the workspaces defined by
699
+ this configuration option.
700
+
701
+ Valid values for the `workspace` config are either:
702
+
703
+ * Workspace names
704
+ * Path to a workspace directory
705
+ * Path to a parent workspace directory (will result in selecting all
706
+ workspaces within that folder)
707
+
708
+ When set for the `npm init` command, this may be set to the folder of a
709
+ workspace which does not yet exist, to create the folder and set it up as a
710
+ brand new workspace within the project.
711
+
712
+ This value is not exported to the environment for child processes.
713
+
714
+ #### `workspaces`
715
+
716
+ * Default: null
717
+ * Type: null or Boolean
718
+
719
+ Set to true to run the command in the context of **all** configured
720
+ workspaces.
721
+
722
+ Explicitly setting this to false will cause commands like `install` to
723
+ ignore workspaces altogether. When not set explicitly:
724
+
725
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
726
+ will link workspaces into the `node_modules` folder. - Commands that do
727
+ other things (test, exec, publish, etc.) will operate on the root project,
728
+ _unless_ one or more workspaces are specified in the `workspace` config.
729
+
730
+ This value is not exported to the environment for child processes.
731
+
732
+ #### `include-workspace-root`
733
+
734
+ * Default: false
735
+ * Type: Boolean
736
+
737
+ Include the workspace root when workspaces are enabled for a command.
738
+
739
+ When false, specifying individual workspaces via the `workspace` config, or
740
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
741
+ the specified workspaces, and not on the root project.
742
+
743
+ This value is not exported to the environment for child processes.
744
+
745
+ #### `install-links`
746
+
747
+ * Default: false
748
+ * Type: Boolean
749
+
750
+ When set file: protocol dependencies will be packed and installed as regular
751
+ dependencies instead of creating a symlink. This option has no effect on
752
+ workspaces.
753
+
754
+
755
+
756
+ ### Algorithm
757
+
758
+ Given a `package{dep}` structure: `A{B,C}, B{C}, C{D}`,
759
+ the npm install algorithm produces:
760
+
761
+ ```bash
762
+ A
763
+ +-- B
764
+ +-- C
765
+ +-- D
766
+ ```
767
+
768
+ That is, the dependency from B to C is satisfied by the fact that A already
769
+ caused C to be installed at a higher level. D is still installed at the top
770
+ level because nothing conflicts with it.
771
+
772
+ For `A{B,C}, B{C,D@1}, C{D@2}`, this algorithm produces:
773
+
774
+ ```bash
775
+ A
776
+ +-- B
777
+ +-- C
778
+ `-- D@2
779
+ +-- D@1
780
+ ```
781
+
782
+ Because B's D@1 will be installed in the top-level, C now has to install
783
+ D@2 privately for itself. This algorithm is deterministic, but different
784
+ trees may be produced if two dependencies are requested for installation in
785
+ a different order.
786
+
787
+ See [folders](/configuring-npm/folders) for a more detailed description of
788
+ the specific folder structures that npm creates.
789
+
790
+ ### See Also
791
+
792
+ * [npm folders](/configuring-npm/folders)
793
+ * [npm update](/commands/npm-update)
794
+ * [npm audit](/commands/npm-audit)
795
+ * [npm fund](/commands/npm-fund)
796
+ * [npm link](/commands/npm-link)
797
+ * [npm rebuild](/commands/npm-rebuild)
798
+ * [npm scripts](/using-npm/scripts)
799
+ * [npm config](/commands/npm-config)
800
+ * [npmrc](/configuring-npm/npmrc)
801
+ * [npm registry](/using-npm/registry)
802
+ * [npm dist-tag](/commands/npm-dist-tag)
803
+ * [npm uninstall](/commands/npm-uninstall)
804
+ * [npm shrinkwrap](/commands/npm-shrinkwrap)
805
+ * [package.json](/configuring-npm/package-json)
806
+ * [workspaces](/using-npm/workspaces)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-link.md ADDED
@@ -0,0 +1,396 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-link
3
+ section: 1
4
+ description: Symlink a package folder
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm link [<package-spec>]
11
+
12
+ alias: ln
13
+ ```
14
+
15
+ ### Description
16
+
17
+ This is handy for installing your own stuff, so that you can work on it and
18
+ test iteratively without having to continually rebuild.
19
+
20
+ Package linking is a two-step process.
21
+
22
+ First, `npm link` in a package folder with no arguments will create a
23
+ symlink in the global folder `{prefix}/lib/node_modules/<package>` that
24
+ links to the package where the `npm link` command was executed. It will
25
+ also link any bins in the package to `{prefix}/bin/{name}`. Note that
26
+ `npm link` uses the global prefix (see `npm prefix -g` for its value).
27
+
28
+ Next, in some other location, `npm link package-name` will create a
29
+ symbolic link from globally-installed `package-name` to `node_modules/` of
30
+ the current folder.
31
+
32
+ Note that `package-name` is taken from `package.json`, _not_ from the
33
+ directory name.
34
+
35
+ The package name can be optionally prefixed with a scope. See
36
+ [`scope`](/using-npm/scope). The scope must be preceded by an @-symbol and
37
+ followed by a slash.
38
+
39
+ When creating tarballs for `npm publish`, the linked packages are
40
+ "snapshotted" to their current state by resolving the symbolic links, if
41
+ they are included in `bundleDependencies`.
42
+
43
+ For example:
44
+
45
+ ```bash
46
+ cd ~/projects/node-redis # go into the package directory
47
+ npm link # creates global link
48
+ cd ~/projects/node-bloggy # go into some other package directory.
49
+ npm link redis # link-install the package
50
+ ```
51
+
52
+ Now, any changes to `~/projects/node-redis` will be reflected in
53
+ `~/projects/node-bloggy/node_modules/node-redis/`. Note that the link
54
+ should be to the package name, not the directory name for that package.
55
+
56
+ You may also shortcut the two steps in one. For example, to do the
57
+ above use-case in a shorter way:
58
+
59
+ ```bash
60
+ cd ~/projects/node-bloggy # go into the dir of your main project
61
+ npm link ../node-redis # link the dir of your dependency
62
+ ```
63
+
64
+ The second line is the equivalent of doing:
65
+
66
+ ```bash
67
+ (cd ../node-redis; npm link)
68
+ npm link redis
69
+ ```
70
+
71
+ That is, it first creates a global link, and then links the global
72
+ installation target into your project's `node_modules` folder.
73
+
74
+ Note that in this case, you are referring to the directory name,
75
+ `node-redis`, rather than the package name `redis`.
76
+
77
+ If your linked package is scoped (see [`scope`](/using-npm/scope)) your
78
+ link command must include that scope, e.g.
79
+
80
+ ```bash
81
+ npm link @myorg/privatepackage
82
+ ```
83
+
84
+ ### Caveat
85
+
86
+ Note that package dependencies linked in this way are _not_ saved to
87
+ `package.json` by default, on the assumption that the intention is to have
88
+ a link stand in for a regular non-link dependency. Otherwise, for example,
89
+ if you depend on `redis@^3.0.1`, and ran `npm link redis`, it would replace
90
+ the `^3.0.1` dependency with `file:../path/to/node-redis`, which you
91
+ probably don't want! Additionally, other users or developers on your
92
+ project would run into issues if they do not have their folders set up
93
+ exactly the same as yours.
94
+
95
+ If you are adding a _new_ dependency as a link, you should add it to the
96
+ relevant metadata by running `npm install <dep> --package-lock-only`.
97
+
98
+ If you _want_ to save the `file:` reference in your `package.json` and
99
+ `package-lock.json` files, you can use `npm link <dep> --save` to do so.
100
+
101
+ ### Workspace Usage
102
+
103
+ `npm link <pkg> --workspace <name>` will link the relevant package as a
104
+ dependency of the specified workspace(s). Note that It may actually be
105
+ linked into the parent project's `node_modules` folder, if there are no
106
+ conflicting dependencies.
107
+
108
+ `npm link --workspace <name>` will create a global link to the specified
109
+ workspace(s).
110
+
111
+ ### Configuration
112
+
113
+ #### `save`
114
+
115
+ * Default: `true` unless when using `npm update` where it defaults to `false`
116
+ * Type: Boolean
117
+
118
+ Save installed packages to a `package.json` file as dependencies.
119
+
120
+ When used with the `npm rm` command, removes the dependency from
121
+ `package.json`.
122
+
123
+ Will also prevent writing to `package-lock.json` if set to `false`.
124
+
125
+
126
+
127
+ #### `save-exact`
128
+
129
+ * Default: false
130
+ * Type: Boolean
131
+
132
+ Dependencies saved to package.json will be configured with an exact version
133
+ rather than using npm's default semver range operator.
134
+
135
+
136
+
137
+ #### `global`
138
+
139
+ * Default: false
140
+ * Type: Boolean
141
+
142
+ Operates in "global" mode, so that packages are installed into the `prefix`
143
+ folder instead of the current working directory. See
144
+ [folders](/configuring-npm/folders) for more on the differences in behavior.
145
+
146
+ * packages are installed into the `{prefix}/lib/node_modules` folder, instead
147
+ of the current working directory.
148
+ * bin files are linked to `{prefix}/bin`
149
+ * man pages are linked to `{prefix}/share/man`
150
+
151
+
152
+
153
+ #### `install-strategy`
154
+
155
+ * Default: "hoisted"
156
+ * Type: "hoisted", "nested", "shallow", or "linked"
157
+
158
+ Sets the strategy for installing packages in node_modules. hoisted
159
+ (default): Install non-duplicated in top-level, and duplicated as necessary
160
+ within directory structure. nested: (formerly --legacy-bundling) install in
161
+ place, no hoisting. shallow (formerly --global-style) only install direct
162
+ deps at top-level. linked: (experimental) install in node_modules/.store,
163
+ link in place, unhoisted.
164
+
165
+
166
+
167
+ #### `legacy-bundling`
168
+
169
+ * Default: false
170
+ * Type: Boolean
171
+ * DEPRECATED: This option has been deprecated in favor of
172
+ `--install-strategy=nested`
173
+
174
+ Instead of hoisting package installs in `node_modules`, install packages in
175
+ the same manner that they are depended on. This may cause very deep
176
+ directory structures and duplicate package installs as there is no
177
+ de-duplicating. Sets `--install-strategy=nested`.
178
+
179
+
180
+
181
+ #### `global-style`
182
+
183
+ * Default: false
184
+ * Type: Boolean
185
+ * DEPRECATED: This option has been deprecated in favor of
186
+ `--install-strategy=shallow`
187
+
188
+ Only install direct dependencies in the top level `node_modules`, but hoist
189
+ on deeper dependencies. Sets `--install-strategy=shallow`.
190
+
191
+
192
+
193
+ #### `strict-peer-deps`
194
+
195
+ * Default: false
196
+ * Type: Boolean
197
+
198
+ If set to `true`, and `--legacy-peer-deps` is not set, then _any_
199
+ conflicting `peerDependencies` will be treated as an install failure, even
200
+ if npm could reasonably guess the appropriate resolution based on non-peer
201
+ dependency relationships.
202
+
203
+ By default, conflicting `peerDependencies` deep in the dependency graph will
204
+ be resolved using the nearest non-peer dependency specification, even if
205
+ doing so will result in some packages receiving a peer dependency outside
206
+ the range set in their package's `peerDependencies` object.
207
+
208
+ When such an override is performed, a warning is printed, explaining the
209
+ conflict and the packages involved. If `--strict-peer-deps` is set, then
210
+ this warning is treated as a failure.
211
+
212
+
213
+
214
+ #### `package-lock`
215
+
216
+ * Default: true
217
+ * Type: Boolean
218
+
219
+ If set to false, then ignore `package-lock.json` files when installing. This
220
+ will also prevent _writing_ `package-lock.json` if `save` is true.
221
+
222
+
223
+
224
+ #### `omit`
225
+
226
+ * Default: 'dev' if the `NODE_ENV` environment variable is set to
227
+ 'production', otherwise empty.
228
+ * Type: "dev", "optional", or "peer" (can be set multiple times)
229
+
230
+ Dependency types to omit from the installation tree on disk.
231
+
232
+ Note that these dependencies _are_ still resolved and added to the
233
+ `package-lock.json` or `npm-shrinkwrap.json` file. They are just not
234
+ physically installed on disk.
235
+
236
+ If a package type appears in both the `--include` and `--omit` lists, then
237
+ it will be included.
238
+
239
+ If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
240
+ variable will be set to `'production'` for all lifecycle scripts.
241
+
242
+
243
+
244
+ #### `include`
245
+
246
+ * Default:
247
+ * Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
248
+
249
+ Option that allows for defining which types of dependencies to install.
250
+
251
+ This is the inverse of `--omit=<type>`.
252
+
253
+ Dependency types specified in `--include` will not be omitted, regardless of
254
+ the order in which omit/include are specified on the command-line.
255
+
256
+
257
+
258
+ #### `ignore-scripts`
259
+
260
+ * Default: false
261
+ * Type: Boolean
262
+
263
+ If true, npm does not run scripts specified in package.json files.
264
+
265
+ Note that commands explicitly intended to run a particular script, such as
266
+ `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
267
+ will still run their intended script if `ignore-scripts` is set, but they
268
+ will *not* run any pre- or post-scripts.
269
+
270
+
271
+
272
+ #### `audit`
273
+
274
+ * Default: true
275
+ * Type: Boolean
276
+
277
+ When "true" submit audit reports alongside the current npm command to the
278
+ default registry and all registries configured for scopes. See the
279
+ documentation for [`npm audit`](/commands/npm-audit) for details on what is
280
+ submitted.
281
+
282
+
283
+
284
+ #### `bin-links`
285
+
286
+ * Default: true
287
+ * Type: Boolean
288
+
289
+ Tells npm to create symlinks (or `.cmd` shims on Windows) for package
290
+ executables.
291
+
292
+ Set to false to have it not do this. This can be used to work around the
293
+ fact that some file systems don't support symlinks, even on ostensibly Unix
294
+ systems.
295
+
296
+
297
+
298
+ #### `fund`
299
+
300
+ * Default: true
301
+ * Type: Boolean
302
+
303
+ When "true" displays the message at the end of each `npm install`
304
+ acknowledging the number of dependencies looking for funding. See [`npm
305
+ fund`](/commands/npm-fund) for details.
306
+
307
+
308
+
309
+ #### `dry-run`
310
+
311
+ * Default: false
312
+ * Type: Boolean
313
+
314
+ Indicates that you don't want npm to make any changes and that it should
315
+ only report what it would have done. This can be passed into any of the
316
+ commands that modify your local installation, eg, `install`, `update`,
317
+ `dedupe`, `uninstall`, as well as `pack` and `publish`.
318
+
319
+ Note: This is NOT honored by other network related commands, eg `dist-tags`,
320
+ `owner`, etc.
321
+
322
+
323
+
324
+ #### `workspace`
325
+
326
+ * Default:
327
+ * Type: String (can be set multiple times)
328
+
329
+ Enable running a command in the context of the configured workspaces of the
330
+ current project while filtering by running only the workspaces defined by
331
+ this configuration option.
332
+
333
+ Valid values for the `workspace` config are either:
334
+
335
+ * Workspace names
336
+ * Path to a workspace directory
337
+ * Path to a parent workspace directory (will result in selecting all
338
+ workspaces within that folder)
339
+
340
+ When set for the `npm init` command, this may be set to the folder of a
341
+ workspace which does not yet exist, to create the folder and set it up as a
342
+ brand new workspace within the project.
343
+
344
+ This value is not exported to the environment for child processes.
345
+
346
+ #### `workspaces`
347
+
348
+ * Default: null
349
+ * Type: null or Boolean
350
+
351
+ Set to true to run the command in the context of **all** configured
352
+ workspaces.
353
+
354
+ Explicitly setting this to false will cause commands like `install` to
355
+ ignore workspaces altogether. When not set explicitly:
356
+
357
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
358
+ will link workspaces into the `node_modules` folder. - Commands that do
359
+ other things (test, exec, publish, etc.) will operate on the root project,
360
+ _unless_ one or more workspaces are specified in the `workspace` config.
361
+
362
+ This value is not exported to the environment for child processes.
363
+
364
+ #### `include-workspace-root`
365
+
366
+ * Default: false
367
+ * Type: Boolean
368
+
369
+ Include the workspace root when workspaces are enabled for a command.
370
+
371
+ When false, specifying individual workspaces via the `workspace` config, or
372
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
373
+ the specified workspaces, and not on the root project.
374
+
375
+ This value is not exported to the environment for child processes.
376
+
377
+ #### `install-links`
378
+
379
+ * Default: false
380
+ * Type: Boolean
381
+
382
+ When set file: protocol dependencies will be packed and installed as regular
383
+ dependencies instead of creating a symlink. This option has no effect on
384
+ workspaces.
385
+
386
+
387
+
388
+ ### See Also
389
+
390
+ * [package spec](/using-npm/package-spec)
391
+ * [npm developers](/using-npm/developers)
392
+ * [package.json](/configuring-npm/package-json)
393
+ * [npm install](/commands/npm-install)
394
+ * [npm folders](/configuring-npm/folders)
395
+ * [npm config](/commands/npm-config)
396
+ * [npmrc](/configuring-npm/npmrc)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-login.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-login
3
+ section: 1
4
+ description: Login to a registry user account
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm login
11
+ ```
12
+
13
+ Note: This command is unaware of workspaces.
14
+
15
+ ### Description
16
+
17
+ Verify a user in the specified registry, and save the credentials to the
18
+ `.npmrc` file. If no registry is specified, the default registry will be
19
+ used (see [`config`](/using-npm/config)).
20
+
21
+ When using `legacy` for your `auth-type`, the username and password, are
22
+ read in from prompts.
23
+
24
+ To reset your password, go to <https://www.npmjs.com/forgot>
25
+
26
+ To change your email address, go to <https://www.npmjs.com/email-edit>
27
+
28
+ You may use this command multiple times with the same user account to
29
+ authorize on a new machine. When authenticating on a new machine,
30
+ the username, password and email address must all match with
31
+ your existing record.
32
+
33
+ ### Configuration
34
+
35
+ #### `registry`
36
+
37
+ * Default: "https://registry.npmjs.org/"
38
+ * Type: URL
39
+
40
+ The base URL of the npm registry.
41
+
42
+
43
+
44
+ #### `scope`
45
+
46
+ * Default: the scope of the current project, if any, or ""
47
+ * Type: String
48
+
49
+ Associate an operation with a scope for a scoped registry.
50
+
51
+ Useful when logging in to or out of a private registry:
52
+
53
+ ```
54
+ # log in, linking the scope to the custom registry
55
+ npm login --scope=@mycorp --registry=https://registry.mycorp.com
56
+
57
+ # log out, removing the link and the auth token
58
+ npm logout --scope=@mycorp
59
+ ```
60
+
61
+ This will cause `@mycorp` to be mapped to the registry for future
62
+ installation of packages specified according to the pattern
63
+ `@mycorp/package`.
64
+
65
+ This will also cause `npm init` to create a scoped package.
66
+
67
+ ```
68
+ # accept all defaults, and create a package named "@foo/whatever",
69
+ # instead of just named "whatever"
70
+ npm init --scope=@foo --yes
71
+ ```
72
+
73
+
74
+
75
+ #### `auth-type`
76
+
77
+ * Default: "web"
78
+ * Type: "legacy" or "web"
79
+
80
+ What authentication strategy to use with `login`. Note that if an `otp`
81
+ config is given, this value will always be set to `legacy`.
82
+
83
+
84
+
85
+ ### See Also
86
+
87
+ * [npm registry](/using-npm/registry)
88
+ * [npm config](/commands/npm-config)
89
+ * [npmrc](/configuring-npm/npmrc)
90
+ * [npm owner](/commands/npm-owner)
91
+ * [npm whoami](/commands/npm-whoami)
92
+ * [npm token](/commands/npm-token)
93
+ * [npm profile](/commands/npm-profile)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-logout.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-logout
3
+ section: 1
4
+ description: Log out of the registry
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm logout
11
+ ```
12
+
13
+ Note: This command is unaware of workspaces.
14
+
15
+ ### Description
16
+
17
+ When logged into a registry that supports token-based authentication, tell
18
+ the server to end this token's session. This will invalidate the token
19
+ everywhere you're using it, not just for the current environment.
20
+
21
+ When logged into a legacy registry that uses username and password
22
+ authentication, this will clear the credentials in your user configuration.
23
+ In this case, it will _only_ affect the current environment.
24
+
25
+ If `--scope` is provided, this will find the credentials for the registry
26
+ connected to that scope, if set.
27
+
28
+ ### Configuration
29
+
30
+ #### `registry`
31
+
32
+ * Default: "https://registry.npmjs.org/"
33
+ * Type: URL
34
+
35
+ The base URL of the npm registry.
36
+
37
+
38
+
39
+ #### `scope`
40
+
41
+ * Default: the scope of the current project, if any, or ""
42
+ * Type: String
43
+
44
+ Associate an operation with a scope for a scoped registry.
45
+
46
+ Useful when logging in to or out of a private registry:
47
+
48
+ ```
49
+ # log in, linking the scope to the custom registry
50
+ npm login --scope=@mycorp --registry=https://registry.mycorp.com
51
+
52
+ # log out, removing the link and the auth token
53
+ npm logout --scope=@mycorp
54
+ ```
55
+
56
+ This will cause `@mycorp` to be mapped to the registry for future
57
+ installation of packages specified according to the pattern
58
+ `@mycorp/package`.
59
+
60
+ This will also cause `npm init` to create a scoped package.
61
+
62
+ ```
63
+ # accept all defaults, and create a package named "@foo/whatever",
64
+ # instead of just named "whatever"
65
+ npm init --scope=@foo --yes
66
+ ```
67
+
68
+
69
+
70
+ ### See Also
71
+
72
+ * [npm adduser](/commands/npm-adduser)
73
+ * [npm registry](/using-npm/registry)
74
+ * [npm config](/commands/npm-config)
75
+ * [npm whoami](/commands/npm-whoami)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-ls.md ADDED
@@ -0,0 +1,294 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-ls
3
+ section: 1
4
+ description: List installed packages
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm ls <package-spec>
11
+
12
+ alias: list
13
+ ```
14
+
15
+ ### Description
16
+
17
+ This command will print to stdout all the versions of packages that are
18
+ installed, as well as their dependencies when `--all` is specified, in a
19
+ tree structure.
20
+
21
+ Note: to get a "bottoms up" view of why a given package is included in the
22
+ tree at all, use [`npm explain`](/commands/npm-explain).
23
+
24
+ Positional arguments are `name@version-range` identifiers, which will limit
25
+ the results to only the paths to the packages named. Note that nested
26
+ packages will *also* show the paths to the specified packages. For
27
+ example, running `npm ls promzard` in npm's source tree will show:
28
+
29
+ ```bash
30
+ npm@10.9.4 /path/to/npm
31
+ └─┬ init-package-json@0.0.4
32
+ └── promzard@0.1.5
33
+ ```
34
+
35
+ It will print out extraneous, missing, and invalid packages.
36
+
37
+ If a project specifies git urls for dependencies these are shown
38
+ in parentheses after the `name@version` to make it easier for users to
39
+ recognize potential forks of a project.
40
+
41
+ The tree shown is the logical dependency tree, based on package
42
+ dependencies, not the physical layout of your `node_modules` folder.
43
+
44
+ When run as `ll` or `la`, it shows extended information by default.
45
+
46
+ ### Note: Design Changes Pending
47
+
48
+ The `npm ls` command's output and behavior made a _ton_ of sense when npm
49
+ created a `node_modules` folder that naively nested every dependency. In
50
+ such a case, the logical dependency graph and physical tree of packages on
51
+ disk would be roughly identical.
52
+
53
+ With the advent of automatic install-time deduplication of dependencies in
54
+ npm v3, the `ls` output was modified to display the logical dependency
55
+ graph as a tree structure, since this was more useful to most users.
56
+ However, without using `npm ls -l`, it became impossible to show _where_ a
57
+ package was actually installed much of the time!
58
+
59
+ With the advent of automatic installation of `peerDependencies` in npm v7,
60
+ this gets even more curious, as `peerDependencies` are logically
61
+ "underneath" their dependents in the dependency graph, but are always
62
+ physically at or above their location on disk.
63
+
64
+ Also, in the years since npm got an `ls` command (in version 0.0.2!),
65
+ dependency graphs have gotten much larger as a general rule. Therefore, in
66
+ order to avoid dumping an excessive amount of content to the terminal, `npm
67
+ ls` now only shows the _top_ level dependencies, unless `--all` is
68
+ provided.
69
+
70
+ A thorough re-examination of the use cases, intention, behavior, and output
71
+ of this command, is currently underway. Expect significant changes to at
72
+ least the default human-readable `npm ls` output in npm v8.
73
+
74
+ ### Configuration
75
+
76
+ #### `all`
77
+
78
+ * Default: false
79
+ * Type: Boolean
80
+
81
+ When running `npm outdated` and `npm ls`, setting `--all` will show all
82
+ outdated or installed packages, rather than only those directly depended
83
+ upon by the current project.
84
+
85
+
86
+
87
+ #### `json`
88
+
89
+ * Default: false
90
+ * Type: Boolean
91
+
92
+ Whether or not to output JSON data, rather than the normal output.
93
+
94
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
95
+ saving them to your `package.json`.
96
+
97
+ Not supported by all npm commands.
98
+
99
+
100
+
101
+ #### `long`
102
+
103
+ * Default: false
104
+ * Type: Boolean
105
+
106
+ Show extended information in `ls`, `search`, and `help-search`.
107
+
108
+
109
+
110
+ #### `parseable`
111
+
112
+ * Default: false
113
+ * Type: Boolean
114
+
115
+ Output parseable results from commands that write to standard output. For
116
+ `npm search`, this will be tab-separated table format.
117
+
118
+
119
+
120
+ #### `global`
121
+
122
+ * Default: false
123
+ * Type: Boolean
124
+
125
+ Operates in "global" mode, so that packages are installed into the `prefix`
126
+ folder instead of the current working directory. See
127
+ [folders](/configuring-npm/folders) for more on the differences in behavior.
128
+
129
+ * packages are installed into the `{prefix}/lib/node_modules` folder, instead
130
+ of the current working directory.
131
+ * bin files are linked to `{prefix}/bin`
132
+ * man pages are linked to `{prefix}/share/man`
133
+
134
+
135
+
136
+ #### `depth`
137
+
138
+ * Default: `Infinity` if `--all` is set, otherwise `1`
139
+ * Type: null or Number
140
+
141
+ The depth to go when recursing packages for `npm ls`.
142
+
143
+ If not set, `npm ls` will show only the immediate dependencies of the root
144
+ project. If `--all` is set, then npm will show all dependencies by default.
145
+
146
+
147
+
148
+ #### `omit`
149
+
150
+ * Default: 'dev' if the `NODE_ENV` environment variable is set to
151
+ 'production', otherwise empty.
152
+ * Type: "dev", "optional", or "peer" (can be set multiple times)
153
+
154
+ Dependency types to omit from the installation tree on disk.
155
+
156
+ Note that these dependencies _are_ still resolved and added to the
157
+ `package-lock.json` or `npm-shrinkwrap.json` file. They are just not
158
+ physically installed on disk.
159
+
160
+ If a package type appears in both the `--include` and `--omit` lists, then
161
+ it will be included.
162
+
163
+ If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
164
+ variable will be set to `'production'` for all lifecycle scripts.
165
+
166
+
167
+
168
+ #### `include`
169
+
170
+ * Default:
171
+ * Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
172
+
173
+ Option that allows for defining which types of dependencies to install.
174
+
175
+ This is the inverse of `--omit=<type>`.
176
+
177
+ Dependency types specified in `--include` will not be omitted, regardless of
178
+ the order in which omit/include are specified on the command-line.
179
+
180
+
181
+
182
+ #### `link`
183
+
184
+ * Default: false
185
+ * Type: Boolean
186
+
187
+ Used with `npm ls`, limiting output to only those packages that are linked.
188
+
189
+
190
+
191
+ #### `package-lock-only`
192
+
193
+ * Default: false
194
+ * Type: Boolean
195
+
196
+ If set to true, the current operation will only use the `package-lock.json`,
197
+ ignoring `node_modules`.
198
+
199
+ For `update` this means only the `package-lock.json` will be updated,
200
+ instead of checking `node_modules` and downloading dependencies.
201
+
202
+ For `list` this means the output will be based on the tree described by the
203
+ `package-lock.json`, rather than the contents of `node_modules`.
204
+
205
+
206
+
207
+ #### `unicode`
208
+
209
+ * Default: false on windows, true on mac/unix systems with a unicode locale,
210
+ as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
211
+ * Type: Boolean
212
+
213
+ When set to true, npm uses unicode characters in the tree output. When
214
+ false, it uses ascii characters instead of unicode glyphs.
215
+
216
+
217
+
218
+ #### `workspace`
219
+
220
+ * Default:
221
+ * Type: String (can be set multiple times)
222
+
223
+ Enable running a command in the context of the configured workspaces of the
224
+ current project while filtering by running only the workspaces defined by
225
+ this configuration option.
226
+
227
+ Valid values for the `workspace` config are either:
228
+
229
+ * Workspace names
230
+ * Path to a workspace directory
231
+ * Path to a parent workspace directory (will result in selecting all
232
+ workspaces within that folder)
233
+
234
+ When set for the `npm init` command, this may be set to the folder of a
235
+ workspace which does not yet exist, to create the folder and set it up as a
236
+ brand new workspace within the project.
237
+
238
+ This value is not exported to the environment for child processes.
239
+
240
+ #### `workspaces`
241
+
242
+ * Default: null
243
+ * Type: null or Boolean
244
+
245
+ Set to true to run the command in the context of **all** configured
246
+ workspaces.
247
+
248
+ Explicitly setting this to false will cause commands like `install` to
249
+ ignore workspaces altogether. When not set explicitly:
250
+
251
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
252
+ will link workspaces into the `node_modules` folder. - Commands that do
253
+ other things (test, exec, publish, etc.) will operate on the root project,
254
+ _unless_ one or more workspaces are specified in the `workspace` config.
255
+
256
+ This value is not exported to the environment for child processes.
257
+
258
+ #### `include-workspace-root`
259
+
260
+ * Default: false
261
+ * Type: Boolean
262
+
263
+ Include the workspace root when workspaces are enabled for a command.
264
+
265
+ When false, specifying individual workspaces via the `workspace` config, or
266
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
267
+ the specified workspaces, and not on the root project.
268
+
269
+ This value is not exported to the environment for child processes.
270
+
271
+ #### `install-links`
272
+
273
+ * Default: false
274
+ * Type: Boolean
275
+
276
+ When set file: protocol dependencies will be packed and installed as regular
277
+ dependencies instead of creating a symlink. This option has no effect on
278
+ workspaces.
279
+
280
+
281
+
282
+ ### See Also
283
+
284
+ * [package spec](/using-npm/package-spec)
285
+ * [npm explain](/commands/npm-explain)
286
+ * [npm config](/commands/npm-config)
287
+ * [npmrc](/configuring-npm/npmrc)
288
+ * [npm folders](/configuring-npm/folders)
289
+ * [npm explain](/commands/npm-explain)
290
+ * [npm install](/commands/npm-install)
291
+ * [npm link](/commands/npm-link)
292
+ * [npm prune](/commands/npm-prune)
293
+ * [npm outdated](/commands/npm-outdated)
294
+ * [npm update](/commands/npm-update)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-org.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-org
3
+ section: 1
4
+ description: Manage orgs
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm org set orgname username [developer | admin | owner]
11
+ npm org rm orgname username
12
+ npm org ls orgname [<username>]
13
+
14
+ alias: ogr
15
+ ```
16
+
17
+ Note: This command is unaware of workspaces.
18
+
19
+ ### Example
20
+
21
+ Add a new developer to an org:
22
+
23
+ ```bash
24
+ $ npm org set my-org @mx-smith
25
+ ```
26
+
27
+ Add a new admin to an org (or change a developer to an admin):
28
+
29
+ ```bash
30
+ $ npm org set my-org @mx-santos admin
31
+ ```
32
+
33
+ Remove a user from an org:
34
+
35
+ ```bash
36
+ $ npm org rm my-org mx-santos
37
+ ```
38
+
39
+ List all users in an org:
40
+
41
+ ```bash
42
+ $ npm org ls my-org
43
+ ```
44
+
45
+ List all users in JSON format:
46
+
47
+ ```bash
48
+ $ npm org ls my-org --json
49
+ ```
50
+
51
+ See what role a user has in an org:
52
+
53
+ ```bash
54
+ $ npm org ls my-org @mx-santos
55
+ ```
56
+
57
+ ### Description
58
+
59
+ You can use the `npm org` commands to manage and view users of an
60
+ organization. It supports adding and removing users, changing their roles,
61
+ listing them, and finding specific ones and their roles.
62
+
63
+ ### Configuration
64
+
65
+ #### `registry`
66
+
67
+ * Default: "https://registry.npmjs.org/"
68
+ * Type: URL
69
+
70
+ The base URL of the npm registry.
71
+
72
+
73
+
74
+ #### `otp`
75
+
76
+ * Default: null
77
+ * Type: null or String
78
+
79
+ This is a one-time password from a two-factor authenticator. It's needed
80
+ when publishing or changing package permissions with `npm access`.
81
+
82
+ If not set, and a registry response fails with a challenge for a one-time
83
+ password, npm will prompt on the command line for one.
84
+
85
+
86
+
87
+ #### `json`
88
+
89
+ * Default: false
90
+ * Type: Boolean
91
+
92
+ Whether or not to output JSON data, rather than the normal output.
93
+
94
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
95
+ saving them to your `package.json`.
96
+
97
+ Not supported by all npm commands.
98
+
99
+
100
+
101
+ #### `parseable`
102
+
103
+ * Default: false
104
+ * Type: Boolean
105
+
106
+ Output parseable results from commands that write to standard output. For
107
+ `npm search`, this will be tab-separated table format.
108
+
109
+
110
+
111
+ ### See Also
112
+
113
+ * [using orgs](/using-npm/orgs)
114
+ * [Documentation on npm Orgs](https://docs.npmjs.com/orgs/)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-outdated.md ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-outdated
3
+ section: 1
4
+ description: Check for outdated packages
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm outdated [<package-spec> ...]
11
+ ```
12
+
13
+ ### Description
14
+
15
+ This command will check the registry to see if any (or, specific) installed
16
+ packages are currently outdated.
17
+
18
+ By default, only the direct dependencies of the root project and direct
19
+ dependencies of your configured *workspaces* are shown.
20
+ Use `--all` to find all outdated meta-dependencies as well.
21
+
22
+ In the output:
23
+
24
+ * `wanted` is the maximum version of the package that satisfies the semver
25
+ range specified in `package.json`. If there's no available semver range
26
+ (i.e. you're running `npm outdated --global`, or the package isn't
27
+ included in `package.json`), then `wanted` shows the currently-installed
28
+ version.
29
+ * `latest` is the version of the package tagged as latest in the registry.
30
+ Running `npm publish` with no special configuration will publish the
31
+ package with a dist-tag of `latest`. This may or may not be the maximum
32
+ version of the package, or the most-recently published version of the
33
+ package, depending on how the package's developer manages the latest
34
+ [dist-tag](/commands/npm-dist-tag).
35
+ * `location` is where in the physical tree the package is located.
36
+ * `depended by` shows which package depends on the displayed dependency
37
+ * `package type` (when using `--long` / `-l`) tells you whether this
38
+ package is a `dependency` or a dev/peer/optional dependency. Packages not
39
+ included in `package.json` are always marked `dependencies`.
40
+ * `homepage` (when using `--long` / `-l`) is the `homepage` value contained
41
+ in the package's packument
42
+ * Red means there's a newer version matching your semver requirements, so
43
+ you should update now.
44
+ * Yellow indicates that there's a newer version _above_ your semver
45
+ requirements (usually new major, or new 0.x minor) so proceed with
46
+ caution.
47
+
48
+ ### An example
49
+
50
+ ```bash
51
+ $ npm outdated
52
+ Package Current Wanted Latest Location Depended by
53
+ glob 5.0.15 5.0.15 6.0.1 node_modules/glob dependent-package-name
54
+ nothingness 0.0.3 git git node_modules/nothingness dependent-package-name
55
+ npm 3.5.1 3.5.2 3.5.1 node_modules/npm dependent-package-name
56
+ local-dev 0.0.3 linked linked local-dev dependent-package-name
57
+ once 1.3.2 1.3.3 1.3.3 node_modules/once dependent-package-name
58
+ ```
59
+
60
+ With these `dependencies`:
61
+ ```json
62
+ {
63
+ "glob": "^5.0.15",
64
+ "nothingness": "github:othiym23/nothingness#master",
65
+ "npm": "^3.5.1",
66
+ "once": "^1.3.1"
67
+ }
68
+ ```
69
+
70
+ A few things to note:
71
+
72
+ * `glob` requires `^5`, which prevents npm from installing `glob@6`, which
73
+ is outside the semver range.
74
+ * Git dependencies will always be reinstalled, because of how they're
75
+ specified. The installed committish might satisfy the dependency
76
+ specifier (if it's something immutable, like a commit SHA), or it might
77
+ not, so `npm outdated` and `npm update` have to fetch Git repos to check.
78
+ This is why currently doing a reinstall of a Git dependency always forces
79
+ a new clone and install.
80
+ * `npm@3.5.2` is marked as "wanted", but "latest" is `npm@3.5.1` because
81
+ npm uses dist-tags to manage its `latest` and `next` release channels.
82
+ `npm update` will install the _newest_ version, but `npm install npm`
83
+ (with no semver range) will install whatever's tagged as `latest`.
84
+ * `once` is just plain out of date. Reinstalling `node_modules` from
85
+ scratch or running `npm update` will bring it up to spec.
86
+
87
+ ### Configuration
88
+
89
+ #### `all`
90
+
91
+ * Default: false
92
+ * Type: Boolean
93
+
94
+ When running `npm outdated` and `npm ls`, setting `--all` will show all
95
+ outdated or installed packages, rather than only those directly depended
96
+ upon by the current project.
97
+
98
+
99
+
100
+ #### `json`
101
+
102
+ * Default: false
103
+ * Type: Boolean
104
+
105
+ Whether or not to output JSON data, rather than the normal output.
106
+
107
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
108
+ saving them to your `package.json`.
109
+
110
+ Not supported by all npm commands.
111
+
112
+
113
+
114
+ #### `long`
115
+
116
+ * Default: false
117
+ * Type: Boolean
118
+
119
+ Show extended information in `ls`, `search`, and `help-search`.
120
+
121
+
122
+
123
+ #### `parseable`
124
+
125
+ * Default: false
126
+ * Type: Boolean
127
+
128
+ Output parseable results from commands that write to standard output. For
129
+ `npm search`, this will be tab-separated table format.
130
+
131
+
132
+
133
+ #### `global`
134
+
135
+ * Default: false
136
+ * Type: Boolean
137
+
138
+ Operates in "global" mode, so that packages are installed into the `prefix`
139
+ folder instead of the current working directory. See
140
+ [folders](/configuring-npm/folders) for more on the differences in behavior.
141
+
142
+ * packages are installed into the `{prefix}/lib/node_modules` folder, instead
143
+ of the current working directory.
144
+ * bin files are linked to `{prefix}/bin`
145
+ * man pages are linked to `{prefix}/share/man`
146
+
147
+
148
+
149
+ #### `workspace`
150
+
151
+ * Default:
152
+ * Type: String (can be set multiple times)
153
+
154
+ Enable running a command in the context of the configured workspaces of the
155
+ current project while filtering by running only the workspaces defined by
156
+ this configuration option.
157
+
158
+ Valid values for the `workspace` config are either:
159
+
160
+ * Workspace names
161
+ * Path to a workspace directory
162
+ * Path to a parent workspace directory (will result in selecting all
163
+ workspaces within that folder)
164
+
165
+ When set for the `npm init` command, this may be set to the folder of a
166
+ workspace which does not yet exist, to create the folder and set it up as a
167
+ brand new workspace within the project.
168
+
169
+ This value is not exported to the environment for child processes.
170
+
171
+ ### See Also
172
+
173
+ * [package spec](/using-npm/package-spec)
174
+ * [npm update](/commands/npm-update)
175
+ * [npm dist-tag](/commands/npm-dist-tag)
176
+ * [npm registry](/using-npm/registry)
177
+ * [npm folders](/configuring-npm/folders)
178
+ * [npm workspaces](/using-npm/workspaces)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-owner.md ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-owner
3
+ section: 1
4
+ description: Manage package owners
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm owner add <user> <package-spec>
11
+ npm owner rm <user> <package-spec>
12
+ npm owner ls <package-spec>
13
+
14
+ alias: author
15
+ ```
16
+
17
+ ### Description
18
+
19
+ Manage ownership of published packages.
20
+
21
+ * ls: List all the users who have access to modify a package and push new
22
+ versions. Handy when you need to know who to bug for help.
23
+ * add: Add a new user as a maintainer of a package. This user is enabled
24
+ to modify metadata, publish new versions, and add other owners.
25
+ * rm: Remove a user from the package owner list. This immediately revokes
26
+ their privileges.
27
+
28
+ Note that there is only one level of access. Either you can modify a package,
29
+ or you can't. Future versions may contain more fine-grained access levels, but
30
+ that is not implemented at this time.
31
+
32
+ If you have two-factor authentication enabled with `auth-and-writes` (see
33
+ [`npm-profile`](/commands/npm-profile)) then you'll need to go through a second factor
34
+ flow when changing ownership or include an otp on the command line with `--otp`.
35
+
36
+ ### Configuration
37
+
38
+ #### `registry`
39
+
40
+ * Default: "https://registry.npmjs.org/"
41
+ * Type: URL
42
+
43
+ The base URL of the npm registry.
44
+
45
+
46
+
47
+ #### `otp`
48
+
49
+ * Default: null
50
+ * Type: null or String
51
+
52
+ This is a one-time password from a two-factor authenticator. It's needed
53
+ when publishing or changing package permissions with `npm access`.
54
+
55
+ If not set, and a registry response fails with a challenge for a one-time
56
+ password, npm will prompt on the command line for one.
57
+
58
+
59
+
60
+ #### `workspace`
61
+
62
+ * Default:
63
+ * Type: String (can be set multiple times)
64
+
65
+ Enable running a command in the context of the configured workspaces of the
66
+ current project while filtering by running only the workspaces defined by
67
+ this configuration option.
68
+
69
+ Valid values for the `workspace` config are either:
70
+
71
+ * Workspace names
72
+ * Path to a workspace directory
73
+ * Path to a parent workspace directory (will result in selecting all
74
+ workspaces within that folder)
75
+
76
+ When set for the `npm init` command, this may be set to the folder of a
77
+ workspace which does not yet exist, to create the folder and set it up as a
78
+ brand new workspace within the project.
79
+
80
+ This value is not exported to the environment for child processes.
81
+
82
+ #### `workspaces`
83
+
84
+ * Default: null
85
+ * Type: null or Boolean
86
+
87
+ Set to true to run the command in the context of **all** configured
88
+ workspaces.
89
+
90
+ Explicitly setting this to false will cause commands like `install` to
91
+ ignore workspaces altogether. When not set explicitly:
92
+
93
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
94
+ will link workspaces into the `node_modules` folder. - Commands that do
95
+ other things (test, exec, publish, etc.) will operate on the root project,
96
+ _unless_ one or more workspaces are specified in the `workspace` config.
97
+
98
+ This value is not exported to the environment for child processes.
99
+
100
+ ### See Also
101
+
102
+ * [package spec](/using-npm/package-spec)
103
+ * [npm profile](/commands/npm-profile)
104
+ * [npm publish](/commands/npm-publish)
105
+ * [npm registry](/using-npm/registry)
106
+ * [npm adduser](/commands/npm-adduser)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-pack.md ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-pack
3
+ section: 1
4
+ description: Create a tarball from a package
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm pack <package-spec>
11
+ ```
12
+
13
+ ### Configuration
14
+
15
+ #### `dry-run`
16
+
17
+ * Default: false
18
+ * Type: Boolean
19
+
20
+ Indicates that you don't want npm to make any changes and that it should
21
+ only report what it would have done. This can be passed into any of the
22
+ commands that modify your local installation, eg, `install`, `update`,
23
+ `dedupe`, `uninstall`, as well as `pack` and `publish`.
24
+
25
+ Note: This is NOT honored by other network related commands, eg `dist-tags`,
26
+ `owner`, etc.
27
+
28
+
29
+
30
+ #### `json`
31
+
32
+ * Default: false
33
+ * Type: Boolean
34
+
35
+ Whether or not to output JSON data, rather than the normal output.
36
+
37
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
38
+ saving them to your `package.json`.
39
+
40
+ Not supported by all npm commands.
41
+
42
+
43
+
44
+ #### `pack-destination`
45
+
46
+ * Default: "."
47
+ * Type: String
48
+
49
+ Directory in which `npm pack` will save tarballs.
50
+
51
+
52
+
53
+ #### `workspace`
54
+
55
+ * Default:
56
+ * Type: String (can be set multiple times)
57
+
58
+ Enable running a command in the context of the configured workspaces of the
59
+ current project while filtering by running only the workspaces defined by
60
+ this configuration option.
61
+
62
+ Valid values for the `workspace` config are either:
63
+
64
+ * Workspace names
65
+ * Path to a workspace directory
66
+ * Path to a parent workspace directory (will result in selecting all
67
+ workspaces within that folder)
68
+
69
+ When set for the `npm init` command, this may be set to the folder of a
70
+ workspace which does not yet exist, to create the folder and set it up as a
71
+ brand new workspace within the project.
72
+
73
+ This value is not exported to the environment for child processes.
74
+
75
+ #### `workspaces`
76
+
77
+ * Default: null
78
+ * Type: null or Boolean
79
+
80
+ Set to true to run the command in the context of **all** configured
81
+ workspaces.
82
+
83
+ Explicitly setting this to false will cause commands like `install` to
84
+ ignore workspaces altogether. When not set explicitly:
85
+
86
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
87
+ will link workspaces into the `node_modules` folder. - Commands that do
88
+ other things (test, exec, publish, etc.) will operate on the root project,
89
+ _unless_ one or more workspaces are specified in the `workspace` config.
90
+
91
+ This value is not exported to the environment for child processes.
92
+
93
+ #### `include-workspace-root`
94
+
95
+ * Default: false
96
+ * Type: Boolean
97
+
98
+ Include the workspace root when workspaces are enabled for a command.
99
+
100
+ When false, specifying individual workspaces via the `workspace` config, or
101
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
102
+ the specified workspaces, and not on the root project.
103
+
104
+ This value is not exported to the environment for child processes.
105
+
106
+ ### Description
107
+
108
+ For anything that's installable (that is, a package folder, tarball,
109
+ tarball url, git url, name@tag, name@version, name, or scoped name), this
110
+ command will fetch it to the cache, copy the tarball to the current working
111
+ directory as `<name>-<version>.tgz`, and then write the filenames out to
112
+ stdout.
113
+
114
+ If the same package is specified multiple times, then the file will be
115
+ overwritten the second time.
116
+
117
+ If no arguments are supplied, then npm packs the current package folder.
118
+
119
+ ### See Also
120
+
121
+ * [package spec](/using-npm/package-spec)
122
+ * [npm-packlist package](http://npm.im/npm-packlist)
123
+ * [npm cache](/commands/npm-cache)
124
+ * [npm publish](/commands/npm-publish)
125
+ * [npm config](/commands/npm-config)
126
+ * [npmrc](/configuring-npm/npmrc)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-ping.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-ping
3
+ section: 1
4
+ description: Ping npm registry
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm ping
11
+ ```
12
+
13
+ Note: This command is unaware of workspaces.
14
+
15
+ ### Description
16
+
17
+ Ping the configured or given npm registry and verify authentication.
18
+ If it works it will output something like:
19
+
20
+ ```bash
21
+ npm notice PING https://registry.npmjs.org/
22
+ npm notice PONG 255ms
23
+ ```
24
+ otherwise you will get an error:
25
+ ```bash
26
+ npm notice PING http://foo.com/
27
+ npm ERR! code E404
28
+ npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
29
+ ```
30
+
31
+ ### Configuration
32
+
33
+ #### `registry`
34
+
35
+ * Default: "https://registry.npmjs.org/"
36
+ * Type: URL
37
+
38
+ The base URL of the npm registry.
39
+
40
+
41
+
42
+ ### See Also
43
+
44
+ * [npm doctor](/commands/npm-doctor)
45
+ * [npm config](/commands/npm-config)
46
+ * [npmrc](/configuring-npm/npmrc)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-pkg.md ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-pkg
3
+ section: 1
4
+ description: Manages your package.json
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm pkg set <key>=<value> [<key>=<value> ...]
11
+ npm pkg get [<key> [<key> ...]]
12
+ npm pkg delete <key> [<key> ...]
13
+ npm pkg set [<array>[<index>].<key>=<value> ...]
14
+ npm pkg set [<array>[].<key>=<value> ...]
15
+ npm pkg fix
16
+ ```
17
+
18
+ ### Description
19
+
20
+ A command that automates the management of `package.json` files.
21
+ `npm pkg` provide 3 different sub commands that allow you to modify or retrieve
22
+ values for given object keys in your `package.json`.
23
+
24
+ The syntax to retrieve and set fields is a dot separated representation of
25
+ the nested object properties to be found within your `package.json`, it's the
26
+ same notation used in [`npm view`](/commands/npm-view) to retrieve information
27
+ from the registry manifest, below you can find more examples on how to use it.
28
+
29
+ Returned values are always in **json** format.
30
+
31
+ * `npm pkg get <field>`
32
+
33
+ Retrieves a value `key`, defined in your `package.json` file.
34
+
35
+ For example, in order to retrieve the name of the current package, you
36
+ can run:
37
+
38
+ ```bash
39
+ npm pkg get name
40
+ ```
41
+
42
+ It's also possible to retrieve multiple values at once:
43
+
44
+ ```bash
45
+ npm pkg get name version
46
+ ```
47
+
48
+ You can view child fields by separating them with a period. To retrieve
49
+ the value of a test `script` value, you would run the following command:
50
+
51
+ ```bash
52
+ npm pkg get scripts.test
53
+ ```
54
+
55
+ For fields that are arrays, requesting a non-numeric field will return
56
+ all of the values from the objects in the list. For example, to get all
57
+ the contributor emails for a package, you would run:
58
+
59
+ ```bash
60
+ npm pkg get contributors.email
61
+ ```
62
+
63
+ You may also use numeric indices in square braces to specifically select
64
+ an item in an array field. To just get the email address of the first
65
+ contributor in the list, you can run:
66
+
67
+ ```bash
68
+ npm pkg get contributors[0].email
69
+ ```
70
+
71
+ For complex fields you can also name a property in square brackets
72
+ to specifically select a child field. This is especially helpful
73
+ with the exports object:
74
+
75
+ ```bash
76
+ npm pkg get "exports[.].require"
77
+ ```
78
+
79
+ * `npm pkg set <field>=<value>`
80
+
81
+ Sets a `value` in your `package.json` based on the `field` value. When
82
+ saving to your `package.json` file the same set of rules used during
83
+ `npm install` and other cli commands that touches the `package.json` file
84
+ are used, making sure to respect the existing indentation and possibly
85
+ applying some validation prior to saving values to the file.
86
+
87
+ The same syntax used to retrieve values from your package can also be used
88
+ to define new properties or overriding existing ones, below are some
89
+ examples of how the dot separated syntax can be used to edit your
90
+ `package.json` file.
91
+
92
+ Defining a new bin named `mynewcommand` in your `package.json` that points
93
+ to a file `cli.js`:
94
+
95
+ ```bash
96
+ npm pkg set bin.mynewcommand=cli.js
97
+ ```
98
+
99
+ Setting multiple fields at once is also possible:
100
+
101
+ ```bash
102
+ npm pkg set description='Awesome package' engines.node='>=10'
103
+ ```
104
+
105
+ It's also possible to add to array values, for example to add a new
106
+ contributor entry:
107
+
108
+ ```bash
109
+ npm pkg set contributors[0].name='Foo' contributors[0].email='foo@bar.ca'
110
+ ```
111
+
112
+ You may also append items to the end of an array using the special
113
+ empty bracket notation:
114
+
115
+ ```bash
116
+ npm pkg set contributors[].name='Foo' contributors[].name='Bar'
117
+ ```
118
+
119
+ It's also possible to parse values as json prior to saving them to your
120
+ `package.json` file, for example in order to set a `"private": true`
121
+ property:
122
+
123
+ ```bash
124
+ npm pkg set private=true --json
125
+ ```
126
+
127
+ It also enables saving values as numbers:
128
+
129
+ ```bash
130
+ npm pkg set tap.timeout=60 --json
131
+ ```
132
+
133
+ * `npm pkg delete <key>`
134
+
135
+ Deletes a `key` from your `package.json`
136
+
137
+ The same syntax used to set values from your package can also be used
138
+ to remove existing ones. For example, in order to remove a script named
139
+ build:
140
+
141
+ ```bash
142
+ npm pkg delete scripts.build
143
+ ```
144
+
145
+ * `npm pkg fix`
146
+
147
+ Auto corrects common errors in your `package.json`. npm already
148
+ does this during `publish`, which leads to subtle (mostly harmless)
149
+ differences between the contents of your `package.json` file and the
150
+ manifest that npm uses during installation.
151
+
152
+ ### Workspaces support
153
+
154
+ You can set/get/delete items across your configured workspaces by using the
155
+ [`workspace`](/using-npm/config#workspace) or
156
+ [`workspaces`](/using-npm/config#workspaces) config options.
157
+
158
+ For example, setting a `funding` value across all configured workspaces
159
+ of a project:
160
+
161
+ ```bash
162
+ npm pkg set funding=https://example.com --ws
163
+ ```
164
+
165
+ When using `npm pkg get` to retrieve info from your configured workspaces, the
166
+ returned result will be in a json format in which top level keys are the
167
+ names of each workspace, the values of these keys will be the result values
168
+ returned from each of the configured workspaces, e.g:
169
+
170
+ ```
171
+ npm pkg get name version --ws
172
+ {
173
+ "a": {
174
+ "name": "a",
175
+ "version": "1.0.0"
176
+ },
177
+ "b": {
178
+ "name": "b",
179
+ "version": "1.0.0"
180
+ }
181
+ }
182
+ ```
183
+
184
+ ### Configuration
185
+
186
+ #### `force`
187
+
188
+ * Default: false
189
+ * Type: Boolean
190
+
191
+ Removes various protections against unfortunate side effects, common
192
+ mistakes, unnecessary performance degradation, and malicious input.
193
+
194
+ * Allow clobbering non-npm files in global installs.
195
+ * Allow the `npm version` command to work on an unclean git repository.
196
+ * Allow deleting the cache folder with `npm cache clean`.
197
+ * Allow installing packages that have an `engines` declaration requiring a
198
+ different version of npm.
199
+ * Allow installing packages that have an `engines` declaration requiring a
200
+ different version of `node`, even if `--engine-strict` is enabled.
201
+ * Allow `npm audit fix` to install modules outside your stated dependency
202
+ range (including SemVer-major changes).
203
+ * Allow unpublishing all versions of a published package.
204
+ * Allow conflicting peerDependencies to be installed in the root project.
205
+ * Implicitly set `--yes` during `npm init`.
206
+ * Allow clobbering existing values in `npm pkg`
207
+ * Allow unpublishing of entire packages (not just a single version).
208
+
209
+ If you don't have a clear idea of what you want to do, it is strongly
210
+ recommended that you do not use this option!
211
+
212
+
213
+
214
+ #### `json`
215
+
216
+ * Default: false
217
+ * Type: Boolean
218
+
219
+ Whether or not to output JSON data, rather than the normal output.
220
+
221
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
222
+ saving them to your `package.json`.
223
+
224
+ Not supported by all npm commands.
225
+
226
+
227
+
228
+ #### `workspace`
229
+
230
+ * Default:
231
+ * Type: String (can be set multiple times)
232
+
233
+ Enable running a command in the context of the configured workspaces of the
234
+ current project while filtering by running only the workspaces defined by
235
+ this configuration option.
236
+
237
+ Valid values for the `workspace` config are either:
238
+
239
+ * Workspace names
240
+ * Path to a workspace directory
241
+ * Path to a parent workspace directory (will result in selecting all
242
+ workspaces within that folder)
243
+
244
+ When set for the `npm init` command, this may be set to the folder of a
245
+ workspace which does not yet exist, to create the folder and set it up as a
246
+ brand new workspace within the project.
247
+
248
+ This value is not exported to the environment for child processes.
249
+
250
+ #### `workspaces`
251
+
252
+ * Default: null
253
+ * Type: null or Boolean
254
+
255
+ Set to true to run the command in the context of **all** configured
256
+ workspaces.
257
+
258
+ Explicitly setting this to false will cause commands like `install` to
259
+ ignore workspaces altogether. When not set explicitly:
260
+
261
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
262
+ will link workspaces into the `node_modules` folder. - Commands that do
263
+ other things (test, exec, publish, etc.) will operate on the root project,
264
+ _unless_ one or more workspaces are specified in the `workspace` config.
265
+
266
+ This value is not exported to the environment for child processes.
267
+ ## See Also
268
+
269
+ * [npm install](/commands/npm-install)
270
+ * [npm init](/commands/npm-init)
271
+ * [npm config](/commands/npm-config)
272
+ * [workspaces](/using-npm/workspaces)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-prefix.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-prefix
3
+ section: 1
4
+ description: Display prefix
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm prefix [-g]
11
+ ```
12
+
13
+ Note: This command is unaware of workspaces.
14
+
15
+ ### Description
16
+
17
+ Print the local prefix to standard output. This is the closest parent directory
18
+ to contain a `package.json` file or `node_modules` directory, unless `-g` is
19
+ also specified.
20
+
21
+ If `-g` is specified, this will be the value of the global prefix. See
22
+ [`npm config`](/commands/npm-config) for more detail.
23
+
24
+ ### Example
25
+
26
+ ```bash
27
+ npm prefix
28
+ /usr/local/projects/foo
29
+ ```
30
+
31
+ ```bash
32
+ npm prefix -g
33
+ /usr/local
34
+ ```
35
+
36
+ ### Configuration
37
+
38
+ #### `global`
39
+
40
+ * Default: false
41
+ * Type: Boolean
42
+
43
+ Operates in "global" mode, so that packages are installed into the `prefix`
44
+ folder instead of the current working directory. See
45
+ [folders](/configuring-npm/folders) for more on the differences in behavior.
46
+
47
+ * packages are installed into the `{prefix}/lib/node_modules` folder, instead
48
+ of the current working directory.
49
+ * bin files are linked to `{prefix}/bin`
50
+ * man pages are linked to `{prefix}/share/man`
51
+
52
+
53
+
54
+ ### See Also
55
+
56
+ * [npm root](/commands/npm-root)
57
+ * [npm folders](/configuring-npm/folders)
58
+ * [npm config](/commands/npm-config)
59
+ * [npmrc](/configuring-npm/npmrc)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-profile.md ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-profile
3
+ section: 1
4
+ description: Change settings on your registry profile
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm profile enable-2fa [auth-only|auth-and-writes]
11
+ npm profile disable-2fa
12
+ npm profile get [<key>]
13
+ npm profile set <key> <value>
14
+ ```
15
+
16
+ Note: This command is unaware of workspaces.
17
+
18
+ ### Description
19
+
20
+ Change your profile information on the registry. Note that this command
21
+ depends on the registry implementation, so third-party registries may not
22
+ support this interface.
23
+
24
+ * `npm profile get [<property>]`: Display all of the properties of your
25
+ profile, or one or more specific properties. It looks like:
26
+
27
+ ```
28
+ name: example
29
+ email: e@example.com (verified)
30
+ two-factor auth: auth-and-writes
31
+ fullname: Example User
32
+ homepage:
33
+ freenode:
34
+ twitter:
35
+ github:
36
+ created: 2015-02-26T01:38:35.892Z
37
+ updated: 2017-10-02T21:29:45.922Z
38
+ ```
39
+
40
+ * `npm profile set <property> <value>`: Set the value of a profile
41
+ property. You can set the following properties this way: email, fullname,
42
+ homepage, freenode, twitter, github
43
+
44
+ * `npm profile set password`: Change your password. This is interactive,
45
+ you'll be prompted for your current password and a new password. You'll
46
+ also be prompted for an OTP if you have two-factor authentication
47
+ enabled.
48
+
49
+ * `npm profile enable-2fa [auth-and-writes|auth-only]`: Enables two-factor
50
+ authentication. Defaults to `auth-and-writes` mode. Modes are:
51
+ * `auth-only`: Require an OTP when logging in or making changes to your
52
+ account's authentication. The OTP will be required on both the website
53
+ and the command line.
54
+ * `auth-and-writes`: Requires an OTP at all the times `auth-only` does,
55
+ and also requires one when publishing a module, setting the `latest`
56
+ dist-tag, or changing access via `npm access` and `npm owner`.
57
+
58
+ * `npm profile disable-2fa`: Disables two-factor authentication.
59
+
60
+ ### Details
61
+
62
+ Some of these commands may not be available on non npmjs.com registries.
63
+
64
+ ### Configuration
65
+
66
+ #### `registry`
67
+
68
+ * Default: "https://registry.npmjs.org/"
69
+ * Type: URL
70
+
71
+ The base URL of the npm registry.
72
+
73
+
74
+
75
+ #### `json`
76
+
77
+ * Default: false
78
+ * Type: Boolean
79
+
80
+ Whether or not to output JSON data, rather than the normal output.
81
+
82
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
83
+ saving them to your `package.json`.
84
+
85
+ Not supported by all npm commands.
86
+
87
+
88
+
89
+ #### `parseable`
90
+
91
+ * Default: false
92
+ * Type: Boolean
93
+
94
+ Output parseable results from commands that write to standard output. For
95
+ `npm search`, this will be tab-separated table format.
96
+
97
+
98
+
99
+ #### `otp`
100
+
101
+ * Default: null
102
+ * Type: null or String
103
+
104
+ This is a one-time password from a two-factor authenticator. It's needed
105
+ when publishing or changing package permissions with `npm access`.
106
+
107
+ If not set, and a registry response fails with a challenge for a one-time
108
+ password, npm will prompt on the command line for one.
109
+
110
+
111
+
112
+ ### See Also
113
+
114
+ * [npm adduser](/commands/npm-adduser)
115
+ * [npm registry](/using-npm/registry)
116
+ * [npm config](/commands/npm-config)
117
+ * [npmrc](/configuring-npm/npmrc)
118
+ * [npm owner](/commands/npm-owner)
119
+ * [npm whoami](/commands/npm-whoami)
120
+ * [npm token](/commands/npm-token)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-prune.md ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-prune
3
+ section: 1
4
+ description: Remove extraneous packages
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm prune [[<@scope>/]<pkg>...]
11
+ ```
12
+
13
+ ### Description
14
+
15
+ This command removes "extraneous" packages. If a package name is provided,
16
+ then only packages matching one of the supplied names are removed.
17
+
18
+ Extraneous packages are those present in the `node_modules` folder that are
19
+ not listed as any package's dependency list.
20
+
21
+ If the `--omit=dev` flag is specified or the `NODE_ENV` environment
22
+ variable is set to `production`, this command will remove the packages
23
+ specified in your `devDependencies`.
24
+
25
+ If the `--dry-run` flag is used then no changes will actually be made.
26
+
27
+ If the `--json` flag is used, then the changes `npm prune` made (or would
28
+ have made with `--dry-run`) are printed as a JSON object.
29
+
30
+ In normal operation, extraneous modules are pruned automatically, so you'll
31
+ only need this command with the `--production` flag. However, in the real
32
+ world, operation is not always "normal". When crashes or mistakes happen,
33
+ this command can help clean up any resulting garbage.
34
+
35
+ ### Configuration
36
+
37
+ #### `omit`
38
+
39
+ * Default: 'dev' if the `NODE_ENV` environment variable is set to
40
+ 'production', otherwise empty.
41
+ * Type: "dev", "optional", or "peer" (can be set multiple times)
42
+
43
+ Dependency types to omit from the installation tree on disk.
44
+
45
+ Note that these dependencies _are_ still resolved and added to the
46
+ `package-lock.json` or `npm-shrinkwrap.json` file. They are just not
47
+ physically installed on disk.
48
+
49
+ If a package type appears in both the `--include` and `--omit` lists, then
50
+ it will be included.
51
+
52
+ If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
53
+ variable will be set to `'production'` for all lifecycle scripts.
54
+
55
+
56
+
57
+ #### `include`
58
+
59
+ * Default:
60
+ * Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
61
+
62
+ Option that allows for defining which types of dependencies to install.
63
+
64
+ This is the inverse of `--omit=<type>`.
65
+
66
+ Dependency types specified in `--include` will not be omitted, regardless of
67
+ the order in which omit/include are specified on the command-line.
68
+
69
+
70
+
71
+ #### `dry-run`
72
+
73
+ * Default: false
74
+ * Type: Boolean
75
+
76
+ Indicates that you don't want npm to make any changes and that it should
77
+ only report what it would have done. This can be passed into any of the
78
+ commands that modify your local installation, eg, `install`, `update`,
79
+ `dedupe`, `uninstall`, as well as `pack` and `publish`.
80
+
81
+ Note: This is NOT honored by other network related commands, eg `dist-tags`,
82
+ `owner`, etc.
83
+
84
+
85
+
86
+ #### `json`
87
+
88
+ * Default: false
89
+ * Type: Boolean
90
+
91
+ Whether or not to output JSON data, rather than the normal output.
92
+
93
+ * In `npm pkg set` it enables parsing set values with JSON.parse() before
94
+ saving them to your `package.json`.
95
+
96
+ Not supported by all npm commands.
97
+
98
+
99
+
100
+ #### `foreground-scripts`
101
+
102
+ * Default: `false` unless when using `npm pack` or `npm publish` where it
103
+ defaults to `true`
104
+ * Type: Boolean
105
+
106
+ Run all build scripts (ie, `preinstall`, `install`, and `postinstall`)
107
+ scripts for installed packages in the foreground process, sharing standard
108
+ input, output, and error with the main npm process.
109
+
110
+ Note that this will generally make installs run slower, and be much noisier,
111
+ but can be useful for debugging.
112
+
113
+
114
+
115
+ #### `ignore-scripts`
116
+
117
+ * Default: false
118
+ * Type: Boolean
119
+
120
+ If true, npm does not run scripts specified in package.json files.
121
+
122
+ Note that commands explicitly intended to run a particular script, such as
123
+ `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
124
+ will still run their intended script if `ignore-scripts` is set, but they
125
+ will *not* run any pre- or post-scripts.
126
+
127
+
128
+
129
+ #### `workspace`
130
+
131
+ * Default:
132
+ * Type: String (can be set multiple times)
133
+
134
+ Enable running a command in the context of the configured workspaces of the
135
+ current project while filtering by running only the workspaces defined by
136
+ this configuration option.
137
+
138
+ Valid values for the `workspace` config are either:
139
+
140
+ * Workspace names
141
+ * Path to a workspace directory
142
+ * Path to a parent workspace directory (will result in selecting all
143
+ workspaces within that folder)
144
+
145
+ When set for the `npm init` command, this may be set to the folder of a
146
+ workspace which does not yet exist, to create the folder and set it up as a
147
+ brand new workspace within the project.
148
+
149
+ This value is not exported to the environment for child processes.
150
+
151
+ #### `workspaces`
152
+
153
+ * Default: null
154
+ * Type: null or Boolean
155
+
156
+ Set to true to run the command in the context of **all** configured
157
+ workspaces.
158
+
159
+ Explicitly setting this to false will cause commands like `install` to
160
+ ignore workspaces altogether. When not set explicitly:
161
+
162
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
163
+ will link workspaces into the `node_modules` folder. - Commands that do
164
+ other things (test, exec, publish, etc.) will operate on the root project,
165
+ _unless_ one or more workspaces are specified in the `workspace` config.
166
+
167
+ This value is not exported to the environment for child processes.
168
+
169
+ #### `include-workspace-root`
170
+
171
+ * Default: false
172
+ * Type: Boolean
173
+
174
+ Include the workspace root when workspaces are enabled for a command.
175
+
176
+ When false, specifying individual workspaces via the `workspace` config, or
177
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
178
+ the specified workspaces, and not on the root project.
179
+
180
+ This value is not exported to the environment for child processes.
181
+
182
+ #### `install-links`
183
+
184
+ * Default: false
185
+ * Type: Boolean
186
+
187
+ When set file: protocol dependencies will be packed and installed as regular
188
+ dependencies instead of creating a symlink. This option has no effect on
189
+ workspaces.
190
+
191
+
192
+
193
+ ### See Also
194
+
195
+ * [npm uninstall](/commands/npm-uninstall)
196
+ * [npm folders](/configuring-npm/folders)
197
+ * [npm ls](/commands/npm-ls)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-publish.md ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-publish
3
+ section: 1
4
+ description: Publish a package
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm publish <package-spec>
11
+ ```
12
+
13
+ ### Description
14
+
15
+ Publishes a package to the registry so that it can be installed by name.
16
+
17
+ By default npm will publish to the public registry. This can be
18
+ overridden by specifying a different default registry or using a
19
+ [`scope`](/using-npm/scope) in the name, combined with a
20
+ scope-configured registry (see
21
+ [`package.json`](/configuring-npm/package-json)).
22
+
23
+
24
+ A `package` is interpreted the same way as other commands (like
25
+ `npm install`) and can be:
26
+
27
+ * a) a folder containing a program described by a
28
+ [`package.json`](/configuring-npm/package-json) file
29
+ * b) a gzipped tarball containing (a)
30
+ * c) a url that resolves to (b)
31
+ * d) a `<name>@<version>` that is published on the registry (see
32
+ [`registry`](/using-npm/registry)) with (c)
33
+ * e) a `<name>@<tag>` (see [`npm dist-tag`](/commands/npm-dist-tag)) that
34
+ points to (d)
35
+ * f) a `<name>` that has a "latest" tag satisfying (e)
36
+ * g) a `<git remote url>` that resolves to (a)
37
+
38
+ The publish will fail if the package name and version combination already
39
+ exists in the specified registry.
40
+
41
+ Once a package is published with a given name and version, that specific
42
+ name and version combination can never be used again, even if it is removed
43
+ with [`npm unpublish`](/commands/npm-unpublish).
44
+
45
+ As of `npm@5`, both a sha1sum and an integrity field with a sha512sum of the
46
+ tarball will be submitted to the registry during publication. Subsequent
47
+ installs will use the strongest supported algorithm to verify downloads.
48
+
49
+ Similar to `--dry-run` see [`npm pack`](/commands/npm-pack), which figures
50
+ out the files to be included and packs them into a tarball to be uploaded
51
+ to the registry.
52
+
53
+ ### Files included in package
54
+
55
+ To see what will be included in your package, run `npm pack --dry-run`. All
56
+ files are included by default, with the following exceptions:
57
+
58
+ - Certain files that are relevant to package installation and distribution
59
+ are always included. For example, `package.json`, `README.md`,
60
+ `LICENSE`, and so on.
61
+
62
+ - If there is a "files" list in
63
+ [`package.json`](/configuring-npm/package-json), then only the files
64
+ specified will be included. (If directories are specified, then they
65
+ will be walked recursively and their contents included, subject to the
66
+ same ignore rules.)
67
+
68
+ - If there is a `.gitignore` or `.npmignore` file, then ignored files in
69
+ that and all child directories will be excluded from the package. If
70
+ _both_ files exist, then the `.gitignore` is ignored, and only the
71
+ `.npmignore` is used.
72
+
73
+ `.npmignore` files follow the [same pattern
74
+ rules](https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#_ignoring)
75
+ as `.gitignore` files
76
+
77
+ - If the file matches certain patterns, then it will _never_ be included,
78
+ unless explicitly added to the `"files"` list in `package.json`, or
79
+ un-ignored with a `!` rule in a `.npmignore` or `.gitignore` file.
80
+
81
+ - Symbolic links are never included in npm packages.
82
+
83
+
84
+ See [`developers`](/using-npm/developers) for full details on what's
85
+ included in the published package, as well as details on how the package is
86
+ built.
87
+
88
+ ### Configuration
89
+
90
+ #### `tag`
91
+
92
+ * Default: "latest"
93
+ * Type: String
94
+
95
+ If you ask npm to install a package and don't tell it a specific version,
96
+ then it will install the specified tag.
97
+
98
+ It is the tag added to the package@version specified in the `npm dist-tag
99
+ add` command, if no explicit tag is given.
100
+
101
+ When used by the `npm diff` command, this is the tag used to fetch the
102
+ tarball that will be compared with the local files by default.
103
+
104
+ If used in the `npm publish` command, this is the tag that will be added to
105
+ the package submitted to the registry.
106
+
107
+
108
+
109
+ #### `access`
110
+
111
+ * Default: 'public' for new packages, existing packages it will not change the
112
+ current level
113
+ * Type: null, "restricted", or "public"
114
+
115
+ If you do not want your scoped package to be publicly viewable (and
116
+ installable) set `--access=restricted`.
117
+
118
+ Unscoped packages can not be set to `restricted`.
119
+
120
+ Note: This defaults to not changing the current access level for existing
121
+ packages. Specifying a value of `restricted` or `public` during publish will
122
+ change the access for an existing package the same way that `npm access set
123
+ status` would.
124
+
125
+
126
+
127
+ #### `dry-run`
128
+
129
+ * Default: false
130
+ * Type: Boolean
131
+
132
+ Indicates that you don't want npm to make any changes and that it should
133
+ only report what it would have done. This can be passed into any of the
134
+ commands that modify your local installation, eg, `install`, `update`,
135
+ `dedupe`, `uninstall`, as well as `pack` and `publish`.
136
+
137
+ Note: This is NOT honored by other network related commands, eg `dist-tags`,
138
+ `owner`, etc.
139
+
140
+
141
+
142
+ #### `otp`
143
+
144
+ * Default: null
145
+ * Type: null or String
146
+
147
+ This is a one-time password from a two-factor authenticator. It's needed
148
+ when publishing or changing package permissions with `npm access`.
149
+
150
+ If not set, and a registry response fails with a challenge for a one-time
151
+ password, npm will prompt on the command line for one.
152
+
153
+
154
+
155
+ #### `workspace`
156
+
157
+ * Default:
158
+ * Type: String (can be set multiple times)
159
+
160
+ Enable running a command in the context of the configured workspaces of the
161
+ current project while filtering by running only the workspaces defined by
162
+ this configuration option.
163
+
164
+ Valid values for the `workspace` config are either:
165
+
166
+ * Workspace names
167
+ * Path to a workspace directory
168
+ * Path to a parent workspace directory (will result in selecting all
169
+ workspaces within that folder)
170
+
171
+ When set for the `npm init` command, this may be set to the folder of a
172
+ workspace which does not yet exist, to create the folder and set it up as a
173
+ brand new workspace within the project.
174
+
175
+ This value is not exported to the environment for child processes.
176
+
177
+ #### `workspaces`
178
+
179
+ * Default: null
180
+ * Type: null or Boolean
181
+
182
+ Set to true to run the command in the context of **all** configured
183
+ workspaces.
184
+
185
+ Explicitly setting this to false will cause commands like `install` to
186
+ ignore workspaces altogether. When not set explicitly:
187
+
188
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
189
+ will link workspaces into the `node_modules` folder. - Commands that do
190
+ other things (test, exec, publish, etc.) will operate on the root project,
191
+ _unless_ one or more workspaces are specified in the `workspace` config.
192
+
193
+ This value is not exported to the environment for child processes.
194
+
195
+ #### `include-workspace-root`
196
+
197
+ * Default: false
198
+ * Type: Boolean
199
+
200
+ Include the workspace root when workspaces are enabled for a command.
201
+
202
+ When false, specifying individual workspaces via the `workspace` config, or
203
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
204
+ the specified workspaces, and not on the root project.
205
+
206
+ This value is not exported to the environment for child processes.
207
+
208
+ #### `provenance`
209
+
210
+ * Default: false
211
+ * Type: Boolean
212
+
213
+ When publishing from a supported cloud CI/CD system, the package will be
214
+ publicly linked to where it was built and published from.
215
+
216
+ This config can not be used with: `provenance-file`
217
+
218
+ #### `provenance-file`
219
+
220
+ * Default: null
221
+ * Type: Path
222
+
223
+ When publishing, the provenance bundle at the given path will be used.
224
+
225
+ This config can not be used with: `provenance`
226
+
227
+ ### See Also
228
+
229
+ * [package spec](/using-npm/package-spec)
230
+ * [npm-packlist package](http://npm.im/npm-packlist)
231
+ * [npm registry](/using-npm/registry)
232
+ * [npm scope](/using-npm/scope)
233
+ * [npm adduser](/commands/npm-adduser)
234
+ * [npm owner](/commands/npm-owner)
235
+ * [npm deprecate](/commands/npm-deprecate)
236
+ * [npm dist-tag](/commands/npm-dist-tag)
237
+ * [npm pack](/commands/npm-pack)
238
+ * [npm profile](/commands/npm-profile)
home/.nvm/versions/node/v22.22.1/lib/node_modules/npm/docs/content/commands/npm-query.md ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: npm-query
3
+ section: 1
4
+ description: Dependency selector query
5
+ ---
6
+
7
+ ### Synopsis
8
+
9
+ ```bash
10
+ npm query <selector>
11
+ ```
12
+
13
+ ### Description
14
+
15
+ The `npm query` command allows for usage of css selectors in order to retrieve
16
+ an array of dependency objects.
17
+
18
+ ### Piping npm query to other commands
19
+
20
+ ```bash
21
+ # find all dependencies with postinstall scripts & uninstall them
22
+ npm query ":attr(scripts, [postinstall])" | jq 'map(.name)|join("\n")' -r | xargs -I {} npm uninstall {}
23
+
24
+ # find all git dependencies & explain who requires them
25
+ npm query ":type(git)" | jq 'map(.name)' | xargs -I {} npm why {}
26
+ ```
27
+
28
+ ### Extended Use Cases & Queries
29
+
30
+ ```stylus
31
+ // all deps
32
+ *
33
+
34
+ // all direct deps
35
+ :root > *
36
+
37
+ // direct production deps
38
+ :root > .prod
39
+
40
+ // direct development deps
41
+ :root > .dev
42
+
43
+ // any peer dep of a direct deps
44
+ :root > * > .peer
45
+
46
+ // any workspace dep
47
+ .workspace
48
+
49
+ // all workspaces that depend on another workspace
50
+ .workspace > .workspace
51
+
52
+ // all workspaces that have peer deps
53
+ .workspace:has(.peer)
54
+
55
+ // any dep named "lodash"
56
+ // equivalent to [name="lodash"]
57
+ #lodash
58
+
59
+ // any deps named "lodash" & within semver range ^"1.2.3"
60
+ #lodash@^1.2.3
61
+ // equivalent to...
62
+ [name="lodash"]:semver(^1.2.3)
63
+
64
+ // get the hoisted node for a given semver range
65
+ #lodash@^1.2.3:not(:deduped)
66
+
67
+ // querying deps with a specific version
68
+ #lodash@2.1.5
69
+ // equivalent to...
70
+ [name="lodash"][version="2.1.5"]
71
+
72
+ // has any deps
73
+ :has(*)
74
+
75
+ // deps with no other deps (ie. "leaf" nodes)
76
+ :empty
77
+
78
+ // manually querying git dependencies
79
+ [repository^=github:],
80
+ [repository^=git:],
81
+ [repository^=https://github.com],
82
+ [repository^=http://github.com],
83
+ [repository^=https://github.com],
84
+ [repository^=+git:...]
85
+
86
+ // querying for all git dependencies
87
+ :type(git)
88
+
89
+ // get production dependencies that aren't also dev deps
90
+ .prod:not(.dev)
91
+
92
+ // get dependencies with specific licenses
93
+ [license=MIT], [license=ISC]
94
+
95
+ // find all packages that have @ruyadorno as a contributor
96
+ :attr(contributors, [email=ruyadorno@github.com])
97
+ ```
98
+
99
+ ### Example Response Output
100
+
101
+ - an array of dependency objects is returned which can contain multiple copies of the same package which may or may not have been linked or deduped
102
+
103
+ ```json
104
+ [
105
+ {
106
+ "name": "",
107
+ "version": "",
108
+ "description": "",
109
+ "homepage": "",
110
+ "bugs": {},
111
+ "author": {},
112
+ "license": {},
113
+ "funding": {},
114
+ "files": [],
115
+ "main": "",
116
+ "browser": "",
117
+ "bin": {},
118
+ "man": [],
119
+ "directories": {},
120
+ "repository": {},
121
+ "scripts": {},
122
+ "config": {},
123
+ "dependencies": {},
124
+ "devDependencies": {},
125
+ "optionalDependencies": {},
126
+ "bundledDependencies": {},
127
+ "peerDependencies": {},
128
+ "peerDependenciesMeta": {},
129
+ "engines": {},
130
+ "os": [],
131
+ "cpu": [],
132
+ "workspaces": {},
133
+ "keywords": [],
134
+ ...
135
+ },
136
+ ...
137
+ ```
138
+
139
+ ### Expecting a certain number of results
140
+
141
+ One common use of `npm query` is to make sure there is only one version of
142
+ a certain dependency in your tree. This is especially common for
143
+ ecosystems like that rely on `typescript` where having state split
144
+ across two different but identically-named packages causes bugs. You
145
+ can use the `--expect-results` or `--expect-result-count` in your setup
146
+ to ensure that npm will exit with an exit code if your tree doesn't look
147
+ like you want it to.
148
+
149
+
150
+ ```sh
151
+ $ npm query '#react' --expect-result-count=1
152
+ ```
153
+
154
+ Perhaps you want to quickly check if there are any production
155
+ dependencies that could be updated:
156
+
157
+ ```sh
158
+ $ npm query ':root>:outdated(in-range).prod' --no-expect-results
159
+ ```
160
+
161
+ ### Package lock only mode
162
+
163
+ If package-lock-only is enabled, only the information in the package lock (or shrinkwrap) is loaded. This means that information from the package.json files of your dependencies will not be included in the result set (e.g. description, homepage, engines).
164
+
165
+ ### Configuration
166
+
167
+ #### `global`
168
+
169
+ * Default: false
170
+ * Type: Boolean
171
+
172
+ Operates in "global" mode, so that packages are installed into the `prefix`
173
+ folder instead of the current working directory. See
174
+ [folders](/configuring-npm/folders) for more on the differences in behavior.
175
+
176
+ * packages are installed into the `{prefix}/lib/node_modules` folder, instead
177
+ of the current working directory.
178
+ * bin files are linked to `{prefix}/bin`
179
+ * man pages are linked to `{prefix}/share/man`
180
+
181
+
182
+
183
+ #### `workspace`
184
+
185
+ * Default:
186
+ * Type: String (can be set multiple times)
187
+
188
+ Enable running a command in the context of the configured workspaces of the
189
+ current project while filtering by running only the workspaces defined by
190
+ this configuration option.
191
+
192
+ Valid values for the `workspace` config are either:
193
+
194
+ * Workspace names
195
+ * Path to a workspace directory
196
+ * Path to a parent workspace directory (will result in selecting all
197
+ workspaces within that folder)
198
+
199
+ When set for the `npm init` command, this may be set to the folder of a
200
+ workspace which does not yet exist, to create the folder and set it up as a
201
+ brand new workspace within the project.
202
+
203
+ This value is not exported to the environment for child processes.
204
+
205
+ #### `workspaces`
206
+
207
+ * Default: null
208
+ * Type: null or Boolean
209
+
210
+ Set to true to run the command in the context of **all** configured
211
+ workspaces.
212
+
213
+ Explicitly setting this to false will cause commands like `install` to
214
+ ignore workspaces altogether. When not set explicitly:
215
+
216
+ - Commands that operate on the `node_modules` tree (install, update, etc.)
217
+ will link workspaces into the `node_modules` folder. - Commands that do
218
+ other things (test, exec, publish, etc.) will operate on the root project,
219
+ _unless_ one or more workspaces are specified in the `workspace` config.
220
+
221
+ This value is not exported to the environment for child processes.
222
+
223
+ #### `include-workspace-root`
224
+
225
+ * Default: false
226
+ * Type: Boolean
227
+
228
+ Include the workspace root when workspaces are enabled for a command.
229
+
230
+ When false, specifying individual workspaces via the `workspace` config, or
231
+ all workspaces via the `workspaces` flag, will cause npm to operate only on
232
+ the specified workspaces, and not on the root project.
233
+
234
+ This value is not exported to the environment for child processes.
235
+
236
+ #### `package-lock-only`
237
+
238
+ * Default: false
239
+ * Type: Boolean
240
+
241
+ If set to true, the current operation will only use the `package-lock.json`,
242
+ ignoring `node_modules`.
243
+
244
+ For `update` this means only the `package-lock.json` will be updated,
245
+ instead of checking `node_modules` and downloading dependencies.
246
+
247
+ For `list` this means the output will be based on the tree described by the
248
+ `package-lock.json`, rather than the contents of `node_modules`.
249
+
250
+
251
+
252
+ #### `expect-results`
253
+
254
+ * Default: null
255
+ * Type: null or Boolean
256
+
257
+ Tells npm whether or not to expect results from the command. Can be either
258
+ true (expect some results) or false (expect no results).
259
+
260
+ This config can not be used with: `expect-result-count`
261
+
262
+ #### `expect-result-count`
263
+
264
+ * Default: null
265
+ * Type: null or Number
266
+
267
+ Tells to expect a specific number of results from the command.
268
+
269
+ This config can not be used with: `expect-results`
270
+ ## See Also
271
+
272
+ * [dependency selectors](/using-npm/dependency-selectors)