mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
deps: upgrade npm to 8.12.1
PR-URL: https://github.com/nodejs/node/pull/43301 Reviewed-By: Ruy Adorno <ruyadorno@github.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
This commit is contained in:
1 parent
01e7d1f349
commit
cbb253e61e
153 files changed
+693
-438
No files matched your search
+14
@@ -87,6 +87,20 @@ npm init --scope=@foo --yes
|
||||
```
|
||||
|
||||
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
<!-- see lib/utils/config/definitions.js -->
|
||||
|
||||
#### `auth-type`
|
||||
|
||||
* Default: "legacy"
|
||||
* Type: "legacy", "webauthn", "sso", "saml", or "oauth"
|
||||
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
|
||||
a future version of npm in favor of web-based login.
|
||||
|
||||
What authentication strategy to use with `adduser`/`login`.
|
||||
|
||||
Pass `webauthn` to use a web-based login.
|
||||
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
<!-- see lib/utils/config/definitions.js -->
|
||||
|
||||
|
||||
-2
@@ -34,8 +34,6 @@ Print the folder where npm will install executables.
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -124,8 +124,6 @@ Not supported by all npm commands.
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
-2
@@ -248,8 +248,6 @@ Treat all files as text in `npm diff`.
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
+11
@@ -253,6 +253,17 @@ This value is not exported to the environment for child processes.
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
<!-- see lib/utils/config/definitions.js -->
|
||||
|
||||
#### `workspaces-update`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
If set to true, the npm cli will run an update after operations that may
|
||||
possibly change the workspaces installed to the `node_modules` folder.
|
||||
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
<!-- see lib/utils/config/definitions.js -->
|
||||
|
||||
#### `include-workspace-root`
|
||||
|
||||
* Default: false
|
||||
|
||||
@@ -70,8 +70,6 @@ rather than using npm's default semver range operator.
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -460,8 +460,6 @@ rather than using npm's default semver range operator.
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
-2
@@ -153,8 +153,6 @@ rather than using npm's default semver range operator.
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
-2
@@ -137,8 +137,6 @@ Output parseable results from commands that write to standard output. For
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -150,8 +150,6 @@ Output parseable results from commands that write to standard output. For
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -51,8 +51,6 @@ npm prefix -g
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -42,8 +42,6 @@ will be rebuilt.
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
-2
@@ -41,8 +41,6 @@ echo "Global packages installed in: ${global_node_modules}"
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -188,8 +188,6 @@ Will also prevent writing to `package-lock.json` if set to `false`.
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -643,6 +643,26 @@ git+https://isaacs@github.com/npm/cli.git
|
||||
git://github.com/npm/cli.git#v1.0.27
|
||||
```
|
||||
|
||||
When installing from a `git` repository, the presence of certain fields in the
|
||||
`package.json` will cause npm to believe it needs to perform a build. To do so
|
||||
your repository will be cloned into a temporary directory, all of its deps
|
||||
installed, relevant scripts run, and the resulting directory packed and
|
||||
installed.
|
||||
|
||||
This flow will occur if your git dependency uses `workspaces`, or if any of the
|
||||
following scripts are present:
|
||||
|
||||
* `build`
|
||||
* `prepare`
|
||||
* `prepack`
|
||||
* `preinstall`
|
||||
* `install`
|
||||
* `postinstall`
|
||||
|
||||
If your git repository includes pre-built artifacts, you will likely want to
|
||||
make sure that none of the above scripts are defined, or your dependency
|
||||
will be rebuilt for every installation.
|
||||
|
||||
#### GitHub URLs
|
||||
|
||||
As of version 1.1.65, you can refer to GitHub urls as just "foo":
|
||||
|
||||
+22
-22
@@ -687,6 +687,23 @@ results in no commit being made at all.
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
<!-- see lib/utils/config/definitions.js -->
|
||||
|
||||
#### `global`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
[folders](/configuring-npm/folders) for more on the differences in behavior.
|
||||
|
||||
* packages are installed into the `{prefix}/lib/node_modules` folder, instead
|
||||
of the current working directory.
|
||||
* bin files are linked to `{prefix}/bin`
|
||||
* man pages are linked to `{prefix}/share/man`
|
||||
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
<!-- see lib/utils/config/definitions.js -->
|
||||
|
||||
#### `global-style`
|
||||
|
||||
* Default: false
|
||||
@@ -1891,12 +1908,14 @@ When set to `dev` or `development`, this is an alias for `--include=dev`.
|
||||
#### `auth-type`
|
||||
|
||||
* Default: "legacy"
|
||||
* Type: "legacy", "sso", "saml", or "oauth"
|
||||
* DEPRECATED: This method of SSO/SAML/OAuth is deprecated and will be removed
|
||||
in a future version of npm in favor of web-based login.
|
||||
* Type: "legacy", "webauthn", "sso", "saml", or "oauth"
|
||||
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
|
||||
a future version of npm in favor of web-based login.
|
||||
|
||||
What authentication strategy to use with `adduser`/`login`.
|
||||
|
||||
Pass `webauthn` to use a web-based login.
|
||||
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
<!-- see lib/utils/config/definitions.js -->
|
||||
|
||||
@@ -1933,25 +1952,6 @@ Alias for `--include=dev`.
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
<!-- see lib/utils/config/definitions.js -->
|
||||
|
||||
#### `global`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
|
||||
instead.
|
||||
|
||||
Operates in "global" mode, so that packages are installed into the `prefix`
|
||||
folder instead of the current working directory. See
|
||||
[folders](/configuring-npm/folders) for more on the differences in behavior.
|
||||
|
||||
* packages are installed into the `{prefix}/lib/node_modules` folder, instead
|
||||
of the current working directory.
|
||||
* bin files are linked to `{prefix}/bin`
|
||||
* man pages are linked to `{prefix}/share/man`
|
||||
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
<!-- see lib/utils/config/definitions.js -->
|
||||
|
||||
#### `init.author.email`
|
||||
|
||||
* Default: ""
|
||||
|
||||
+6
@@ -203,6 +203,12 @@ will default the `start` command to `node server.js`. `prestart` and
|
||||
* `test`
|
||||
* `posttest`
|
||||
|
||||
#### [`npm version`](/commands/npm-version)
|
||||
|
||||
* `preversion`
|
||||
* `version`
|
||||
* `postversion`
|
||||
|
||||
#### A Note on a lack of [`npm uninstall`](/commands/npm-uninstall) scripts
|
||||
|
||||
While npm v6 had `uninstall` lifecycle scripts, npm v7 does not. Removal of a package can happen for a wide variety of reasons, and there's no clear way to currently give the script enough context to be useful.
|
||||
|
||||
+12
-1
@@ -142,7 +142,7 @@ npm command-line interface
|
||||
|
||||
<section id="table_of_contents">
|
||||
<h2 id="table-of-contents">Table of contents</h2>
|
||||
<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="#registry"><code>registry</code></a></li><li><a href="#scope"><code>scope</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
<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="#registry"><code>registry</code></a></li><li><a href="#scope"><code>scope</code></a></li><li><a href="#auth-type"><code>auth-type</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
@@ -204,6 +204,17 @@ npm init --scope=@foo --yes
|
||||
</code></pre>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="auth-type"><code>auth-type</code></h4>
|
||||
<ul>
|
||||
<li>Default: "legacy"</li>
|
||||
<li>Type: "legacy", "webauthn", "sso", "saml", or "oauth"</li>
|
||||
<li>DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
|
||||
a future version of npm in favor of web-based login.</li>
|
||||
</ul>
|
||||
<p>What authentication strategy to use with <code>adduser</code>/<code>login</code>.</p>
|
||||
<p>Pass <code>webauthn</code> to use a web-based login.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
|
||||
-2
@@ -165,8 +165,6 @@ npm command-line interface
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -223,8 +223,6 @@ saving them to your <code>package.json</code>.</li>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
-2
@@ -334,8 +334,6 @@ located within the folder <code>./lib/</code> and changed lines of code within t
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
+10
-1
@@ -142,7 +142,7 @@ npm command-line interface
|
||||
|
||||
<section id="table_of_contents">
|
||||
<h2 id="table-of-contents">Table of contents</h2>
|
||||
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><ul><li><a href="#forwarding-additional-options">Forwarding additional options</a></li></ul><li><a href="#examples">Examples</a></li><li><a href="#workspaces-support">Workspaces support</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#yes"><code>yes</code></a></li><li><a href="#force"><code>force</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>
|
||||
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><ul><li><a href="#forwarding-additional-options">Forwarding additional options</a></li></ul><li><a href="#examples">Examples</a></li><li><a href="#workspaces-support">Workspaces support</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#yes"><code>yes</code></a></li><li><a href="#force"><code>force</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#workspaces-update"><code>workspaces-update</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>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
@@ -339,6 +339,15 @@ other things (test, exec, publish, etc.) will operate on the root project,
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="workspaces-update"><code>workspaces-update</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to true, the npm cli will run an update after operations that may
|
||||
possibly change the workspaces installed to the <code>node_modules</code> folder.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="include-workspace-root"><code>include-workspace-root</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
|
||||
@@ -196,8 +196,6 @@ rather than using npm's default semver range operator.</p>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -522,8 +522,6 @@ rather than using npm's default semver range operator.</p>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
-2
@@ -251,8 +251,6 @@ rather than using npm's default semver range operator.</p>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
+1
-3
@@ -166,7 +166,7 @@ tree at all, use <a href="../commands/npm-explain.html"><code>npm explain</code>
|
||||
the results to only the paths to the packages named. Note that nested
|
||||
packages will <em>also</em> show the paths to the specified packages. For
|
||||
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
|
||||
<pre lang="bash"><code>npm@8.11.0 /path/to/npm
|
||||
<pre lang="bash"><code>npm@8.12.1 /path/to/npm
|
||||
└─┬ init-package-json@0.0.4
|
||||
└── promzard@0.1.5
|
||||
</code></pre>
|
||||
@@ -246,8 +246,6 @@ saving them to your <code>package.json</code>.</li>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -268,8 +268,6 @@ saving them to your <code>package.json</code>.</li>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -176,8 +176,6 @@ also specified.</p>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -173,8 +173,6 @@ will be rebuilt.</p>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
-2
@@ -170,8 +170,6 @@ echo "Global packages installed in: ${global_node_modules}"
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
@@ -275,8 +275,6 @@ be <em>downgraded</em>.</p>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
|
||||
+1
-1
@@ -149,7 +149,7 @@ npm command-line interface
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="version">Version</h3>
|
||||
<p>8.11.0</p>
|
||||
<p>8.12.1</p>
|
||||
<h3 id="description">Description</h3>
|
||||
<p>npm is the package manager for the Node JavaScript platform. It puts
|
||||
modules in place so that node can find them, and manages dependency
|
||||
|
||||
@@ -629,6 +629,24 @@ git+ssh://git@github.com:npm/cli#semver:^5.0
|
||||
git+https://isaacs@github.com/npm/cli.git
|
||||
git://github.com/npm/cli.git#v1.0.27
|
||||
</code></pre>
|
||||
<p>When installing from a <code>git</code> repository, the presence of certain fields in the
|
||||
<code>package.json</code> will cause npm to believe it needs to perform a build. To do so
|
||||
your repository will be cloned into a temporary directory, all of its deps
|
||||
installed, relevant scripts run, and the resulting directory packed and
|
||||
installed.</p>
|
||||
<p>This flow will occur if your git dependency uses <code>workspaces</code>, or if any of the
|
||||
following scripts are present:</p>
|
||||
<ul>
|
||||
<li><code>build</code></li>
|
||||
<li><code>prepare</code></li>
|
||||
<li><code>prepack</code></li>
|
||||
<li><code>preinstall</code></li>
|
||||
<li><code>install</code></li>
|
||||
<li><code>postinstall</code></li>
|
||||
</ul>
|
||||
<p>If your git repository includes pre-built artifacts, you will likely want to
|
||||
make sure that none of the above scripts are defined, or your dependency
|
||||
will be rebuilt for every installation.</p>
|
||||
<h4 id="github-urls">GitHub URLs</h4>
|
||||
<p>As of version 1.1.65, you can refer to GitHub urls as just "foo":
|
||||
"user/foo-project". Just as with git URLs, a <code>commit-ish</code> suffix can be
|
||||
|
||||
+21
-22
@@ -142,7 +142,7 @@ npm command-line interface
|
||||
|
||||
<section id="table_of_contents">
|
||||
<h2 id="table-of-contents">Table of contents</h2>
|
||||
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><ul><li><a href="#command-line-flags">Command Line Flags</a></li><li><a href="#environment-variables">Environment Variables</a></li><li><a href="#npmrc-files">npmrc Files</a></li><li><a href="#default-configs">Default Configs</a></li></ul><li><a href="#shorthands-and-other-cli-niceties">Shorthands and Other CLI Niceties</a></li><li><a href="#config-settings">Config Settings</a></li><ul><li><a href="#auth"><code>_auth</code></a></li><li><a href="#access"><code>access</code></a></li><li><a href="#all"><code>all</code></a></li><li><a href="#allow-same-version"><code>allow-same-version</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#audit-level"><code>audit-level</code></a></li><li><a href="#before"><code>before</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#browser"><code>browser</code></a></li><li><a href="#ca"><code>ca</code></a></li><li><a href="#cache"><code>cache</code></a></li><li><a href="#cafile"><code>cafile</code></a></li><li><a href="#call"><code>call</code></a></li><li><a href="#cert"><code>cert</code></a></li><li><a href="#ci-name"><code>ci-name</code></a></li><li><a href="#cidr"><code>cidr</code></a></li><li><a href="#color"><code>color</code></a></li><li><a href="#commit-hooks"><code>commit-hooks</code></a></li><li><a href="#depth"><code>depth</code></a></li><li><a href="#description2"><code>description</code></a></li><li><a href="#diff"><code>diff</code></a></li><li><a href="#diff-dst-prefix"><code>diff-dst-prefix</code></a></li><li><a href="#diff-ignore-all-space"><code>diff-ignore-all-space</code></a></li><li><a href="#diff-name-only"><code>diff-name-only</code></a></li><li><a href="#diff-no-prefix"><code>diff-no-prefix</code></a></li><li><a href="#diff-src-prefix"><code>diff-src-prefix</code></a></li><li><a href="#diff-text"><code>diff-text</code></a></li><li><a href="#diff-unified"><code>diff-unified</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#editor"><code>editor</code></a></li><li><a href="#engine-strict"><code>engine-strict</code></a></li><li><a href="#fetch-retries"><code>fetch-retries</code></a></li><li><a href="#fetch-retry-factor"><code>fetch-retry-factor</code></a></li><li><a href="#fetch-retry-maxtimeout"><code>fetch-retry-maxtimeout</code></a></li><li><a href="#fetch-retry-mintimeout"><code>fetch-retry-mintimeout</code></a></li><li><a href="#fetch-timeout"><code>fetch-timeout</code></a></li><li><a href="#force"><code>force</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#format-package-lock"><code>format-package-lock</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#git"><code>git</code></a></li><li><a href="#git-tag-version"><code>git-tag-version</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#globalconfig"><code>globalconfig</code></a></li><li><a href="#heading"><code>heading</code></a></li><li><a href="#https-proxy"><code>https-proxy</code></a></li><li><a href="#if-present"><code>if-present</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#include"><code>include</code></a></li><li><a href="#include-staged"><code>include-staged</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#init-author-email"><code>init-author-email</code></a></li><li><a href="#init-author-name"><code>init-author-name</code></a></li><li><a href="#init-author-url"><code>init-author-url</code></a></li><li><a href="#init-license"><code>init-license</code></a></li><li><a href="#init-module"><code>init-module</code></a></li><li><a href="#init-version"><code>init-version</code></a></li><li><a href="#install-links"><code>install-links</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#key"><code>key</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#legacy-peer-deps"><code>legacy-peer-deps</code></a></li><li><a href="#link"><code>link</code></a></li><li><a href="#local-address"><code>local-address</code></a></li><li><a href="#location"><code>location</code></a></li><li><a href="#lockfile-version"><code>lockfile-version</code></a></li><li><a href="#loglevel"><code>loglevel</code></a></li><li><a href="#logs-dir"><code>logs-dir</code></a></li><li><a href="#logs-max"><code>logs-max</code></a></li><li><a href="#long"><code>long</code></a></li><li><a href="#maxsockets"><code>maxsockets</code></a></li><li><a href="#message"><code>message</code></a></li><li><a href="#node-options"><code>node-options</code></a></li><li><a href="#node-version"><code>node-version</code></a></li><li><a href="#noproxy"><code>noproxy</code></a></li><li><a href="#npm-version"><code>npm-version</code></a></li><li><a href="#offline"><code>offline</code></a></li><li><a href="#Line truncated
|
||||
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><ul><li><a href="#command-line-flags">Command Line Flags</a></li><li><a href="#environment-variables">Environment Variables</a></li><li><a href="#npmrc-files">npmrc Files</a></li><li><a href="#default-configs">Default Configs</a></li></ul><li><a href="#shorthands-and-other-cli-niceties">Shorthands and Other CLI Niceties</a></li><li><a href="#config-settings">Config Settings</a></li><ul><li><a href="#auth"><code>_auth</code></a></li><li><a href="#access"><code>access</code></a></li><li><a href="#all"><code>all</code></a></li><li><a href="#allow-same-version"><code>allow-same-version</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#audit-level"><code>audit-level</code></a></li><li><a href="#before"><code>before</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#browser"><code>browser</code></a></li><li><a href="#ca"><code>ca</code></a></li><li><a href="#cache"><code>cache</code></a></li><li><a href="#cafile"><code>cafile</code></a></li><li><a href="#call"><code>call</code></a></li><li><a href="#cert"><code>cert</code></a></li><li><a href="#ci-name"><code>ci-name</code></a></li><li><a href="#cidr"><code>cidr</code></a></li><li><a href="#color"><code>color</code></a></li><li><a href="#commit-hooks"><code>commit-hooks</code></a></li><li><a href="#depth"><code>depth</code></a></li><li><a href="#description2"><code>description</code></a></li><li><a href="#diff"><code>diff</code></a></li><li><a href="#diff-dst-prefix"><code>diff-dst-prefix</code></a></li><li><a href="#diff-ignore-all-space"><code>diff-ignore-all-space</code></a></li><li><a href="#diff-name-only"><code>diff-name-only</code></a></li><li><a href="#diff-no-prefix"><code>diff-no-prefix</code></a></li><li><a href="#diff-src-prefix"><code>diff-src-prefix</code></a></li><li><a href="#diff-text"><code>diff-text</code></a></li><li><a href="#diff-unified"><code>diff-unified</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#editor"><code>editor</code></a></li><li><a href="#engine-strict"><code>engine-strict</code></a></li><li><a href="#fetch-retries"><code>fetch-retries</code></a></li><li><a href="#fetch-retry-factor"><code>fetch-retry-factor</code></a></li><li><a href="#fetch-retry-maxtimeout"><code>fetch-retry-maxtimeout</code></a></li><li><a href="#fetch-retry-mintimeout"><code>fetch-retry-mintimeout</code></a></li><li><a href="#fetch-timeout"><code>fetch-timeout</code></a></li><li><a href="#force"><code>force</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#format-package-lock"><code>format-package-lock</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#git"><code>git</code></a></li><li><a href="#git-tag-version"><code>git-tag-version</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#globalconfig"><code>globalconfig</code></a></li><li><a href="#heading"><code>heading</code></a></li><li><a href="#https-proxy"><code>https-proxy</code></a></li><li><a href="#if-present"><code>if-present</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#include"><code>include</code></a></li><li><a href="#include-staged"><code>include-staged</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#init-author-email"><code>init-author-email</code></a></li><li><a href="#init-author-name"><code>init-author-name</code></a></li><li><a href="#init-author-url"><code>init-author-url</code></a></li><li><a href="#init-license"><code>init-license</code></a></li><li><a href="#init-module"><code>init-module</code></a></li><li><a href="#init-version"><code>init-version</code></a></li><li><a href="#install-links"><code>install-links</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#key"><code>key</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#legacy-peer-deps"><code>legacy-peer-deps</code></a></li><li><a href="#link"><code>link</code></a></li><li><a href="#local-address"><code>local-address</code></a></li><li><a href="#location"><code>location</code></a></li><li><a href="#lockfile-version"><code>lockfile-version</code></a></li><li><a href="#loglevel"><code>loglevel</code></a></li><li><a href="#logs-dir"><code>logs-dir</code></a></li><li><a href="#logs-max"><code>logs-max</code></a></li><li><a href="#long"><code>long</code></a></li><li><a href="#maxsockets"><code>maxsockets</code></a></li><li><a href="#message"><code>message</code></a></li><li><a href="#node-options"><code>node-options</code></a></li><li><a href="#node-version"><code>node-version</code></a></li><li><a href="#noproxy"><code>noproxy</code></a></li><li><a href="#npm-version"><code>npm-version</code></a></li><li><a href="#ofLine truncated
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="description">Description</h3>
|
||||
@@ -696,6 +696,22 @@ but is not in the <code>PATH</code>, then set this to the full path to the git b
|
||||
results in no commit being made at all.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="global"><code>global</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
<a href="../configuring-npm/folders.html">folders</a> for more on the differences in behavior.</p>
|
||||
<ul>
|
||||
<li>packages are installed into the <code>{prefix}/lib/node_modules</code> folder, instead
|
||||
of the current working directory.</li>
|
||||
<li>bin files are linked to <code>{prefix}/bin</code></li>
|
||||
<li>man pages are linked to <code>{prefix}/share/man</code></li>
|
||||
</ul>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="global-style"><code>global-style</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
@@ -1660,11 +1676,12 @@ command line.</p>
|
||||
<h4 id="auth-type"><code>auth-type</code></h4>
|
||||
<ul>
|
||||
<li>Default: "legacy"</li>
|
||||
<li>Type: "legacy", "sso", "saml", or "oauth"</li>
|
||||
<li>DEPRECATED: This method of SSO/SAML/OAuth is deprecated and will be removed
|
||||
in a future version of npm in favor of web-based login.</li>
|
||||
<li>Type: "legacy", "webauthn", "sso", "saml", or "oauth"</li>
|
||||
<li>DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
|
||||
a future version of npm in favor of web-based login.</li>
|
||||
</ul>
|
||||
<p>What authentication strategy to use with <code>adduser</code>/<code>login</code>.</p>
|
||||
<p>Pass <code>webauthn</code> to use a web-based login.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="cache-max"><code>cache-max</code></h4>
|
||||
@@ -1694,24 +1711,6 @@ in a future version of npm in favor of web-based login.</li>
|
||||
<p>Alias for <code>--include=dev</code>.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="global"><code>global</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>DEPRECATED: <code>--global</code>, <code>--local</code> are deprecated. Use <code>--location=global</code>
|
||||
instead.</li>
|
||||
</ul>
|
||||
<p>Operates in "global" mode, so that packages are installed into the <code>prefix</code>
|
||||
folder instead of the current working directory. See
|
||||
<a href="../configuring-npm/folders.html">folders</a> for more on the differences in behavior.</p>
|
||||
<ul>
|
||||
<li>packages are installed into the <code>{prefix}/lib/node_modules</code> folder, instead
|
||||
of the current working directory.</li>
|
||||
<li>bin files are linked to <code>{prefix}/bin</code></li>
|
||||
<li>man pages are linked to <code>{prefix}/share/man</code></li>
|
||||
</ul>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="initauthoremail"><code>init.author.email</code></h4>
|
||||
<ul>
|
||||
<li>Default: ""</li>
|
||||
|
||||
+7
-1
@@ -142,7 +142,7 @@ npm command-line interface
|
||||
|
||||
<section id="table_of_contents">
|
||||
<h2 id="table-of-contents">Table of contents</h2>
|
||||
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#pre--post-scripts">Pre & Post Scripts</a></li><li><a href="#life-cycle-scripts">Life Cycle Scripts</a></li><ul><li><a href="#prepare-and-prepublish">Prepare and Prepublish</a></li></ul><li><a href="#life-cycle-operation-order">Life Cycle Operation Order</a></li><ul><li><a href="#npm-cache-add"><a href="../commands/npm-cache.html"><code>npm cache add</code></a></a></li><li><a href="#npm-ci"><a href="../commands/npm-ci.html"><code>npm ci</code></a></a></li><li><a href="#npm-diff"><a href="../commands/npm-diff.html"><code>npm diff</code></a></a></li><li><a href="#npm-install"><a href="../commands/npm-install.html"><code>npm install</code></a></a></li><li><a href="#npm-pack"><a href="../commands/npm-pack.html"><code>npm pack</code></a></a></li><li><a href="#npm-publish"><a href="../commands/npm-publish.html"><code>npm publish</code></a></a></li><li><a href="#npm-rebuild"><a href="../commands/npm-rebuild.html"><code>npm rebuild</code></a></a></li><li><a href="#npm-restart"><a href="../commands/npm-restart.html"><code>npm restart</code></a></a></li><li><a href="#npm-run-user-defined"><a href="../commands/npm-run-script.html"><code>npm run <user defined></code></a></a></li><li><a href="#npm-start"><a href="../commands/npm-start.html"><code>npm start</code></a></a></li><li><a href="#npm-stop"><a href="../commands/npm-stop.html"><code>npm stop</code></a></a></li><li><a href="#npm-test"><a href="../commands/npm-test.html"><code>npm test</code></a></a></li><li><a href="#a-note-on-a-lack-of-npm-uninstall-scripts">A Note on a lack of <a href="../commands/npm-uninstall.html"><code>npm uninstall</code></a> scripts</a></li></ul><li><a href="#user">User</a></li><li><a href="#environment">Environment</a></li><ul><li><a href="#path">path</a></li><li><a href="#packagejson-vars">package.json vars</a></li><li><a href="#current-lifecycle-event">current lifecycle event</a></li></ul><li><a href="#examples">Examples</a></li><li><a href="#exiting">Exiting</a></li><li><a href="#best-practices">Best Practices</a></li><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
<div id="_table_of_contents"><ul><li><a href="#description">Description</a></li><li><a href="#pre--post-scripts">Pre & Post Scripts</a></li><li><a href="#life-cycle-scripts">Life Cycle Scripts</a></li><ul><li><a href="#prepare-and-prepublish">Prepare and Prepublish</a></li></ul><li><a href="#life-cycle-operation-order">Life Cycle Operation Order</a></li><ul><li><a href="#npm-cache-add"><a href="../commands/npm-cache.html"><code>npm cache add</code></a></a></li><li><a href="#npm-ci"><a href="../commands/npm-ci.html"><code>npm ci</code></a></a></li><li><a href="#npm-diff"><a href="../commands/npm-diff.html"><code>npm diff</code></a></a></li><li><a href="#npm-install"><a href="../commands/npm-install.html"><code>npm install</code></a></a></li><li><a href="#npm-pack"><a href="../commands/npm-pack.html"><code>npm pack</code></a></a></li><li><a href="#npm-publish"><a href="../commands/npm-publish.html"><code>npm publish</code></a></a></li><li><a href="#npm-rebuild"><a href="../commands/npm-rebuild.html"><code>npm rebuild</code></a></a></li><li><a href="#npm-restart"><a href="../commands/npm-restart.html"><code>npm restart</code></a></a></li><li><a href="#npm-run-user-defined"><a href="../commands/npm-run-script.html"><code>npm run <user defined></code></a></a></li><li><a href="#npm-start"><a href="../commands/npm-start.html"><code>npm start</code></a></a></li><li><a href="#npm-stop"><a href="../commands/npm-stop.html"><code>npm stop</code></a></a></li><li><a href="#npm-test"><a href="../commands/npm-test.html"><code>npm test</code></a></a></li><li><a href="#npm-version"><a href="../commands/npm-version.html"><code>npm version</code></a></a></li><li><a href="#a-note-on-a-lack-of-npm-uninstall-scripts">A Note on a lack of <a href="../commands/npm-uninstall.html"><code>npm uninstall</code></a> scripts</a></li></ul><li><a href="#user">User</a></li><li><a href="#environment">Environment</a></li><ul><li><a href="#path">path</a></li><li><a href="#packagejson-vars">package.json vars</a></li><li><a href="#current-lifecycle-event">current lifecycle event</a></li></ul><li><a href="#examples">Examples</a></li><li><a href="#exiting">Exiting</a></li><li><a href="#best-practices">Best Practices</a></li><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="description">Description</h3>
|
||||
@@ -338,6 +338,12 @@ will default the <code>start</code> command to <code>node server.js</code>. <co
|
||||
<li><code>test</code></li>
|
||||
<li><code>posttest</code></li>
|
||||
</ul>
|
||||
<h4 id="npm-version"><a href="../commands/npm-version.html"><code>npm version</code></a></h4>
|
||||
<ul>
|
||||
<li><code>preversion</code></li>
|
||||
<li><code>version</code></li>
|
||||
<li><code>postversion</code></li>
|
||||
</ul>
|
||||
<h4 id="a-note-on-a-lack-of-npm-uninstall-scripts">A Note on a lack of <a href="../commands/npm-uninstall.html"><code>npm uninstall</code></a> scripts</h4>
|
||||
<p>While npm v6 had <code>uninstall</code> lifecycle scripts, npm v7 does not. Removal of a package can happen for a wide variety of reasons, and there's no clear way to currently give the script enough context to be useful.</p>
|
||||
<p>Reasons for a package removal include:</p>
|
||||
|
||||
Vendored
+2
@@ -3,6 +3,7 @@ const replaceInfo = require('../utils/replace-info.js')
|
||||
const BaseCommand = require('../base-command.js')
|
||||
const authTypes = {
|
||||
legacy: require('../auth/legacy.js'),
|
||||
webauthn: require('../auth/legacy.js'),
|
||||
oauth: require('../auth/oauth.js'),
|
||||
saml: require('../auth/saml.js'),
|
||||
sso: require('../auth/sso.js'),
|
||||
@@ -14,6 +15,7 @@ class AddUser extends BaseCommand {
|
||||
static params = [
|
||||
'registry',
|
||||
'scope',
|
||||
'auth-type',
|
||||
]
|
||||
|
||||
static ignoreImplicitWorkspace = true
|
||||
|
||||
Vendored
+44
-1
@@ -8,13 +8,22 @@ const libexec = require('libnpmexec')
|
||||
const mapWorkspaces = require('@npmcli/map-workspaces')
|
||||
const PackageJson = require('@npmcli/package-json')
|
||||
const log = require('../utils/log-shim.js')
|
||||
const updateWorkspaces = require('../workspaces/update-workspaces.js')
|
||||
|
||||
const getLocationMsg = require('../exec/get-workspace-location-msg.js')
|
||||
const BaseCommand = require('../base-command.js')
|
||||
|
||||
class Init extends BaseCommand {
|
||||
static description = 'Create a package.json file'
|
||||
static params = ['yes', 'force', 'workspace', 'workspaces', 'include-workspace-root']
|
||||
static params = [
|
||||
'yes',
|
||||
'force',
|
||||
'workspace',
|
||||
'workspaces',
|
||||
'workspaces-update',
|
||||
'include-workspace-root',
|
||||
]
|
||||
|
||||
static name = 'init'
|
||||
static usage = [
|
||||
'[--force|-f|--yes|-y|--scope]',
|
||||
@@ -46,11 +55,13 @@ class Init extends BaseCommand {
|
||||
const pkg = await rpj(resolve(this.npm.localPrefix, 'package.json'))
|
||||
const wPath = filterArg => resolve(this.npm.localPrefix, filterArg)
|
||||
|
||||
const workspacesPaths = []
|
||||
// npm-exec style, runs in the context of each workspace filter
|
||||
if (args.length) {
|
||||
for (const filterArg of filters) {
|
||||
const path = wPath(filterArg)
|
||||
await mkdirp(path)
|
||||
workspacesPaths.push(path)
|
||||
await this.execCreate({ args, path })
|
||||
await this.setWorkspace({ pkg, workspacePath: path })
|
||||
}
|
||||
@@ -61,9 +72,13 @@ class Init extends BaseCommand {
|
||||
for (const filterArg of filters) {
|
||||
const path = wPath(filterArg)
|
||||
await mkdirp(path)
|
||||
workspacesPaths.push(path)
|
||||
await this.template(path)
|
||||
await this.setWorkspace({ pkg, workspacePath: path })
|
||||
}
|
||||
|
||||
// reify packages once all workspaces have been initialized
|
||||
await this.update(workspacesPaths)
|
||||
}
|
||||
|
||||
async execCreate ({ args, path }) {
|
||||
@@ -196,6 +211,34 @@ class Init extends BaseCommand {
|
||||
|
||||
await pkgJson.save()
|
||||
}
|
||||
|
||||
async update (workspacesPaths) {
|
||||
// translate workspaces paths into an array containing workspaces names
|
||||
const workspaces = []
|
||||
for (const path of workspacesPaths) {
|
||||
const pkgPath = resolve(path, 'package.json')
|
||||
const { name } = await rpj(pkgPath)
|
||||
.catch(() => ({}))
|
||||
|
||||
if (name) {
|
||||
workspaces.push(name)
|
||||
}
|
||||
}
|
||||
|
||||
const {
|
||||
config,
|
||||
flatOptions,
|
||||
localPrefix,
|
||||
} = this.npm
|
||||
|
||||
await updateWorkspaces({
|
||||
config,
|
||||
flatOptions,
|
||||
localPrefix,
|
||||
npm: this.npm,
|
||||
workspaces,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Init
|
||||
Vendored
+14
-28
@@ -3,9 +3,7 @@ const { resolve } = require('path')
|
||||
const { promisify } = require('util')
|
||||
const readFile = promisify(require('fs').readFile)
|
||||
|
||||
const Arborist = require('@npmcli/arborist')
|
||||
const reifyFinish = require('../utils/reify-finish.js')
|
||||
|
||||
const updateWorkspaces = require('../workspaces/update-workspaces.js')
|
||||
const BaseCommand = require('../base-command.js')
|
||||
|
||||
class Version extends BaseCommand {
|
||||
@@ -137,32 +135,20 @@ class Version extends BaseCommand {
|
||||
return this.list(results)
|
||||
}
|
||||
|
||||
async update (args) {
|
||||
if (!this.npm.flatOptions.workspacesUpdate || !args.length) {
|
||||
return
|
||||
}
|
||||
async update (workspaces) {
|
||||
const {
|
||||
config,
|
||||
flatOptions,
|
||||
localPrefix,
|
||||
} = this.npm
|
||||
|
||||
// default behavior is to not save by default in order to avoid
|
||||
// race condition problems when publishing multiple workspaces
|
||||
// that have dependencies on one another, it might still be useful
|
||||
// in some cases, which then need to set --save
|
||||
const save = this.npm.config.isDefault('save')
|
||||
? false
|
||||
: this.npm.config.get('save')
|
||||
|
||||
// runs a minimalistic reify update, targetting only the workspaces
|
||||
// that had version updates and skipping fund/audit/save
|
||||
const opts = {
|
||||
...this.npm.flatOptions,
|
||||
audit: false,
|
||||
fund: false,
|
||||
path: this.npm.localPrefix,
|
||||
save,
|
||||
}
|
||||
const arb = new Arborist(opts)
|
||||
|
||||
await arb.reify({ ...opts, update: args })
|
||||
await reifyFinish(this.npm, arb)
|
||||
await updateWorkspaces({
|
||||
config,
|
||||
flatOptions,
|
||||
localPrefix,
|
||||
npm: this.npm,
|
||||
workspaces,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-5
@@ -238,13 +238,15 @@ define('audit-level', {
|
||||
|
||||
define('auth-type', {
|
||||
default: 'legacy',
|
||||
type: ['legacy', 'sso', 'saml', 'oauth'],
|
||||
type: ['legacy', 'webauthn', 'sso', 'saml', 'oauth'],
|
||||
deprecated: `
|
||||
This method of SSO/SAML/OAuth is deprecated and will be removed in
|
||||
The SSO/SAML/OAuth methods are deprecated and will be removed in
|
||||
a future version of npm in favor of web-based login.
|
||||
`,
|
||||
description: `
|
||||
What authentication strategy to use with \`adduser\`/\`login\`.
|
||||
|
||||
Pass \`webauthn\` to use a web-based login.
|
||||
`,
|
||||
flatten,
|
||||
})
|
||||
@@ -811,9 +813,6 @@ define('global', {
|
||||
default: false,
|
||||
type: Boolean,
|
||||
short: 'g',
|
||||
deprecated: `
|
||||
\`--global\`, \`--local\` are deprecated. Use \`--location=global\` instead.
|
||||
`,
|
||||
description: `
|
||||
Operates in "global" mode, so that packages are installed into the
|
||||
\`prefix\` folder instead of the current working directory. See
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
'use strict'
|
||||
|
||||
const Arborist = require('@npmcli/arborist')
|
||||
const reifyFinish = require('../utils/reify-finish.js')
|
||||
|
||||
async function updateWorkspaces ({
|
||||
config,
|
||||
flatOptions,
|
||||
localPrefix,
|
||||
npm,
|
||||
workspaces,
|
||||
}) {
|
||||
if (!flatOptions.workspacesUpdate || !workspaces.length) {
|
||||
return
|
||||
}
|
||||
|
||||
// default behavior is to not save by default in order to avoid
|
||||
// race condition problems when publishing multiple workspaces
|
||||
// that have dependencies on one another, it might still be useful
|
||||
// in some cases, which then need to set --save
|
||||
const save = config.isDefault('save')
|
||||
? false
|
||||
: config.get('save')
|
||||
|
||||
// runs a minimalistic reify update, targetting only the workspaces
|
||||
// that had version updates and skipping fund/audit/save
|
||||
const opts = {
|
||||
...flatOptions,
|
||||
audit: false,
|
||||
fund: false,
|
||||
path: localPrefix,
|
||||
save,
|
||||
}
|
||||
const arb = new Arborist(opts)
|
||||
|
||||
await arb.reify({ ...opts, update: workspaces })
|
||||
await reifyFinish(npm, arb)
|
||||
}
|
||||
|
||||
module.exports = updateWorkspaces
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-ACCESS" "1" "May 2022" "" ""
|
||||
.TH "NPM\-ACCESS" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-access\fR \- Set access level on published packages
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+16
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-ADDUSER" "1" "May 2022" "" ""
|
||||
.TH "NPM\-ADDUSER" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-adduser\fR \- Add a registry user account
|
||||
.SS Synopsis
|
||||
@@ -77,6 +77,21 @@ This will also cause \fBnpm init\fP to create a scoped package\.
|
||||
npm init \-\-scope=@foo \-\-yes
|
||||
.fi
|
||||
.RE
|
||||
.SS \fBauth\-type\fP
|
||||
.RS 0
|
||||
.IP \(bu 2
|
||||
Default: "legacy"
|
||||
.IP \(bu 2
|
||||
Type: "legacy", "webauthn", "sso", "saml", or "oauth"
|
||||
.IP \(bu 2
|
||||
DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
|
||||
a future version of npm in favor of web\-based login\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
What authentication strategy to use with \fBadduser\fP/\fBlogin\fP\|\.
|
||||
.P
|
||||
Pass \fBwebauthn\fP to use a web\-based login\.
|
||||
.SS See Also
|
||||
.RS 0
|
||||
.IP \(bu 2
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-AUDIT" "1" "May 2022" "" ""
|
||||
.TH "NPM\-AUDIT" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-audit\fR \- Run a security audit
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-BIN" "1" "May 2022" "" ""
|
||||
.TH "NPM\-BIN" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-bin\fR \- Display npm bin folder
|
||||
.SS Synopsis
|
||||
@@ -20,9 +20,6 @@ Print the folder where npm will install executables\.
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-BUGS" "1" "May 2022" "" ""
|
||||
.TH "NPM\-BUGS" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-bugs\fR \- Report bugs for a package in a web browser
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-CACHE" "1" "May 2022" "" ""
|
||||
.TH "NPM\-CACHE" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-cache\fR \- Manipulates packages cache
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-CI" "1" "May 2022" "" ""
|
||||
.TH "NPM\-CI" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-ci\fR \- Clean install a project
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-COMPLETION" "1" "May 2022" "" ""
|
||||
.TH "NPM\-COMPLETION" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-completion\fR \- Tab Completion for npm
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-CONFIG" "1" "May 2022" "" ""
|
||||
.TH "NPM\-CONFIG" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-config\fR \- Manage the npm configuration files
|
||||
.SS Synopsis
|
||||
@@ -117,9 +117,6 @@ Not supported by all npm commands\.
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-DEDUPE" "1" "May 2022" "" ""
|
||||
.TH "NPM\-DEDUPE" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-dedupe\fR \- Reduce duplication in the package tree
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-DEPRECATE" "1" "May 2022" "" ""
|
||||
.TH "NPM\-DEPRECATE" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-deprecate\fR \- Deprecate a version of a package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-DIFF" "1" "May 2022" "" ""
|
||||
.TH "NPM\-DIFF" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-diff\fR \- The registry diff command
|
||||
.SS Synopsis
|
||||
@@ -232,9 +232,6 @@ Treat all files as text in \fBnpm diff\fP\|\.
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-DIST\-TAG" "1" "May 2022" "" ""
|
||||
.TH "NPM\-DIST\-TAG" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-dist-tag\fR \- Modify package distribution tags
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-DOCS" "1" "May 2022" "" ""
|
||||
.TH "NPM\-DOCS" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-docs\fR \- Open documentation for a package in a web browser
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-DOCTOR" "1" "May 2022" "" ""
|
||||
.TH "NPM\-DOCTOR" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-doctor\fR \- Check your npm environment
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-EDIT" "1" "May 2022" "" ""
|
||||
.TH "NPM\-EDIT" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-edit\fR \- Edit an installed package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-EXEC" "1" "May 2022" "" ""
|
||||
.TH "NPM\-EXEC" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-exec\fR \- Run a command from a local or remote npm package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-EXPLAIN" "1" "May 2022" "" ""
|
||||
.TH "NPM\-EXPLAIN" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-explain\fR \- Explain installed packages
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-EXPLORE" "1" "May 2022" "" ""
|
||||
.TH "NPM\-EXPLORE" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-explore\fR \- Browse an installed package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-FIND\-DUPES" "1" "May 2022" "" ""
|
||||
.TH "NPM\-FIND\-DUPES" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-find-dupes\fR \- Find duplication in the package tree
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-FUND" "1" "May 2022" "" ""
|
||||
.TH "NPM\-FUND" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-fund\fR \- Retrieve funding information
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-HELP\-SEARCH" "1" "May 2022" "" ""
|
||||
.TH "NPM\-HELP\-SEARCH" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-help-search\fR \- Search npm help documentation
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-HELP" "1" "May 2022" "" ""
|
||||
.TH "NPM\-HELP" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-help\fR \- Get help on npm
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-HOOK" "1" "May 2022" "" ""
|
||||
.TH "NPM\-HOOK" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-hook\fR \- Manage registry hooks
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+12
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-INIT" "1" "May 2022" "" ""
|
||||
.TH "NPM\-INIT" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-init\fR \- Create a package\.json file
|
||||
.SS Synopsis
|
||||
@@ -286,6 +286,17 @@ other things (test, exec, publish, etc\.) will operate on the root project,
|
||||
.RE
|
||||
.P
|
||||
This value is not exported to the environment for child processes\.
|
||||
.SS \fBworkspaces\-update\fP
|
||||
.RS 0
|
||||
.IP \(bu 2
|
||||
Default: true
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
|
||||
.RE
|
||||
.P
|
||||
If set to true, the npm cli will run an update after operations that may
|
||||
possibly change the workspaces installed to the \fBnode_modules\fP folder\.
|
||||
.SS \fBinclude\-workspace\-root\fP
|
||||
.RS 0
|
||||
.IP \(bu 2
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-INSTALL\-CI\-TEST" "1" "May 2022" "" ""
|
||||
.TH "NPM\-INSTALL\-CI\-TEST" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-install-ci-test\fR \- Install a project with a clean slate and run tests
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-INSTALL\-TEST" "1" "May 2022" "" ""
|
||||
.TH "NPM\-INSTALL\-TEST" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-install-test\fR \- Install package(s) and run tests
|
||||
.SS Synopsis
|
||||
@@ -56,9 +56,6 @@ rather than using npm's default semver range operator\.
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-INSTALL" "1" "May 2022" "" ""
|
||||
.TH "NPM\-INSTALL" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-install\fR \- Install a package
|
||||
.SS Synopsis
|
||||
@@ -467,9 +467,6 @@ rather than using npm's default semver range operator\.
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-LINK" "1" "May 2022" "" ""
|
||||
.TH "NPM\-LINK" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-link\fR \- Symlink a package folder
|
||||
.SS Synopsis
|
||||
@@ -145,9 +145,6 @@ rather than using npm's default semver range operator\.
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-LOGOUT" "1" "May 2022" "" ""
|
||||
.TH "NPM\-LOGOUT" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-logout\fR \- Log out of the registry
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+2
-5
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-LS" "1" "May 2022" "" ""
|
||||
.TH "NPM\-LS" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-ls\fR \- List installed packages
|
||||
.SS Synopsis
|
||||
@@ -26,7 +26,7 @@ example, running \fBnpm ls promzard\fP in npm's source tree will show:
|
||||
.P
|
||||
.RS 2
|
||||
.nf
|
||||
npm@8\.11\.0 /path/to/npm
|
||||
npm@8\.12\.1 /path/to/npm
|
||||
└─┬ init\-package\-json@0\.0\.4
|
||||
└── promzard@0\.1\.5
|
||||
.fi
|
||||
@@ -127,9 +127,6 @@ Output parseable results from commands that write to standard output\. For
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-ORG" "1" "May 2022" "" ""
|
||||
.TH "NPM\-ORG" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-org\fR \- Manage orgs
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-OUTDATED" "1" "May 2022" "" ""
|
||||
.TH "NPM\-OUTDATED" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-outdated\fR \- Check for outdated packages
|
||||
.SS Synopsis
|
||||
@@ -159,9 +159,6 @@ Output parseable results from commands that write to standard output\. For
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-OWNER" "1" "May 2022" "" ""
|
||||
.TH "NPM\-OWNER" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-owner\fR \- Manage package owners
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-PACK" "1" "May 2022" "" ""
|
||||
.TH "NPM\-PACK" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-pack\fR \- Create a tarball from a package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-PING" "1" "May 2022" "" ""
|
||||
.TH "NPM\-PING" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-ping\fR \- Ping npm registry
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-PKG" "1" "May 2022" "" ""
|
||||
.TH "NPM\-PKG" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-pkg\fR \- Manages your package\.json
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-PREFIX" "1" "May 2022" "" ""
|
||||
.TH "NPM\-PREFIX" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-prefix\fR \- Display prefix
|
||||
.SS Synopsis
|
||||
@@ -40,9 +40,6 @@ npm prefix \-g
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-PROFILE" "1" "May 2022" "" ""
|
||||
.TH "NPM\-PROFILE" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-profile\fR \- Change settings on your registry profile
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-PRUNE" "1" "May 2022" "" ""
|
||||
.TH "NPM\-PRUNE" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-prune\fR \- Remove extraneous packages
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-PUBLISH" "1" "May 2022" "" ""
|
||||
.TH "NPM\-PUBLISH" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-publish\fR \- Publish a package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-REBUILD" "1" "May 2022" "" ""
|
||||
.TH "NPM\-REBUILD" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-rebuild\fR \- Rebuild a package
|
||||
.SS Synopsis
|
||||
@@ -28,9 +28,6 @@ will be rebuilt\.
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-REPO" "1" "May 2022" "" ""
|
||||
.TH "NPM\-REPO" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-repo\fR \- Open package repository page in the browser
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-RESTART" "1" "May 2022" "" ""
|
||||
.TH "NPM\-RESTART" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-restart\fR \- Restart a package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-ROOT" "1" "May 2022" "" ""
|
||||
.TH "NPM\-ROOT" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-root\fR \- Display npm root
|
||||
.SS Synopsis
|
||||
@@ -29,9 +29,6 @@ echo "Global packages installed in: ${global_node_modules}"
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-RUN\-SCRIPT" "1" "May 2022" "" ""
|
||||
.TH "NPM\-RUN\-SCRIPT" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-run-script\fR \- Run arbitrary package scripts
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-SEARCH" "1" "May 2022" "" ""
|
||||
.TH "NPM\-SEARCH" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-search\fR \- Search for packages
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-SET\-SCRIPT" "1" "May 2022" "" ""
|
||||
.TH "NPM\-SET\-SCRIPT" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-set-script\fR \- Set tasks in the scripts section of package\.json
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-SHRINKWRAP" "1" "May 2022" "" ""
|
||||
.TH "NPM\-SHRINKWRAP" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-shrinkwrap\fR \- Lock down dependency versions for publication
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-STAR" "1" "May 2022" "" ""
|
||||
.TH "NPM\-STAR" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-star\fR \- Mark your favorite packages
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-STARS" "1" "May 2022" "" ""
|
||||
.TH "NPM\-STARS" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-stars\fR \- View packages marked as favorites
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-START" "1" "May 2022" "" ""
|
||||
.TH "NPM\-START" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-start\fR \- Start a package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-STOP" "1" "May 2022" "" ""
|
||||
.TH "NPM\-STOP" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-stop\fR \- Stop a package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-TEAM" "1" "May 2022" "" ""
|
||||
.TH "NPM\-TEAM" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-team\fR \- Manage organization teams and team memberships
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-TEST" "1" "May 2022" "" ""
|
||||
.TH "NPM\-TEST" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-test\fR \- Test a package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-TOKEN" "1" "May 2022" "" ""
|
||||
.TH "NPM\-TOKEN" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-token\fR \- Manage your authentication tokens
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-UNINSTALL" "1" "May 2022" "" ""
|
||||
.TH "NPM\-UNINSTALL" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-uninstall\fR \- Remove a package
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-UNPUBLISH" "1" "May 2022" "" ""
|
||||
.TH "NPM\-UNPUBLISH" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-unpublish\fR \- Remove a package from the registry
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-UNSTAR" "1" "May 2022" "" ""
|
||||
.TH "NPM\-UNSTAR" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-unstar\fR \- Remove an item from your favorite packages
|
||||
.SS Synopsis
|
||||
|
||||
Vendored
+1
-4
@@ -1,4 +1,4 @@
|
||||
.TH "NPM\-UPDATE" "1" "May 2022" "" ""
|
||||
.TH "NPM\-UPDATE" "1" "June 2022" "" ""
|
||||
.SH "NAME"
|
||||
\fBnpm-update\fR \- Update packages
|
||||
.SS Synopsis
|
||||
@@ -180,9 +180,6 @@ Will also prevent writing to \fBpackage\-lock\.json\fP if set to \fBfalse\fP\|\.
|
||||
Default: false
|
||||
.IP \(bu 2
|
||||
Type: Boolean
|
||||
.IP \(bu 2
|
||||
DEPRECATED: \fB\-\-global\fP, \fB\-\-local\fP are deprecated\. Use \fB\-\-location=global\fP
|
||||
instead\.
|
||||
|
||||
.RE
|
||||
.P
|
||||
|
||||
Loaded 100 of 153 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user