| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4823c5e commit e69fc6f
102 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,6 +37,7 @@ If you're looking to manage multiple versions of **`node`** &/or **`npm`**, cons | |||
| 37 | 37 | * [**`nodenv`**](https://github.com/nodenv/nodenv) | |
| 38 | 38 | * [**`asdf-nodejs`**](https://github.com/asdf-vm/asdf-nodejs) | |
| 39 | 39 | * [**`nvm-windows`**](https://github.com/coreybutler/nvm-windows) | |
| 40 | + * [**`fnm`**](https://github.com/Schniz/fnm) | ||
| 40 | 41 | ||
| 41 | 42 | ### Usage | |
| 42 | 43 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ description: Report bugs for a package in a web browser | |||
| 11 | 11 | <!-- see lib/commands/bugs.js --> | |
| 12 | 12 | ||
| 13 | 13 | ```bash | |
| 14 | - npm bugs [<pkgname>] | ||
| 14 | + npm bugs [<pkgname> [<pkgname> ...]] | ||
| 15 | 15 | ||
| 16 | 16 | alias: issues | |
| 17 | 17 | ``` | |
@@ -58,6 +58,68 @@ The base URL of the npm registry. | |||
| 58 | 58 | <!-- automatically generated, do not edit manually --> | |
| 59 | 59 | <!-- see lib/utils/config/definitions.js --> | |
| 60 | 60 | ||
| 61 | + #### `workspace` | ||
| 62 | + | ||
| 63 | + * Default: | ||
| 64 | + * Type: String (can be set multiple times) | ||
| 65 | + | ||
| 66 | + Enable running a command in the context of the configured workspaces of the | ||
| 67 | + current project while filtering by running only the workspaces defined by | ||
| 68 | + this configuration option. | ||
| 69 | + | ||
| 70 | + Valid values for the `workspace` config are either: | ||
| 71 | + | ||
| 72 | + * Workspace names | ||
| 73 | + * Path to a workspace directory | ||
| 74 | + * Path to a parent workspace directory (will result in selecting all | ||
| 75 | + workspaces within that folder) | ||
| 76 | + | ||
| 77 | + When set for the `npm init` command, this may be set to the folder of a | ||
| 78 | + workspace which does not yet exist, to create the folder and set it up as a | ||
| 79 | + brand new workspace within the project. | ||
| 80 | + | ||
| 81 | + This value is not exported to the environment for child processes. | ||
| 82 | + | ||
| 83 | + <!-- automatically generated, do not edit manually --> | ||
| 84 | + <!-- see lib/utils/config/definitions.js --> | ||
| 85 | + | ||
| 86 | + #### `workspaces` | ||
| 87 | + | ||
| 88 | + * Default: null | ||
| 89 | + * Type: null or Boolean | ||
| 90 | + | ||
| 91 | + Set to true to run the command in the context of **all** configured | ||
| 92 | + workspaces. | ||
| 93 | + | ||
| 94 | + Explicitly setting this to false will cause commands like `install` to | ||
| 95 | + ignore workspaces altogether. When not set explicitly: | ||
| 96 | + | ||
| 97 | + - Commands that operate on the `node_modules` tree (install, update, etc.) | ||
| 98 | + will link workspaces into the `node_modules` folder. - Commands that do | ||
| 99 | + other things (test, exec, publish, etc.) will operate on the root project, | ||
| 100 | + _unless_ one or more workspaces are specified in the `workspace` config. | ||
| 101 | + | ||
| 102 | + This value is not exported to the environment for child processes. | ||
| 103 | + | ||
| 104 | + <!-- automatically generated, do not edit manually --> | ||
| 105 | + <!-- see lib/utils/config/definitions.js --> | ||
| 106 | + | ||
| 107 | + #### `include-workspace-root` | ||
| 108 | + | ||
| 109 | + * Default: false | ||
| 110 | + * Type: Boolean | ||
| 111 | + | ||
| 112 | + Include the workspace root when workspaces are enabled for a command. | ||
| 113 | + | ||
| 114 | + When false, specifying individual workspaces via the `workspace` config, or | ||
| 115 | + all workspaces via the `workspaces` flag, will cause npm to operate only on | ||
| 116 | + the specified workspaces, and not on the root project. | ||
| 117 | + | ||
| 118 | + This value is not exported to the environment for child processes. | ||
| 119 | + | ||
| 120 | + <!-- automatically generated, do not edit manually --> | ||
| 121 | + <!-- see lib/utils/config/definitions.js --> | ||
| 122 | + | ||
| 61 | 123 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 62 | 124 | ||
| 63 | 125 | ### See Also | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,6 +46,16 @@ Set to `true` to use default system URL opener. | |||
| 46 | 46 | <!-- automatically generated, do not edit manually --> | |
| 47 | 47 | <!-- see lib/utils/config/definitions.js --> | |
| 48 | 48 | ||
| 49 | + #### `registry` | ||
| 50 | + | ||
| 51 | + * Default: "https://registry.npmjs.org/" | ||
| 52 | + * Type: URL | ||
| 53 | + | ||
| 54 | + The base URL of the npm registry. | ||
| 55 | + | ||
| 56 | + <!-- automatically generated, do not edit manually --> | ||
| 57 | + <!-- see lib/utils/config/definitions.js --> | ||
| 58 | + | ||
| 49 | 59 | #### `workspace` | |
| 50 | 60 | ||
| 51 | 61 | * Default: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,6 +69,20 @@ false, it uses ascii characters instead of unicode glyphs. | |||
| 69 | 69 | <!-- automatically generated, do not edit manually --> | |
| 70 | 70 | <!-- see lib/utils/config/definitions.js --> | |
| 71 | 71 | ||
| 72 | + #### `otp` | ||
| 73 | + | ||
| 74 | + * Default: null | ||
| 75 | + * Type: null or String | ||
| 76 | + | ||
| 77 | + This is a one-time password from a two-factor authenticator. It's needed | ||
| 78 | + when publishing or changing package permissions with `npm access`. | ||
| 79 | + | ||
| 80 | + If not set, and a registry response fails with a challenge for a one-time | ||
| 81 | + password, npm will prompt on the command line for one. | ||
| 82 | + | ||
| 83 | + <!-- automatically generated, do not edit manually --> | ||
| 84 | + <!-- see lib/utils/config/definitions.js --> | ||
| 85 | + | ||
| 72 | 86 | <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> | |
| 73 | 87 | ||
| 74 | 88 | ### See Also | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,6 +68,7 @@ The following shorthands are parsed on the command-line: | |||
| 68 | 68 | * `--desc`: `--description` | |
| 69 | 69 | * `-f`: `--force` | |
| 70 | 70 | * `-g`: `--global` | |
| 71 | + * `--iwr`: `--include-workspace-root` | ||
| 71 | 72 | * `-L`: `--location` | |
| 72 | 73 | * `-d`: `--loglevel info` | |
| 73 | 74 | * `-s`: `--loglevel silent` | |
@@ -1177,6 +1178,19 @@ variable will be set to `'production'` for all lifecycle scripts. | |||
| 1177 | 1178 | <!-- automatically generated, do not edit manually --> | |
| 1178 | 1179 | <!-- see lib/utils/config/definitions.js --> | |
| 1179 | 1180 | ||
| 1181 | + #### `omit-lockfile-registry-resolved` | ||
| 1182 | + | ||
| 1183 | + * Default: false | ||
| 1184 | + * Type: Boolean | ||
| 1185 | + | ||
| 1186 | + This option causes npm to create lock files without a `resolved` key for | ||
| 1187 | + registry dependencies. Subsequent installs will need to resolve tarball | ||
| 1188 | + endpoints with the configured registry, likely resulting in a longer install | ||
| 1189 | + time. | ||
| 1190 | + | ||
| 1191 | + <!-- automatically generated, do not edit manually --> | ||
| 1192 | + <!-- see lib/utils/config/definitions.js --> | ||
| 1193 | + | ||
| 1180 | 1194 | #### `otp` | |
| 1181 | 1195 | ||
| 1182 | 1196 | * Default: null | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -142,14 +142,14 @@ <h1 id="npm-bugs">npm-bugs</h1> | |||
| 142 | 142 | ||
| 143 | 143 | <section id="table_of_contents"> | |
| 144 | 144 | <h2 id="table-of-contents">Table of contents</h2> | |
| 145 | - <div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#browser"><code>browser</code></a></li><li><a href="#registry"><code>registry</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div> | ||
| 145 | + <div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#browser"><code>browser</code></a></li><li><a href="#registry"><code>registry</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div> | ||
| 146 | 146 | </section> | |
| 147 | 147 | ||
| 148 | 148 | <div id="_content"><h3 id="synopsis">Synopsis</h3> | |
| 149 | 149 | <!-- raw HTML omitted --> | |
| 150 | 150 | <!-- raw HTML omitted --> | |
| 151 | 151 | <!-- raw HTML omitted --> | |
| 152 | - <pre lang="bash"><code>npm bugs [<pkgname>] | ||
| 152 | + <pre lang="bash"><code>npm bugs [<pkgname> [<pkgname> ...]] | ||
| 153 | 153 | ||
| 154 | 154 | alias: issues | |
| 155 | 155 | </code></pre> | |
@@ -184,6 +184,57 @@ <h4 id="registry"><code>registry</code></h4> | |||
| 184 | 184 | <p>The base URL of the npm registry.</p> | |
| 185 | 185 | <!-- raw HTML omitted --> | |
| 186 | 186 | <!-- raw HTML omitted --> | |
| 187 | + <h4 id="workspace"><code>workspace</code></h4> | ||
| 188 | + <ul> | ||
| 189 | + <li>Default:</li> | ||
| 190 | + <li>Type: String (can be set multiple times)</li> | ||
| 191 | + </ul> | ||
| 192 | + <p>Enable running a command in the context of the configured workspaces of the | ||
| 193 | + current project while filtering by running only the workspaces defined by | ||
| 194 | + this configuration option.</p> | ||
| 195 | + <p>Valid values for the <code>workspace</code> config are either:</p> | ||
| 196 | + <ul> | ||
| 197 | + <li>Workspace names</li> | ||
| 198 | + <li>Path to a workspace directory</li> | ||
| 199 | + <li>Path to a parent workspace directory (will result in selecting all | ||
| 200 | + workspaces within that folder)</li> | ||
| 201 | + </ul> | ||
| 202 | + <p>When set for the <code>npm init</code> command, this may be set to the folder of a | ||
| 203 | + workspace which does not yet exist, to create the folder and set it up as a | ||
| 204 | + brand new workspace within the project.</p> | ||
| 205 | + <p>This value is not exported to the environment for child processes.</p> | ||
| 206 | + <!-- raw HTML omitted --> | ||
| 207 | + <!-- raw HTML omitted --> | ||
| 208 | + <h4 id="workspaces"><code>workspaces</code></h4> | ||
| 209 | + <ul> | ||
| 210 | + <li>Default: null</li> | ||
| 211 | + <li>Type: null or Boolean</li> | ||
| 212 | + </ul> | ||
| 213 | + <p>Set to true to run the command in the context of <strong>all</strong> configured | ||
| 214 | + workspaces.</p> | ||
| 215 | + <p>Explicitly setting this to false will cause commands like <code>install</code> to | ||
| 216 | + ignore workspaces altogether. When not set explicitly:</p> | ||
| 217 | + <ul> | ||
| 218 | + <li>Commands that operate on the <code>node_modules</code> tree (install, update, etc.) | ||
| 219 | + will link workspaces into the <code>node_modules</code> folder. - Commands that do | ||
| 220 | + other things (test, exec, publish, etc.) will operate on the root project, | ||
| 221 | + <em>unless</em> one or more workspaces are specified in the <code>workspace</code> config.</li> | ||
| 222 | + </ul> | ||
| 223 | + <p>This value is not exported to the environment for child processes.</p> | ||
| 224 | + <!-- raw HTML omitted --> | ||
| 225 | + <!-- raw HTML omitted --> | ||
| 226 | + <h4 id="include-workspace-root"><code>include-workspace-root</code></h4> | ||
| 227 | + <ul> | ||
| 228 | + <li>Default: false</li> | ||
| 229 | + <li>Type: Boolean</li> | ||
| 230 | + </ul> | ||
| 231 | + <p>Include the workspace root when workspaces are enabled for a command.</p> | ||
| 232 | + <p>When false, specifying individual workspaces via the <code>workspace</code> config, or | ||
| 233 | + all workspaces via the <code>workspaces</code> flag, will cause npm to operate only on | ||
| 234 | + the specified workspaces, and not on the root project.</p> | ||
| 235 | + <p>This value is not exported to the environment for child processes.</p> | ||
| 236 | + <!-- raw HTML omitted --> | ||
| 237 | + <!-- raw HTML omitted --> | ||
| 187 | 238 | <!-- raw HTML omitted --> | |
| 188 | 239 | <h3 id="see-also">See Also</h3> | |
| 189 | 240 | <ul> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -166,7 +166,7 @@ <h3 id="description">Description</h3> | |||
| 166 | 166 | the results to only the paths to the packages named. Note that nested | |
| 167 | 167 | packages will <em>also</em> show the paths to the specified packages. For | |
| 168 | 168 | example, running <code>npm ls promzard</code> in npm's source tree will show:</p> | |
| 169 | - <pre lang="bash"><code>npm@8.9.0 /path/to/npm | ||
| 169 | + <pre lang="bash"><code>npm@8.10.0 /path/to/npm | ||
| 170 | 170 | └─┬ init-package-json@0.0.4 | |
| 171 | 171 | └── promzard@0.1.5 | |
| 172 | 172 | </code></pre> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -142,7 +142,7 @@ <h1 id="npm-repo">npm-repo</h1> | |||
| 142 | 142 | ||
| 143 | 143 | <section id="table_of_contents"> | |
| 144 | 144 | <h2 id="table-of-contents">Table of contents</h2> | |
| 145 | - <div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#browser"><code>browser</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div> | ||
| 145 | + <div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#browser"><code>browser</code></a></li><li><a href="#registry"><code>registry</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div> | ||
| 146 | 146 | </section> | |
| 147 | 147 | ||
| 148 | 148 | <div id="_content"><h3 id="synopsis">Synopsis</h3> | |
@@ -174,6 +174,14 @@ <h4 id="browser"><code>browser</code></h4> | |||
| 174 | 174 | <p>Set to <code>true</code> to use default system URL opener.</p> | |
| 175 | 175 | <!-- raw HTML omitted --> | |
| 176 | 176 | <!-- raw HTML omitted --> | |
| 177 | + <h4 id="registry"><code>registry</code></h4> | ||
| 178 | + <ul> | ||
| 179 | + <li>Default: "<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>"</li> | ||
| 180 | + <li>Type: URL</li> | ||
| 181 | + </ul> | ||
| 182 | + <p>The base URL of the npm registry.</p> | ||
| 183 | + <!-- raw HTML omitted --> | ||
| 184 | + <!-- raw HTML omitted --> | ||
| 177 | 185 | <h4 id="workspace"><code>workspace</code></h4> | |
| 178 | 186 | <ul> | |
| 179 | 187 | <li>Default:</li> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -142,7 +142,7 @@ <h1 id="npm-star">npm-star</h1> | |||
| 142 | 142 | ||
| 143 | 143 | <section id="table_of_contents"> | |
| 144 | 144 | <h2 id="table-of-contents">Table of contents</h2> | |
| 145 | - <div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#more">More</a></li><ul><li><a href="#unstar">Unstar</a></li><li><a href="#listing-stars">Listing stars</a></li></ul><li><a href="#configuration">Configuration</a></li><ul><li><a href="#registry"><code>registry</code></a></li><li><a href="#unicode"><code>unicode</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div> | ||
| 145 | + <div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#more">More</a></li><ul><li><a href="#unstar">Unstar</a></li><li><a href="#listing-stars">Listing stars</a></li></ul><li><a href="#configuration">Configuration</a></li><ul><li><a href="#registry"><code>registry</code></a></li><li><a href="#unicode"><code>unicode</code></a></li><li><a href="#otp"><code>otp</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div> | ||
| 146 | 146 | </section> | |
| 147 | 147 | ||
| 148 | 148 | <div id="_content"><h3 id="synopsis">Synopsis</h3> | |
@@ -188,6 +188,17 @@ <h4 id="unicode"><code>unicode</code></h4> | |||
| 188 | 188 | false, it uses ascii characters instead of unicode glyphs.</p> | |
| 189 | 189 | <!-- raw HTML omitted --> | |
| 190 | 190 | <!-- raw HTML omitted --> | |
| 191 | + <h4 id="otp"><code>otp</code></h4> | ||
| 192 | + <ul> | ||
| 193 | + <li>Default: null</li> | ||
| 194 | + <li>Type: null or String</li> | ||
| 195 | + </ul> | ||
| 196 | + <p>This is a one-time password from a two-factor authenticator. It's needed | ||
| 197 | + when publishing or changing package permissions with <code>npm access</code>.</p> | ||
| 198 | + <p>If not set, and a registry response fails with a challenge for a one-time | ||
| 199 | + password, npm will prompt on the command line for one.</p> | ||
| 200 | + <!-- raw HTML omitted --> | ||
| 201 | + <!-- raw HTML omitted --> | ||
| 191 | 202 | <!-- raw HTML omitted --> | |
| 192 | 203 | <h3 id="see-also">See Also</h3> | |
| 193 | 204 | <ul> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -149,7 +149,7 @@ <h2 id="table-of-contents">Table of contents</h2> | |||
| 149 | 149 | <!-- raw HTML omitted --> | |
| 150 | 150 | <!-- raw HTML omitted --> | |
| 151 | 151 | <h3 id="version">Version</h3> | |
| 152 | - <p>8.9.0</p> | ||
| 152 | + <p>8.10.0</p> | ||
| 153 | 153 | <h3 id="description">Description</h3> | |
| 154 | 154 | <p>npm is the package manager for the Node JavaScript platform. It puts | |
| 155 | 155 | modules in place so that node can find them, and manages dependency | |
| Back | FazBrowse Home | New Git URL |
0 commit comments