mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
deps: upgrade npm to 7.14.0
PR-URL: https://github.com/nodejs/node/pull/38750 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
50f076c4f5
commit
aa0e4eb27f
1
deps/npm/AUTHORS
vendored
1
deps/npm/AUTHORS
vendored
|
|
@ -776,3 +776,4 @@ Marco Sirabella <marco@sirabella.org>
|
|||
wangsai <wangsai@bootcss.com>
|
||||
Luke Hefson <luke@github.com>
|
||||
mrmlnc <mrmlnc@yandex-team.ru>
|
||||
Juan Picado <juanpicado19@gmail.com>
|
||||
|
|
|
|||
53
deps/npm/CHANGELOG.md
vendored
53
deps/npm/CHANGELOG.md
vendored
|
|
@ -1,5 +1,58 @@
|
|||
## v7.14.0 (2021-05-20)
|
||||
|
||||
### FEATURES
|
||||
|
||||
* [`0d1a9d787`](https://github.com/npm/cli/commit/0d1a9d78779dc015242fc03d2dad2039004fa2df)
|
||||
[#3227](https://github.com/npm/cli/issues/3227)
|
||||
feat(install): add workspaces support to npm install commands
|
||||
([@isaacs](https://github.com/isaacs))
|
||||
* [`c18626f04`](https://github.com/npm/cli/commit/c18626f047e3a0fedd3c86554a4a0a8f27925e77)
|
||||
[#3250](https://github.com/npm/cli/issues/3250)
|
||||
feat(ls): add workspaces support
|
||||
([@ruyadorno](https://github.com/ruyadorno))
|
||||
* [`41099d395`](https://github.com/npm/cli/commit/41099d3958d08f166313b7eb69b76458f8f9224c)
|
||||
[#3265](https://github.com/npm/cli/issues/3265)
|
||||
feat(explain): add workspaces support
|
||||
([@ruyadorno](https://github.com/ruyadorno))
|
||||
* [`fde354669`](https://github.com/npm/cli/commit/fde35466915b5ac5958c827fa7e919e1f186db51)
|
||||
[#3251](https://github.com/npm/cli/issues/3251)
|
||||
feat(unpublish): add workspace/dry-run support
|
||||
([@wraithgar](https://github.com/wraithgar))
|
||||
* [`83df3666c`](https://github.com/npm/cli/commit/83df3666cd82819230fb45f2a40afd531fe3b3c7)
|
||||
[#3260](https://github.com/npm/cli/issues/3260)
|
||||
feat(outdated): add workspaces support
|
||||
([@ruyadorno](https://github.com/ruyadorno))
|
||||
* [`63a7635f7`](https://github.com/npm/cli/commit/63a7635f7a2225a4edd1fe92f94a563965ac06c7)
|
||||
[#3217](https://github.com/npm/cli/issues/3217)
|
||||
feat(pack): add support to json config/output
|
||||
([@mrmlnc](https://github.com/mrmlnc))
|
||||
|
||||
### BUG FIXES
|
||||
|
||||
* [`faa12ccc2`](https://github.com/npm/cli/commit/faa12ccc26b5f0790f79b2589780e536f4284491)
|
||||
[#3253](https://github.com/npm/cli/issues/3253)
|
||||
fix search description typos
|
||||
([@juanpicado](https://github.com/juanpicado))
|
||||
* [`2f5c28a68`](https://github.com/npm/cli/commit/2f5c28a68719e948d2efedf463ebcb35972aaefb)
|
||||
[#3243](https://github.com/npm/cli/issues/3243)
|
||||
fix(docs): autogenerate config docs for commands
|
||||
([@isaacs](https://github.com/isaacs))
|
||||
|
||||
### DEPENDENCIES
|
||||
|
||||
* [`ec256a14a`](https://github.com/npm/cli/commit/ec256a14aa6eb2bd59fd55dcc6a4bc0148662c4e)
|
||||
`@npmcli/arborist@2.6.0`
|
||||
* [`5f15aba86`](https://github.com/npm/cli/commit/5f15aba866026e7c0d6844e6c07a528dc7454f14)
|
||||
`cacache@15.1.0`
|
||||
* [`b3add87e6`](https://github.com/npm/cli/commit/b3add87e686968b7af3067c685d2561baf90e397)
|
||||
[#3262](https://github.com/npm/cli/pull/3262)
|
||||
`npm-registry-client@10.1.2`:
|
||||
* fixed sso login token
|
||||
|
||||
## v7.13.0 (2021-05-13)
|
||||
|
||||
### FEATURES
|
||||
|
||||
* [`076420c14`](https://github.com/npm/cli/commit/076420c149d097056f687e44e21744b743b86e4e)
|
||||
[#3231](https://github.com/npm/cli/issues/3231)
|
||||
feat(publish): add workspace support
|
||||
|
|
|
|||
24
deps/npm/docs/content/commands/npm-access.md
vendored
24
deps/npm/docs/content/commands/npm-access.md
vendored
|
|
@ -81,6 +81,30 @@ fail with an HTTP 402 status code (logically enough), unless you use
|
|||
|
||||
Management of teams and team memberships is done with the `npm team` command.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### `otp`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String
|
||||
|
||||
This is a one-time password from a two-factor authenticator. It's needed
|
||||
when publishing or changing package permissions with `npm access`.
|
||||
|
||||
If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [`libnpmaccess`](https://npm.im/libnpmaccess)
|
||||
|
|
|
|||
51
deps/npm/docs/content/commands/npm-adduser.md
vendored
51
deps/npm/docs/content/commands/npm-adduser.md
vendored
|
|
@ -35,37 +35,46 @@ your existing record.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### registry
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
Default: https://registry.npmjs.org/
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm package registry. If `scope` is also specified,
|
||||
this registry will only be used for packages with that scope. `scope` defaults
|
||||
to the scope of the project directory you're currently in, if any. See [`scope`](/using-npm/scope).
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### scope
|
||||
#### `scope`
|
||||
|
||||
Default: none
|
||||
* Default: the scope of the current project, if any, or ""
|
||||
* Type: String
|
||||
|
||||
If specified, the user and login credentials given will be associated
|
||||
with the specified scope. See [`scope`](/using-npm/scope). You can use both at the same time,
|
||||
e.g.
|
||||
Associate an operation with a scope for a scoped registry.
|
||||
|
||||
```bash
|
||||
npm adduser --registry=http://myregistry.example.com --scope=@myco
|
||||
Useful when logging in to or out of a private registry:
|
||||
|
||||
```
|
||||
# log in, linking the scope to the custom registry
|
||||
npm login --scope=@mycorp --registry=https://registry.mycorp.com
|
||||
|
||||
# log out, removing the link and the auth token
|
||||
npm logout --scope=@mycorp
|
||||
```
|
||||
|
||||
This will set a registry for the given scope and login or create a user for
|
||||
that registry at the same time.
|
||||
This will cause `@mycorp` to be mapped to the registry for future
|
||||
installation of packages specified according to the pattern
|
||||
`@mycorp/package`.
|
||||
|
||||
#### auth-type
|
||||
This will also cause `npm init` to create a scoped package.
|
||||
|
||||
* Default: `'legacy'`
|
||||
* Type: `'legacy'`, `'sso'`, `'saml'`, `'oauth'`
|
||||
```
|
||||
# accept all defaults, and create a package named "@foo/whatever",
|
||||
# instead of just named "whatever"
|
||||
npm init --scope=@foo --yes
|
||||
```
|
||||
|
||||
What authentication strategy to use with `adduser`/`login`. Some npm registries
|
||||
(for example, npmE) might support alternative auth strategies besides classic
|
||||
username/password entry in legacy npm.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
@ -74,3 +83,5 @@ username/password entry in legacy npm.
|
|||
* [npmrc](/configuring-npm/npmrc)
|
||||
* [npm owner](/commands/npm-owner)
|
||||
* [npm whoami](/commands/npm-whoami)
|
||||
* [npm token](/commands/npm-token)
|
||||
* [npm profile](/commands/npm-profile)
|
||||
|
|
|
|||
118
deps/npm/docs/content/commands/npm-audit.md
vendored
118
deps/npm/docs/content/commands/npm-audit.md
vendored
|
|
@ -187,6 +187,124 @@ Fail an audit only if the results include a vulnerability with a level of modera
|
|||
$ npm audit --audit-level=moderate
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `audit-level`
|
||||
|
||||
* Default: null
|
||||
* Type: null, "info", "low", "moderate", "high", "critical", or "none"
|
||||
|
||||
The minimum level of vulnerability for `npm audit` to exit with a non-zero
|
||||
exit code.
|
||||
|
||||
#### `dry-run`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Indicates that you don't want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, `install`, `update`,
|
||||
`dedupe`, `uninstall`, as well as `pack` and `publish`.
|
||||
|
||||
Note: This is NOT honored by other network related commands, eg `dist-tags`,
|
||||
`owner`, etc.
|
||||
|
||||
#### `force`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Removes various protections against unfortunate side effects, common
|
||||
mistakes, unnecessary performance degradation, and malicious input.
|
||||
|
||||
* Allow clobbering non-npm files in global installs.
|
||||
* Allow the `npm version` command to work on an unclean git repository.
|
||||
* Allow deleting the cache folder with `npm cache clean`.
|
||||
* Allow installing packages that have an `engines` declaration requiring a
|
||||
different version of npm.
|
||||
* Allow installing packages that have an `engines` declaration requiring a
|
||||
different version of `node`, even if `--engine-strict` is enabled.
|
||||
* Allow `npm audit fix` to install modules outside your stated dependency
|
||||
range (including SemVer-major changes).
|
||||
* Allow unpublishing all versions of a published package.
|
||||
* Allow conflicting peerDependencies to be installed in the root project.
|
||||
* Implicitly set `--yes` during `npm init`.
|
||||
|
||||
If you don't have a clear idea of what you want to do, it is strongly
|
||||
recommended that you do not use this option!
|
||||
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `package-lock-only`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If set to true, it will update only the `package-lock.json`, instead of
|
||||
checking `node_modules` and downloading dependencies.
|
||||
|
||||
#### `omit`
|
||||
|
||||
* Default: 'dev' if the `NODE_ENV` environment variable is set to
|
||||
'production', otherwise empty.
|
||||
* Type: "dev", "optional", or "peer" (can be set multiple times)
|
||||
|
||||
Dependency types to omit from the installation tree on disk.
|
||||
|
||||
Note that these dependencies _are_ still resolved and added to the
|
||||
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
|
||||
physically installed on disk.
|
||||
|
||||
If a package type appears in both the `--include` and `--omit` lists, then
|
||||
it will be included.
|
||||
|
||||
If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
|
||||
variable will be set to `'production'` for all lifecycle scripts.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm install](/commands/npm-install)
|
||||
|
|
|
|||
20
deps/npm/docs/content/commands/npm-bin.md
vendored
20
deps/npm/docs/content/commands/npm-bin.md
vendored
|
|
@ -16,6 +16,26 @@ Note: This command is unaware of workspaces.
|
|||
|
||||
Print the folder where npm will install executables.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `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`
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm prefix](/commands/npm-prefix)
|
||||
|
|
|
|||
18
deps/npm/docs/content/commands/npm-bugs.md
vendored
18
deps/npm/docs/content/commands/npm-bugs.md
vendored
|
|
@ -21,24 +21,28 @@ will search for a `package.json` in the current folder and use the `name` proper
|
|||
|
||||
### Configuration
|
||||
|
||||
#### browser
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `browser`
|
||||
|
||||
* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
|
||||
* Type: String or Boolean
|
||||
* Type: null, Boolean, or String
|
||||
|
||||
The browser that is called by the `npm bugs` command to open websites.
|
||||
The browser that is called by npm commands to open websites.
|
||||
|
||||
Set to `false` to suppress browser behavior and instead print urls to
|
||||
terminal.
|
||||
|
||||
Set to `true` to use default system URL opener.
|
||||
|
||||
#### registry
|
||||
#### `registry`
|
||||
|
||||
* Default: https://registry.npmjs.org/
|
||||
* Type: url
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm package registry.
|
||||
The base URL of the npm registry.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
12
deps/npm/docs/content/commands/npm-cache.md
vendored
12
deps/npm/docs/content/commands/npm-cache.md
vendored
|
|
@ -75,11 +75,17 @@ verify`.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### cache
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `cache`
|
||||
|
||||
Default: `~/.npm` on Posix, or `%AppData%/npm-cache` on Windows.
|
||||
* Default: Windows: `%LocalAppData%\npm-cache`, Posix: `~/.npm`
|
||||
* Type: Path
|
||||
|
||||
The root cache folder.
|
||||
The location of npm's cache directory. See [`npm
|
||||
cache`](/commands/npm-cache)
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
26
deps/npm/docs/content/commands/npm-ci.md
vendored
26
deps/npm/docs/content/commands/npm-ci.md
vendored
|
|
@ -65,6 +65,32 @@ cache:
|
|||
- "$HOME/.npm"
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `script-shell`
|
||||
|
||||
* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
|
||||
* Type: null or String
|
||||
|
||||
The shell to use for scripts run with the `npm exec`, `npm run` and `npm
|
||||
init <pkg>` commands.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm install](/commands/npm-install)
|
||||
|
|
|
|||
44
deps/npm/docs/content/commands/npm-config.md
vendored
44
deps/npm/docs/content/commands/npm-config.md
vendored
|
|
@ -93,6 +93,50 @@ npm config edit
|
|||
Opens the config file in an editor. Use the `--global` flag to edit the
|
||||
global config.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `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`
|
||||
|
||||
#### `editor`
|
||||
|
||||
* Default: The EDITOR or VISUAL environment variables, or 'notepad.exe' on
|
||||
Windows, or 'vim' on Unix systems
|
||||
* Type: String
|
||||
|
||||
The command to run for `npm edit` and `npm config edit`.
|
||||
|
||||
#### `long`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Show extended information in `ls`, `search`, and `help-search`.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm folders](/configuring-npm/folders)
|
||||
|
|
|
|||
164
deps/npm/docs/content/commands/npm-dedupe.md
vendored
164
deps/npm/docs/content/commands/npm-dedupe.md
vendored
|
|
@ -72,6 +72,170 @@ result in new modules being installed.
|
|||
|
||||
Using `npm find-dupes` will run the command in `--dry-run` mode.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `global-style`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Causes npm to install the package into your local `node_modules` folder with
|
||||
the same layout it uses with the global `node_modules` folder. Only your
|
||||
direct dependencies will show in `node_modules` and everything they depend
|
||||
on will be flattened in their `node_modules` folders. This obviously will
|
||||
eliminate some deduping. If used with `legacy-bundling`, `legacy-bundling`
|
||||
will be preferred.
|
||||
|
||||
#### `legacy-bundling`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with `global-style` this option
|
||||
will be preferred.
|
||||
|
||||
#### `strict-peer-deps`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If set to `true`, and `--legacy-peer-deps` is not set, then _any_
|
||||
conflicting `peerDependencies` will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.
|
||||
|
||||
By default, conflicting `peerDependencies` deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package's `peerDependencies` object.
|
||||
|
||||
When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If `--strict-peer-deps` is set, then
|
||||
this warning is treated as a failure.
|
||||
|
||||
#### `package-lock`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
If set to false, then ignore `package-lock.json` files when installing. This
|
||||
will also prevent _writing_ `package-lock.json` if `save` is true.
|
||||
|
||||
When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use `npm prune`.
|
||||
|
||||
#### `omit`
|
||||
|
||||
* Default: 'dev' if the `NODE_ENV` environment variable is set to
|
||||
'production', otherwise empty.
|
||||
* Type: "dev", "optional", or "peer" (can be set multiple times)
|
||||
|
||||
Dependency types to omit from the installation tree on disk.
|
||||
|
||||
Note that these dependencies _are_ still resolved and added to the
|
||||
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
|
||||
physically installed on disk.
|
||||
|
||||
If a package type appears in both the `--include` and `--omit` lists, then
|
||||
it will be included.
|
||||
|
||||
If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
|
||||
variable will be set to `'production'` for all lifecycle scripts.
|
||||
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `audit`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" submit audit reports alongside `npm install` runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
[`npm audit`](/commands/npm-audit) for details on what is submitted.
|
||||
|
||||
#### `bin-links`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Tells npm to create symlinks (or `.cmd` shims on Windows) for package
|
||||
executables.
|
||||
|
||||
Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don't support symlinks, even on ostensibly Unix
|
||||
systems.
|
||||
|
||||
#### `fund`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" displays the message at the end of each `npm install`
|
||||
acknowledging the number of dependencies looking for funding. See [`npm
|
||||
fund`](/commands/npm-fund) for details.
|
||||
|
||||
#### `dry-run`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Indicates that you don't want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, `install`, `update`,
|
||||
`dedupe`, `uninstall`, as well as `pack` and `publish`.
|
||||
|
||||
Note: This is NOT honored by other network related commands, eg `dist-tags`,
|
||||
`owner`, etc.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm find-dupes](/commands/npm-find-dupes)
|
||||
|
|
|
|||
24
deps/npm/docs/content/commands/npm-deprecate.md
vendored
24
deps/npm/docs/content/commands/npm-deprecate.md
vendored
|
|
@ -40,6 +40,30 @@ To un-deprecate a package, specify an empty string (`""`) for the `message`
|
|||
argument. Note that you must use double quotes with no space between them to
|
||||
format an empty string.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### `otp`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String
|
||||
|
||||
This is a one-time password from a two-factor authenticator. It's needed
|
||||
when publishing or changing package permissions with `npm access`.
|
||||
|
||||
If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm publish](/commands/npm-publish)
|
||||
|
|
|
|||
96
deps/npm/docs/content/commands/npm-diff.md
vendored
96
deps/npm/docs/content/commands/npm-diff.md
vendored
|
|
@ -153,82 +153,96 @@ located within the folder `./lib/` and changed lines of code within the
|
|||
|
||||
### Configuration
|
||||
|
||||
#### diff
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `diff`
|
||||
|
||||
* Type: Array
|
||||
* Default: null
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Defines npm package specifiers to compare using the `npm diff` command.
|
||||
Define arguments to compare in `npm diff`.
|
||||
|
||||
This can be specified up to 2 times.
|
||||
#### `diff-name-only`
|
||||
|
||||
#### diff-name-only
|
||||
|
||||
* Type: Boolean
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
When set to `true` running `npm diff` only returns the names of the files that
|
||||
have any difference.
|
||||
Prints only filenames when using `npm diff`.
|
||||
|
||||
#### diff-unified
|
||||
#### `diff-unified`
|
||||
|
||||
* Default: 3
|
||||
* Type: Number
|
||||
* Default: `3`
|
||||
|
||||
The number of lines of context to print in the unified diff format output.
|
||||
The number of lines of context to print in `npm diff`.
|
||||
|
||||
#### diff-ignore-all-space
|
||||
#### `diff-ignore-all-space`
|
||||
|
||||
* Type: Boolean
|
||||
* Default: false
|
||||
|
||||
Ignore whitespace when comparing lines. This ignores differences even if one
|
||||
line has whitespace where the other line has none.
|
||||
|
||||
#### diff-no-prefix
|
||||
|
||||
* Type: Boolean
|
||||
|
||||
Ignore whitespace when comparing lines in `npm diff`.
|
||||
|
||||
#### `diff-no-prefix`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Do not show any source or destination prefix.
|
||||
Do not show any source or destination prefix in `npm diff` output.
|
||||
|
||||
#### diff-src-prefix
|
||||
Note: this causes `npm diff` to ignore the `--diff-src-prefix` and
|
||||
`--diff-dst-prefix` configs.
|
||||
|
||||
#### `diff-src-prefix`
|
||||
|
||||
* Default: "a/"
|
||||
* Type: String
|
||||
* Default: `"a/"`
|
||||
|
||||
Show the given source prefix in diff patches headers instead of using "a/".
|
||||
Source prefix to be used in `npm diff` output.
|
||||
|
||||
#### diff-dst-prefix
|
||||
#### `diff-dst-prefix`
|
||||
|
||||
* Default: "b/"
|
||||
* Type: String
|
||||
* Default: `"b/"`
|
||||
|
||||
Show the given source prefix in diff patches headers instead of using "b/".
|
||||
Destination prefix to be used in `npm diff` output.
|
||||
|
||||
#### diff-text
|
||||
|
||||
* Type: Boolean
|
||||
* Default: false
|
||||
|
||||
Treat all files as text.
|
||||
|
||||
#### global
|
||||
#### `diff-text`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Uses packages from the global space as a source for comparison.
|
||||
Treat all files as text in `npm diff`.
|
||||
|
||||
#### tag
|
||||
#### `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`
|
||||
|
||||
#### `tag`
|
||||
|
||||
* Default: "latest"
|
||||
* Type: String
|
||||
* Default: `"latest"`
|
||||
|
||||
The tag used to fetch the tarball that will be compared with the local file
|
||||
system files when running npm diff with no arguments.
|
||||
If you ask npm to install a package and don't tell it a specific version,
|
||||
then it will install the specified tag.
|
||||
|
||||
Also the tag that is added to the package@version specified by the `npm tag`
|
||||
command, if no explicit tag is given.
|
||||
|
||||
When used by the `npm diff` command, this is the tag used to fetch the
|
||||
tarball that will be compared with the local files by default.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
## See Also
|
||||
|
||||
* [npm outdated](/commands/npm-outdated)
|
||||
|
|
|
|||
38
deps/npm/docs/content/commands/npm-dist-tag.md
vendored
38
deps/npm/docs/content/commands/npm-dist-tag.md
vendored
|
|
@ -90,15 +90,41 @@ not begin with a number or the letter `v`.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### workspaces
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `workspace`
|
||||
|
||||
Only supported by `ls`. Enables listing dist-tags of all workspace
|
||||
contexts defined in the current `package.json`.
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
#### workspace
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Only supported by `ls`. Enables listing dist-tags of workspace contexts
|
||||
limiting results to only those specified by this config item.
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
53
deps/npm/docs/content/commands/npm-docs.md
vendored
53
deps/npm/docs/content/commands/npm-docs.md
vendored
|
|
@ -22,37 +22,60 @@ the `name` property.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### browser
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `browser`
|
||||
|
||||
* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
|
||||
* Type: String or Boolean
|
||||
* Type: null, Boolean, or String
|
||||
|
||||
The browser that is called by the `npm docs` command to open websites.
|
||||
The browser that is called by npm commands to open websites.
|
||||
|
||||
Set to `false` to suppress browser behavior and instead print urls to
|
||||
terminal.
|
||||
|
||||
Set to `true` to use default system URL opener.
|
||||
|
||||
#### registry
|
||||
#### `registry`
|
||||
|
||||
* Default: https://registry.npmjs.org/
|
||||
* Type: url
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm package registry.
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### workspaces
|
||||
#### `workspace`
|
||||
|
||||
Enables workspaces context while searching the `package.json` in the
|
||||
current folder. Documentation urls for the packages named in each
|
||||
workspace will be opened.
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
#### workspace
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Enables workspaces context and limits results to only those specified by
|
||||
this config item. Only the documentation urls for the packages named in
|
||||
the workspaces given here will be opened.
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
13
deps/npm/docs/content/commands/npm-doctor.md
vendored
13
deps/npm/docs/content/commands/npm-doctor.md
vendored
|
|
@ -102,6 +102,19 @@ located with `npm config get cache`). In the event that there are corrupt
|
|||
packages in your cache, you should probably run `npm cache clean -f` and
|
||||
reset the cache.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm bugs](/commands/npm-bugs)
|
||||
|
|
|
|||
14
deps/npm/docs/content/commands/npm-edit.md
vendored
14
deps/npm/docs/content/commands/npm-edit.md
vendored
|
|
@ -27,13 +27,17 @@ changes to your locally installed copy.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### editor
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `editor`
|
||||
|
||||
* Default: `EDITOR` environment variable if set, or `"vi"` on Posix,
|
||||
or `"notepad"` on Windows.
|
||||
* Type: path
|
||||
* Default: The EDITOR or VISUAL environment variables, or 'notepad.exe' on
|
||||
Windows, or 'vim' on Unix systems
|
||||
* Type: String
|
||||
|
||||
The command to run for `npm edit` or `npm config edit`.
|
||||
The command to run for `npm edit` and `npm config edit`.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
79
deps/npm/docs/content/commands/npm-exec.md
vendored
79
deps/npm/docs/content/commands/npm-exec.md
vendored
|
|
@ -120,6 +120,64 @@ thus be equivalent to the `npx` command above:
|
|||
$ npm exec -- foo@latest bar --package=@npmcli/foo
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `package`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
The package to install for [`npm exec`](/commands/npm-exec)
|
||||
|
||||
#### `call`
|
||||
|
||||
* Default: ""
|
||||
* Type: String
|
||||
|
||||
Optional companion option for `npm exec`, `npx` that allows for specifying a
|
||||
custom command to be run along with the installed packages.
|
||||
|
||||
```bash
|
||||
npm exec --package yo --package generator-node --call "yo node"
|
||||
```
|
||||
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### Examples
|
||||
|
||||
Run the version of `tap` in the local dependencies, with the provided
|
||||
|
|
@ -260,18 +318,21 @@ an error.
|
|||
|
||||
#### workspace
|
||||
|
||||
* Alias: `-w`
|
||||
* Type: Array
|
||||
* Default: `[]`
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running scripts in the context of workspaces while also filtering by
|
||||
the provided names or paths provided.
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
- Workspace names
|
||||
- Path to a workspace directory
|
||||
- Path to a parent workspace directory (will result to selecting all of the
|
||||
children workspaces)
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### workspaces
|
||||
|
||||
|
|
|
|||
33
deps/npm/docs/content/commands/npm-explain.md
vendored
33
deps/npm/docs/content/commands/npm-explain.md
vendored
|
|
@ -54,13 +54,40 @@ node_modules/nyc/node_modules/find-up
|
|||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
#### json
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Show information in JSON format.
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
10
deps/npm/docs/content/commands/npm-explore.md
vendored
10
deps/npm/docs/content/commands/npm-explore.md
vendored
|
|
@ -31,14 +31,18 @@ sure to use `npm rebuild <pkg>` if you make any changes.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### shell
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `shell`
|
||||
|
||||
* Default: SHELL environment variable, or "bash" on Posix, or "cmd" on
|
||||
* Default: SHELL environment variable, or "bash" on Posix, or "cmd.exe" on
|
||||
Windows
|
||||
* Type: path
|
||||
* Type: String
|
||||
|
||||
The shell to run for the `npm explore` command.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm folders](/configuring-npm/folders)
|
||||
|
|
|
|||
151
deps/npm/docs/content/commands/npm-find-dupes.md
vendored
151
deps/npm/docs/content/commands/npm-find-dupes.md
vendored
|
|
@ -15,6 +15,157 @@ npm find-dupes
|
|||
Runs `npm dedupe` in `--dry-run` mode, making npm only output the
|
||||
duplications, without actually changing the package tree.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `global-style`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Causes npm to install the package into your local `node_modules` folder with
|
||||
the same layout it uses with the global `node_modules` folder. Only your
|
||||
direct dependencies will show in `node_modules` and everything they depend
|
||||
on will be flattened in their `node_modules` folders. This obviously will
|
||||
eliminate some deduping. If used with `legacy-bundling`, `legacy-bundling`
|
||||
will be preferred.
|
||||
|
||||
#### `legacy-bundling`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with `global-style` this option
|
||||
will be preferred.
|
||||
|
||||
#### `strict-peer-deps`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If set to `true`, and `--legacy-peer-deps` is not set, then _any_
|
||||
conflicting `peerDependencies` will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.
|
||||
|
||||
By default, conflicting `peerDependencies` deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package's `peerDependencies` object.
|
||||
|
||||
When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If `--strict-peer-deps` is set, then
|
||||
this warning is treated as a failure.
|
||||
|
||||
#### `package-lock`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
If set to false, then ignore `package-lock.json` files when installing. This
|
||||
will also prevent _writing_ `package-lock.json` if `save` is true.
|
||||
|
||||
When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use `npm prune`.
|
||||
|
||||
#### `omit`
|
||||
|
||||
* Default: 'dev' if the `NODE_ENV` environment variable is set to
|
||||
'production', otherwise empty.
|
||||
* Type: "dev", "optional", or "peer" (can be set multiple times)
|
||||
|
||||
Dependency types to omit from the installation tree on disk.
|
||||
|
||||
Note that these dependencies _are_ still resolved and added to the
|
||||
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
|
||||
physically installed on disk.
|
||||
|
||||
If a package type appears in both the `--include` and `--omit` lists, then
|
||||
it will be included.
|
||||
|
||||
If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
|
||||
variable will be set to `'production'` for all lifecycle scripts.
|
||||
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `audit`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" submit audit reports alongside `npm install` runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
[`npm audit`](/commands/npm-audit) for details on what is submitted.
|
||||
|
||||
#### `bin-links`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Tells npm to create symlinks (or `.cmd` shims on Windows) for package
|
||||
executables.
|
||||
|
||||
Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don't support symlinks, even on ostensibly Unix
|
||||
systems.
|
||||
|
||||
#### `fund`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" displays the message at the end of each `npm install`
|
||||
acknowledging the number of dependencies looking for funding. See [`npm
|
||||
fund`](/commands/npm-fund) for details.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm dedupe](/commands/npm-dedupe)
|
||||
|
|
|
|||
53
deps/npm/docs/content/commands/npm-fund.md
vendored
53
deps/npm/docs/content/commands/npm-fund.md
vendored
|
|
@ -64,27 +64,37 @@ test-workspaces-fund@1.0.0
|
|||
|
||||
### Configuration
|
||||
|
||||
#### browser
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `browser`
|
||||
|
||||
* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
|
||||
* Type: String
|
||||
* Type: null, Boolean, or String
|
||||
|
||||
The browser that is called by the `npm fund` command to open websites.
|
||||
The browser that is called by npm commands to open websites.
|
||||
|
||||
#### json
|
||||
Set to `false` to suppress browser behavior and instead print urls to
|
||||
terminal.
|
||||
|
||||
Set to `true` to use default system URL opener.
|
||||
|
||||
#### `unicode`
|
||||
|
||||
* Default: false on windows, true on mac/unix systems with a unicode locale,
|
||||
as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
|
||||
* Type: Boolean
|
||||
* Default: false
|
||||
|
||||
Show information in JSON format.
|
||||
|
||||
#### unicode
|
||||
|
||||
* Type: Boolean
|
||||
* Default: true
|
||||
|
||||
Whether to represent the tree structure using unicode characters.
|
||||
Set it to `false` in order to use all-ansi output.
|
||||
When set to true, npm uses unicode characters in the tree output. When
|
||||
false, it uses ascii characters instead of unicode glyphs.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
|
|
@ -96,20 +106,27 @@ current project while filtering by running only the workspaces defined by
|
|||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### which
|
||||
#### `which`
|
||||
|
||||
* Type: Number
|
||||
* Default: undefined
|
||||
* Default: null
|
||||
* Type: null or Number
|
||||
|
||||
If there are multiple funding sources, which 1-indexed source URL to open.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
## See Also
|
||||
|
||||
* [npm install](/commands/npm-install)
|
||||
|
|
|
|||
|
|
@ -25,15 +25,16 @@ directly.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### long
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `long`
|
||||
|
||||
* Type: Boolean
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, the "long" flag will cause help-search to output context around
|
||||
where the terms were found in the documentation.
|
||||
Show extended information in `ls`, `search`, and `help-search`.
|
||||
|
||||
If false, then help-search will just list out the help topics found.
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
8
deps/npm/docs/content/commands/npm-help.md
vendored
8
deps/npm/docs/content/commands/npm-help.md
vendored
|
|
@ -23,15 +23,19 @@ topic, so unique matches are equivalent to specifying a topic name.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### viewer
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `viewer`
|
||||
|
||||
* Default: "man" on Posix, "browser" on Windows
|
||||
* Type: path
|
||||
* Type: String
|
||||
|
||||
The program to use to view help content.
|
||||
|
||||
Set to `"browser"` to view html help content in the default web browser.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm](/commands/npm)
|
||||
|
|
|
|||
24
deps/npm/docs/content/commands/npm-hook.md
vendored
24
deps/npm/docs/content/commands/npm-hook.md
vendored
|
|
@ -83,6 +83,30 @@ Remove a hook:
|
|||
$ npm hook rm id-deadbeef
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### `otp`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String
|
||||
|
||||
This is a one-time password from a two-factor authenticator. It's needed
|
||||
when publishing or changing package permissions with `npm access`.
|
||||
|
||||
If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* ["Introducing Hooks" blog post](https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm)
|
||||
|
|
|
|||
85
deps/npm/docs/content/commands/npm-init.md
vendored
85
deps/npm/docs/content/commands/npm-init.md
vendored
|
|
@ -7,7 +7,7 @@ description: Create a package.json file
|
|||
### Synopsis
|
||||
|
||||
```bash
|
||||
npm init [--force|-f|--yes|-y|--scope]
|
||||
npm init [--yes|-y|--scope]
|
||||
npm init <@scope> (same as `npm exec <@scope>/create`)
|
||||
npm init [<@scope>/]<name> (same as `npm exec [<@scope>/]create-<name>`)
|
||||
npm init [-w <dir>] [args...]
|
||||
|
|
@ -143,54 +143,75 @@ dot to represent the current directory in that context, e.g: `react-app .`:
|
|||
`-- ...
|
||||
```
|
||||
|
||||
### A note on caching
|
||||
### Configuration
|
||||
|
||||
The npm cli utilizes its internal package cache when using the package
|
||||
name specified. You can use the following to change how and when the
|
||||
cli uses this cache. See [`npm cache`](/commands/npm-cache) for more on
|
||||
how the cache works.
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `yes`
|
||||
|
||||
#### prefer-online
|
||||
* Default: null
|
||||
* Type: null or Boolean
|
||||
|
||||
Forces staleness checks for packages, making the cli look for updates
|
||||
immediately even if the package is already in the cache.
|
||||
Automatically answer "yes" to any prompts that npm might print on the
|
||||
command line.
|
||||
|
||||
#### prefer-offline
|
||||
#### `force`
|
||||
|
||||
Bypasses staleness checks for packages. Missing data will still be
|
||||
requested from the server. To force full offline mode, use `offline`.
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
#### offline
|
||||
Removes various protections against unfortunate side effects, common
|
||||
mistakes, unnecessary performance degradation, and malicious input.
|
||||
|
||||
Forces full offline mode. Any packages not locally cached will result in
|
||||
an error.
|
||||
* Allow clobbering non-npm files in global installs.
|
||||
* Allow the `npm version` command to work on an unclean git repository.
|
||||
* Allow deleting the cache folder with `npm cache clean`.
|
||||
* Allow installing packages that have an `engines` declaration requiring a
|
||||
different version of npm.
|
||||
* Allow installing packages that have an `engines` declaration requiring a
|
||||
different version of `node`, even if `--engine-strict` is enabled.
|
||||
* Allow `npm audit fix` to install modules outside your stated dependency
|
||||
range (including SemVer-major changes).
|
||||
* Allow unpublishing all versions of a published package.
|
||||
* Allow conflicting peerDependencies to be installed in the root project.
|
||||
* Implicitly set `--yes` during `npm init`.
|
||||
|
||||
#### workspace
|
||||
If you don't have a clear idea of what you want to do, it is strongly
|
||||
recommended that you do not use this option!
|
||||
|
||||
* Alias: `-w`
|
||||
* Type: Array
|
||||
* Default: `[]`
|
||||
#### `workspace`
|
||||
|
||||
Enable running `npm init` in the context of workspaces, creating any missing
|
||||
folders, generating files and adding/updating the `"workspaces"` property of
|
||||
the project `package.json`.
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
the provided names or paths provided.
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
- Workspace names
|
||||
- Path to a workspace directory
|
||||
- Path to a parent workspace directory (will result to selecting all of the
|
||||
children workspaces)
|
||||
|
||||
#### workspaces
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
* Alias: `-ws`
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* Default: `false`
|
||||
|
||||
Run `npm init` in the context of all configured workspaces for the
|
||||
current project.
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,32 @@ alias: npm cit
|
|||
|
||||
This command runs `npm ci` followed immediately by `npm test`.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `script-shell`
|
||||
|
||||
* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
|
||||
* Type: null or String
|
||||
|
||||
The shell to use for scripts run with the `npm exec`, `npm run` and `npm
|
||||
init <pkg>` commands.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm install-test](/commands/npm-install-test)
|
||||
|
|
|
|||
196
deps/npm/docs/content/commands/npm-install-test.md
vendored
196
deps/npm/docs/content/commands/npm-install-test.md
vendored
|
|
@ -25,6 +25,202 @@ common options: [--save|--save-dev|--save-optional] [--save-exact] [--dry-run]
|
|||
This command runs an `npm install` followed immediately by an `npm test`. It
|
||||
takes exactly the same arguments as `npm install`.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `save`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Save installed packages to a package.json file as dependencies.
|
||||
|
||||
When used with the `npm rm` command, removes the dependency from
|
||||
package.json.
|
||||
|
||||
#### `save-exact`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Dependencies saved to package.json will be configured with an exact version
|
||||
rather than using npm's default semver range operator.
|
||||
|
||||
#### `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`
|
||||
|
||||
#### `global-style`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Causes npm to install the package into your local `node_modules` folder with
|
||||
the same layout it uses with the global `node_modules` folder. Only your
|
||||
direct dependencies will show in `node_modules` and everything they depend
|
||||
on will be flattened in their `node_modules` folders. This obviously will
|
||||
eliminate some deduping. If used with `legacy-bundling`, `legacy-bundling`
|
||||
will be preferred.
|
||||
|
||||
#### `legacy-bundling`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with `global-style` this option
|
||||
will be preferred.
|
||||
|
||||
#### `strict-peer-deps`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If set to `true`, and `--legacy-peer-deps` is not set, then _any_
|
||||
conflicting `peerDependencies` will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.
|
||||
|
||||
By default, conflicting `peerDependencies` deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package's `peerDependencies` object.
|
||||
|
||||
When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If `--strict-peer-deps` is set, then
|
||||
this warning is treated as a failure.
|
||||
|
||||
#### `package-lock`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
If set to false, then ignore `package-lock.json` files when installing. This
|
||||
will also prevent _writing_ `package-lock.json` if `save` is true.
|
||||
|
||||
When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use `npm prune`.
|
||||
|
||||
#### `omit`
|
||||
|
||||
* Default: 'dev' if the `NODE_ENV` environment variable is set to
|
||||
'production', otherwise empty.
|
||||
* Type: "dev", "optional", or "peer" (can be set multiple times)
|
||||
|
||||
Dependency types to omit from the installation tree on disk.
|
||||
|
||||
Note that these dependencies _are_ still resolved and added to the
|
||||
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
|
||||
physically installed on disk.
|
||||
|
||||
If a package type appears in both the `--include` and `--omit` lists, then
|
||||
it will be included.
|
||||
|
||||
If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
|
||||
variable will be set to `'production'` for all lifecycle scripts.
|
||||
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `audit`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" submit audit reports alongside `npm install` runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
[`npm audit`](/commands/npm-audit) for details on what is submitted.
|
||||
|
||||
#### `bin-links`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Tells npm to create symlinks (or `.cmd` shims on Windows) for package
|
||||
executables.
|
||||
|
||||
Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don't support symlinks, even on ostensibly Unix
|
||||
systems.
|
||||
|
||||
#### `fund`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" displays the message at the end of each `npm install`
|
||||
acknowledging the number of dependencies looking for funding. See [`npm
|
||||
fund`](/commands/npm-fund) for details.
|
||||
|
||||
#### `dry-run`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Indicates that you don't want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, `install`, `update`,
|
||||
`dedupe`, `uninstall`, as well as `pack` and `publish`.
|
||||
|
||||
Note: This is NOT honored by other network related commands, eg `dist-tags`,
|
||||
`owner`, etc.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm install](/commands/npm-install)
|
||||
|
|
|
|||
228
deps/npm/docs/content/commands/npm-install.md
vendored
228
deps/npm/docs/content/commands/npm-install.md
vendored
|
|
@ -411,89 +411,199 @@ does.
|
|||
|
||||
These are some of the most common options related to installation.
|
||||
|
||||
#### Configuration Options Affecting Dependency Resolution And Tree Design
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `save`
|
||||
|
||||
* `-g` or `--global`: install the package globally rather than locally.
|
||||
See [folders](/configuring-npm/folders).
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
* `--global-style`: install the package into your local `node_modules`
|
||||
folder with the same layout it uses with the global `node_modules`
|
||||
folder. Only your direct dependencies will show in `node_modules` and
|
||||
everything they depend on will be flattened in their `node_modules`
|
||||
folders. This obviously will eliminate some deduping.
|
||||
Save installed packages to a package.json file as dependencies.
|
||||
|
||||
* `--legacy-bundling`: install the package in the style of versions of npm
|
||||
prior to 1.4, where dependencies are not automatically deduped up to the
|
||||
shallowest level in the tree possible. This is extremely
|
||||
disk-inefficient.
|
||||
When used with the `npm rm` command, removes the dependency from
|
||||
package.json.
|
||||
|
||||
* `--legacy-peer-deps`: ignore all `peerDependencies` when installing, in
|
||||
the style of npm version 4 through version 6.
|
||||
#### `save-exact`
|
||||
|
||||
* `--strict-peer-deps`: fail and abort the install process for any
|
||||
conflicting peerDependencies when encountered. By default, npm will only
|
||||
crash for peerDependencies conflicts caused by the direct dependencies of
|
||||
the root project.
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
* `--no-package-lock` (alias: `--no-shrinkwrap`): do not read the
|
||||
lockfile (`package-lock.json` or `npm-shrinkwrap.json`) for the intended
|
||||
package tree, and do not save the resulting package tree back to a
|
||||
lockfile.
|
||||
Dependencies saved to package.json will be configured with an exact version
|
||||
rather than using npm's default semver range operator.
|
||||
|
||||
#### Omitting Dependency Types
|
||||
#### `global`
|
||||
|
||||
You may omit certain types of dependencies by using the `--omit=<type>`
|
||||
config option. This may be specified multiple types on the command line.
|
||||
To enter `omit` options in `.npmrc` files, use the following syntax:
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
```ini
|
||||
omit[] = dev
|
||||
omit[] = optional
|
||||
; etc...
|
||||
```
|
||||
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.
|
||||
|
||||
The dependency types that may be omitted or included are:
|
||||
* 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`
|
||||
|
||||
* `peer`: any `peerDependencies`, including those with a
|
||||
`peerDependenciesMeta` entry specifying `optional: true`
|
||||
* `optional`: dependencies listed in `optionalDependencies`
|
||||
* `dev`: dependencies listed in `devDependencies`
|
||||
#### `global-style`
|
||||
|
||||
To re-include dependency, use the `--include` option, which may also be
|
||||
specified multiple times.
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Legacy shorthands for `omit` settings are:
|
||||
Causes npm to install the package into your local `node_modules` folder with
|
||||
the same layout it uses with the global `node_modules` folder. Only your
|
||||
direct dependencies will show in `node_modules` and everything they depend
|
||||
on will be flattened in their `node_modules` folders. This obviously will
|
||||
eliminate some deduping. If used with `legacy-bundling`, `legacy-bundling`
|
||||
will be preferred.
|
||||
|
||||
* `--no-optional`: prevent optionalDependencies from being installed. Note
|
||||
that their presence is still entered in the `package-lock.json` file, and
|
||||
the tree is designed such that they _can_ be installed in the future.
|
||||
#### `legacy-bundling`
|
||||
|
||||
* `--prod`: prevent devDependencies from being installed.
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
* `--only=prod`: omit `devDependencies`
|
||||
Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with `global-style` this option
|
||||
will be preferred.
|
||||
|
||||
* `--also=dev`: include `devDependencies`
|
||||
#### `strict-peer-deps`
|
||||
|
||||
#### Configuration Options Affecting Build Process
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
* `--ignore-scripts`: do not execute any scripts defined in the
|
||||
package.json. See [`scripts`](/using-npm/scripts).
|
||||
If set to `true`, and `--legacy-peer-deps` is not set, then _any_
|
||||
conflicting `peerDependencies` will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.
|
||||
|
||||
* `--no-audit`: disable sending audit reports to the configured registries.
|
||||
See [`npm-audit`](npm-audit) for details on what is sent.
|
||||
By default, conflicting `peerDependencies` deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package's `peerDependencies` object.
|
||||
|
||||
* `--no-bin-links`: prevent npm from creating symlinks for any binaries the
|
||||
package might contain.
|
||||
When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If `--strict-peer-deps` is set, then
|
||||
this warning is treated as a failure.
|
||||
|
||||
* `--no-fund`: suppress the message displayed at the end of each install
|
||||
that acknowledges the number of dependencies looking for funding. See
|
||||
[`npm-fund`](/commands/npm-fund)
|
||||
#### `package-lock`
|
||||
|
||||
* `--dry-run`: Do not actually install anything into the `node_modules`
|
||||
folder. Just build the intended tree in memory, and report on it.
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
* `--no-save`: Do not save installed dependencies to `package.json` or
|
||||
`package-lock.json`.
|
||||
If set to false, then ignore `package-lock.json` files when installing. This
|
||||
will also prevent _writing_ `package-lock.json` if `save` is true.
|
||||
|
||||
When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use `npm prune`.
|
||||
|
||||
#### `omit`
|
||||
|
||||
* Default: 'dev' if the `NODE_ENV` environment variable is set to
|
||||
'production', otherwise empty.
|
||||
* Type: "dev", "optional", or "peer" (can be set multiple times)
|
||||
|
||||
Dependency types to omit from the installation tree on disk.
|
||||
|
||||
Note that these dependencies _are_ still resolved and added to the
|
||||
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
|
||||
physically installed on disk.
|
||||
|
||||
If a package type appears in both the `--include` and `--omit` lists, then
|
||||
it will be included.
|
||||
|
||||
If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
|
||||
variable will be set to `'production'` for all lifecycle scripts.
|
||||
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `audit`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" submit audit reports alongside `npm install` runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
[`npm audit`](/commands/npm-audit) for details on what is submitted.
|
||||
|
||||
#### `bin-links`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Tells npm to create symlinks (or `.cmd` shims on Windows) for package
|
||||
executables.
|
||||
|
||||
Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don't support symlinks, even on ostensibly Unix
|
||||
systems.
|
||||
|
||||
#### `fund`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" displays the message at the end of each `npm install`
|
||||
acknowledging the number of dependencies looking for funding. See [`npm
|
||||
fund`](/commands/npm-fund) for details.
|
||||
|
||||
#### `dry-run`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Indicates that you don't want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, `install`, `update`,
|
||||
`dedupe`, `uninstall`, as well as `pack` and `publish`.
|
||||
|
||||
Note: This is NOT honored by other network related commands, eg `dist-tags`,
|
||||
`owner`, etc.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### Algorithm
|
||||
|
||||
|
|
|
|||
164
deps/npm/docs/content/commands/npm-link.md
vendored
164
deps/npm/docs/content/commands/npm-link.md
vendored
|
|
@ -99,6 +99,170 @@ relevant metadata by running `npm install <dep> --package-lock-only`.
|
|||
If you _want_ to save the `file:` reference in your `package.json` and
|
||||
`package-lock.json` files, you can use `npm link <dep> --save` to do so.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `save`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Save installed packages to a package.json file as dependencies.
|
||||
|
||||
When used with the `npm rm` command, removes the dependency from
|
||||
package.json.
|
||||
|
||||
#### `save-exact`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Dependencies saved to package.json will be configured with an exact version
|
||||
rather than using npm's default semver range operator.
|
||||
|
||||
#### `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`
|
||||
|
||||
#### `global-style`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Causes npm to install the package into your local `node_modules` folder with
|
||||
the same layout it uses with the global `node_modules` folder. Only your
|
||||
direct dependencies will show in `node_modules` and everything they depend
|
||||
on will be flattened in their `node_modules` folders. This obviously will
|
||||
eliminate some deduping. If used with `legacy-bundling`, `legacy-bundling`
|
||||
will be preferred.
|
||||
|
||||
#### `legacy-bundling`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with `global-style` this option
|
||||
will be preferred.
|
||||
|
||||
#### `strict-peer-deps`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If set to `true`, and `--legacy-peer-deps` is not set, then _any_
|
||||
conflicting `peerDependencies` will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.
|
||||
|
||||
By default, conflicting `peerDependencies` deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package's `peerDependencies` object.
|
||||
|
||||
When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If `--strict-peer-deps` is set, then
|
||||
this warning is treated as a failure.
|
||||
|
||||
#### `package-lock`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
If set to false, then ignore `package-lock.json` files when installing. This
|
||||
will also prevent _writing_ `package-lock.json` if `save` is true.
|
||||
|
||||
When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use `npm prune`.
|
||||
|
||||
#### `omit`
|
||||
|
||||
* Default: 'dev' if the `NODE_ENV` environment variable is set to
|
||||
'production', otherwise empty.
|
||||
* Type: "dev", "optional", or "peer" (can be set multiple times)
|
||||
|
||||
Dependency types to omit from the installation tree on disk.
|
||||
|
||||
Note that these dependencies _are_ still resolved and added to the
|
||||
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
|
||||
physically installed on disk.
|
||||
|
||||
If a package type appears in both the `--include` and `--omit` lists, then
|
||||
it will be included.
|
||||
|
||||
If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
|
||||
variable will be set to `'production'` for all lifecycle scripts.
|
||||
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `audit`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" submit audit reports alongside `npm install` runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
[`npm audit`](/commands/npm-audit) for details on what is submitted.
|
||||
|
||||
#### `bin-links`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Tells npm to create symlinks (or `.cmd` shims on Windows) for package
|
||||
executables.
|
||||
|
||||
Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don't support symlinks, even on ostensibly Unix
|
||||
systems.
|
||||
|
||||
#### `fund`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" displays the message at the end of each `npm install`
|
||||
acknowledging the number of dependencies looking for funding. See [`npm
|
||||
fund`](/commands/npm-fund) for details.
|
||||
|
||||
#### `dry-run`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Indicates that you don't want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, `install`, `update`,
|
||||
`dedupe`, `uninstall`, as well as `pack` and `publish`.
|
||||
|
||||
Note: This is NOT honored by other network related commands, eg `dist-tags`,
|
||||
`owner`, etc.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm developers](/using-npm/developers)
|
||||
|
|
|
|||
42
deps/npm/docs/content/commands/npm-logout.md
vendored
42
deps/npm/docs/content/commands/npm-logout.md
vendored
|
|
@ -27,22 +27,46 @@ connected to that scope, if set.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### registry
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
Default: https://registry.npmjs.org/
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm package registry. If `scope` is also specified,
|
||||
it takes precedence.
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### scope
|
||||
#### `scope`
|
||||
|
||||
Default: The scope of your current project, if any, otherwise none.
|
||||
* Default: the scope of the current project, if any, or ""
|
||||
* Type: String
|
||||
|
||||
If specified, you will be logged out of the specified scope. See [`scope`](/using-npm/scope).
|
||||
Associate an operation with a scope for a scoped registry.
|
||||
|
||||
Useful when logging in to or out of a private registry:
|
||||
|
||||
```bash
|
||||
npm logout --scope=@myco
|
||||
```
|
||||
# log in, linking the scope to the custom registry
|
||||
npm login --scope=@mycorp --registry=https://registry.mycorp.com
|
||||
|
||||
# log out, removing the link and the auth token
|
||||
npm logout --scope=@mycorp
|
||||
```
|
||||
|
||||
This will cause `@mycorp` to be mapped to the registry for future
|
||||
installation of packages specified according to the pattern
|
||||
`@mycorp/package`.
|
||||
|
||||
This will also cause `npm init` to create a scoped package.
|
||||
|
||||
```
|
||||
# accept all defaults, and create a package named "@foo/whatever",
|
||||
# instead of just named "whatever"
|
||||
npm init --scope=@foo --yes
|
||||
```
|
||||
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
141
deps/npm/docs/content/commands/npm-ls.md
vendored
141
deps/npm/docs/content/commands/npm-ls.md
vendored
|
|
@ -73,86 +73,143 @@ least the default human-readable `npm ls` output in npm v8.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### all
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `all`
|
||||
|
||||
* Default: `false`
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
When running `npm outdated` and `npm ls`, setting `--all` will show all
|
||||
outdated or installed packages, rather than only those directly depended
|
||||
upon by the current project.
|
||||
|
||||
#### json
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Show information in JSON format.
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
#### long
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `long`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Show extended information.
|
||||
Show extended information in `ls`, `search`, and `help-search`.
|
||||
|
||||
#### parseable
|
||||
#### `parseable`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Show parseable output instead of tree view.
|
||||
Output parseable results from commands that write to standard output. For
|
||||
`npm search`, this will be tab-separated table format.
|
||||
|
||||
#### global
|
||||
#### `global`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
List packages in the global install prefix instead of in the current
|
||||
project.
|
||||
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.
|
||||
|
||||
#### depth
|
||||
* 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`
|
||||
|
||||
* Type: Int
|
||||
#### `depth`
|
||||
|
||||
Max display depth of the dependency tree.
|
||||
* Default: `Infinity` if `--all` is set, otherwise `1`
|
||||
* Type: null or Number
|
||||
|
||||
#### prod / production
|
||||
The depth to go when recursing packages for `npm ls`.
|
||||
|
||||
If not set, `npm ls` will show only the immediate dependencies of the root
|
||||
project. If `--all` is set, then npm will show all dependencies by default.
|
||||
|
||||
#### `omit`
|
||||
|
||||
* Default: 'dev' if the `NODE_ENV` environment variable is set to
|
||||
'production', otherwise empty.
|
||||
* Type: "dev", "optional", or "peer" (can be set multiple times)
|
||||
|
||||
Dependency types to omit from the installation tree on disk.
|
||||
|
||||
Note that these dependencies _are_ still resolved and added to the
|
||||
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
|
||||
physically installed on disk.
|
||||
|
||||
If a package type appears in both the `--include` and `--omit` lists, then
|
||||
it will be included.
|
||||
|
||||
If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
|
||||
variable will be set to `'production'` for all lifecycle scripts.
|
||||
|
||||
#### `link`
|
||||
|
||||
* Type: Boolean
|
||||
* Default: false
|
||||
|
||||
Display only the dependency tree for packages in `dependencies`.
|
||||
|
||||
#### dev / development
|
||||
|
||||
* Type: Boolean
|
||||
|
||||
If true, then local installs will link if there is a suitable globally
|
||||
installed package.
|
||||
|
||||
Note that this means that local installs can cause things to be installed
|
||||
into the global space at the same time. The link is only done if one of the
|
||||
two conditions are met:
|
||||
|
||||
* The package is not already installed globally, or
|
||||
* the globally installed version is identical to the version that is being
|
||||
installed locally.
|
||||
|
||||
When used with `npm ls`, only show packages that are linked.
|
||||
|
||||
#### `unicode`
|
||||
|
||||
* Default: false on windows, true on mac/unix systems with a unicode locale,
|
||||
as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
|
||||
* Type: Boolean
|
||||
|
||||
When set to true, npm uses unicode characters in the tree output. When
|
||||
false, it uses ascii characters instead of unicode glyphs.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
|
||||
Display only the dependency tree for packages in `devDependencies`.
|
||||
|
||||
#### only
|
||||
|
||||
* Type: String
|
||||
|
||||
When "dev" or "development", is an alias to `dev`.
|
||||
|
||||
When "prod" or "production", is an alias to `production`.
|
||||
|
||||
#### link
|
||||
|
||||
* Type: Boolean
|
||||
* Default: false
|
||||
|
||||
Display only dependencies which are linked
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
#### unicode
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
* Type: Boolean
|
||||
* Default: true
|
||||
|
||||
Whether to represent the tree structure using unicode characters.
|
||||
Set it to false in order to use all-ansi output.
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
41
deps/npm/docs/content/commands/npm-org.md
vendored
41
deps/npm/docs/content/commands/npm-org.md
vendored
|
|
@ -58,6 +58,47 @@ You can use the `npm org` commands to manage and view users of an
|
|||
organization. It supports adding and removing users, changing their roles,
|
||||
listing them, and finding specific ones and their roles.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### `otp`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String
|
||||
|
||||
This is a one-time password from a two-factor authenticator. It's needed
|
||||
when publishing or changing package permissions with `npm access`.
|
||||
|
||||
If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.
|
||||
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `parseable`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Output parseable results from commands that write to standard output. For
|
||||
`npm search`, this will be tab-separated table format.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [using orgs](/using-npm/orgs)
|
||||
|
|
|
|||
63
deps/npm/docs/content/commands/npm-outdated.md
vendored
63
deps/npm/docs/content/commands/npm-outdated.md
vendored
|
|
@ -15,7 +15,8 @@ npm outdated [[<@scope>/]<pkg> ...]
|
|||
This command will check the registry to see if any (or, specific) installed
|
||||
packages are currently outdated.
|
||||
|
||||
By default, only the direct dependencies of the root project are shown.
|
||||
By default, only the direct dependencies of the root project and direct
|
||||
dependencies of your configured *workspaces* are shown.
|
||||
Use `--all` to find all outdated meta-dependencies as well.
|
||||
|
||||
In the output:
|
||||
|
|
@ -85,41 +86,78 @@ A few things to note:
|
|||
|
||||
### Configuration
|
||||
|
||||
#### json
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `all`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Show information in JSON format.
|
||||
When running `npm outdated` and `npm ls`, setting `--all` will show all
|
||||
outdated or installed packages, rather than only those directly depended
|
||||
upon by the current project.
|
||||
|
||||
#### long
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Show extended information.
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
#### parseable
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `long`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Show parseable output instead of tree view.
|
||||
Show extended information in `ls`, `search`, and `help-search`.
|
||||
|
||||
#### global
|
||||
#### `parseable`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Check packages in the global install prefix instead of in the current
|
||||
project.
|
||||
Output parseable results from commands that write to standard output. For
|
||||
`npm search`, this will be tab-separated table format.
|
||||
|
||||
#### all
|
||||
#### `global`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Display all outdated dependencies on the tree.
|
||||
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`
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
@ -127,3 +165,4 @@ Display all outdated dependencies on the tree.
|
|||
* [npm dist-tag](/commands/npm-dist-tag)
|
||||
* [npm registry](/using-npm/registry)
|
||||
* [npm folders](/configuring-npm/folders)
|
||||
* [npm workspaces](/using-npm/workspaces)
|
||||
|
|
|
|||
24
deps/npm/docs/content/commands/npm-owner.md
vendored
24
deps/npm/docs/content/commands/npm-owner.md
vendored
|
|
@ -35,6 +35,30 @@ If you have two-factor authentication enabled with `auth-and-writes` (see
|
|||
[`npm-profile`](/commands/npm-profile)) then you'll need to include an otp
|
||||
on the command line when changing ownership with `--otp`.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### `otp`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String
|
||||
|
||||
This is a one-time password from a two-factor authenticator. It's needed
|
||||
when publishing or changing package permissions with `npm access`.
|
||||
|
||||
If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm profile](/commands/npm-profile)
|
||||
|
|
|
|||
56
deps/npm/docs/content/commands/npm-pack.md
vendored
56
deps/npm/docs/content/commands/npm-pack.md
vendored
|
|
@ -7,27 +7,59 @@ description: Create a tarball from a package
|
|||
### Synopsis
|
||||
|
||||
```bash
|
||||
npm pack [[<@scope>/]<pkg>...] [--dry-run]
|
||||
npm pack [[<@scope>/]<pkg>...] [--dry-run] [--json]
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
#### dry-run
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `dry-run`
|
||||
|
||||
Do everything that pack usually does without actually packing anything.
|
||||
That is, report on what would have gone into the tarball, but nothing
|
||||
else.
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
#### workspaces
|
||||
Indicates that you don't want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, `install`, `update`,
|
||||
`dedupe`, `uninstall`, as well as `pack` and `publish`.
|
||||
|
||||
Enables workspaces context while creating tarballs. Tarballs for each
|
||||
workspaces will be generated.
|
||||
Note: This is NOT honored by other network related commands, eg `dist-tags`,
|
||||
`owner`, etc.
|
||||
|
||||
#### workspace
|
||||
#### `workspace`
|
||||
|
||||
Enables workspaces context and limits results to only those specified by
|
||||
this config item. Tarballs will only be generated for the packages
|
||||
named in the workspaces given here.
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### Description
|
||||
|
||||
|
|
|
|||
13
deps/npm/docs/content/commands/npm-ping.md
vendored
13
deps/npm/docs/content/commands/npm-ping.md
vendored
|
|
@ -25,6 +25,19 @@ otherwise you will get:
|
|||
Ping error: {*Detail about error}
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm doctor](/commands/npm-doctor)
|
||||
|
|
|
|||
20
deps/npm/docs/content/commands/npm-prefix.md
vendored
20
deps/npm/docs/content/commands/npm-prefix.md
vendored
|
|
@ -33,6 +33,26 @@ npm prefix -g
|
|||
/usr/local
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `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`
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm root](/commands/npm-root)
|
||||
|
|
|
|||
51
deps/npm/docs/content/commands/npm-profile.md
vendored
51
deps/npm/docs/content/commands/npm-profile.md
vendored
|
|
@ -71,12 +71,55 @@ support this interface.
|
|||
|
||||
### Details
|
||||
|
||||
All of the `npm profile` subcommands accept `--json` and `--parseable` and
|
||||
will tailor their output based on those. Some of these commands may not be
|
||||
available on non npmjs.com registries.
|
||||
Some of these commands may not be available on non npmjs.com registries.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `parseable`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Output parseable results from commands that write to standard output. For
|
||||
`npm search`, this will be tab-separated table format.
|
||||
|
||||
#### `otp`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String
|
||||
|
||||
This is a one-time password from a two-factor authenticator. It's needed
|
||||
when publishing or changing package permissions with `npm access`.
|
||||
|
||||
If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm adduser](/commands/npm-adduser)
|
||||
* [npm logout](/commands/npm-logout)
|
||||
* [npm registry](/using-npm/registry)
|
||||
* [npm config](/commands/npm-config)
|
||||
* [npmrc](/configuring-npm/npmrc)
|
||||
* [npm owner](/commands/npm-owner)
|
||||
* [npm whoami](/commands/npm-whoami)
|
||||
* [npm token](/commands/npm-token)
|
||||
|
|
|
|||
78
deps/npm/docs/content/commands/npm-prune.md
vendored
78
deps/npm/docs/content/commands/npm-prune.md
vendored
|
|
@ -33,6 +33,84 @@ only need this command with the `--production` flag. However, in the real
|
|||
world, operation is not always "normal". When crashes or mistakes happen,
|
||||
this command can help clean up any resulting garbage.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `omit`
|
||||
|
||||
* Default: 'dev' if the `NODE_ENV` environment variable is set to
|
||||
'production', otherwise empty.
|
||||
* Type: "dev", "optional", or "peer" (can be set multiple times)
|
||||
|
||||
Dependency types to omit from the installation tree on disk.
|
||||
|
||||
Note that these dependencies _are_ still resolved and added to the
|
||||
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
|
||||
physically installed on disk.
|
||||
|
||||
If a package type appears in both the `--include` and `--omit` lists, then
|
||||
it will be included.
|
||||
|
||||
If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
|
||||
variable will be set to `'production'` for all lifecycle scripts.
|
||||
|
||||
#### `dry-run`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Indicates that you don't want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, `install`, `update`,
|
||||
`dedupe`, `uninstall`, as well as `pack` and `publish`.
|
||||
|
||||
Note: This is NOT honored by other network related commands, eg `dist-tags`,
|
||||
`owner`, etc.
|
||||
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm uninstall](/commands/npm-uninstall)
|
||||
|
|
|
|||
86
deps/npm/docs/content/commands/npm-publish.md
vendored
86
deps/npm/docs/content/commands/npm-publish.md
vendored
|
|
@ -104,6 +104,92 @@ See [`developers`](/using-npm/developers) for full details on what's
|
|||
included in the published package, as well as details on how the package is
|
||||
built.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `tag`
|
||||
|
||||
* Default: "latest"
|
||||
* Type: String
|
||||
|
||||
If you ask npm to install a package and don't tell it a specific version,
|
||||
then it will install the specified tag.
|
||||
|
||||
Also the tag that is added to the package@version specified by the `npm tag`
|
||||
command, if no explicit tag is given.
|
||||
|
||||
When used by the `npm diff` command, this is the tag used to fetch the
|
||||
tarball that will be compared with the local files by default.
|
||||
|
||||
#### `access`
|
||||
|
||||
* Default: 'restricted' for scoped packages, 'public' for unscoped packages
|
||||
* Type: null, "restricted", or "public"
|
||||
|
||||
When publishing scoped packages, the access level defaults to `restricted`.
|
||||
If you want your scoped package to be publicly viewable (and installable)
|
||||
set `--access=public`. The only valid values for `access` are `public` and
|
||||
`restricted`. Unscoped packages _always_ have an access level of `public`.
|
||||
|
||||
#### `dry-run`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Indicates that you don't want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, `install`, `update`,
|
||||
`dedupe`, `uninstall`, as well as `pack` and `publish`.
|
||||
|
||||
Note: This is NOT honored by other network related commands, eg `dist-tags`,
|
||||
`owner`, etc.
|
||||
|
||||
#### `otp`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String
|
||||
|
||||
This is a one-time password from a two-factor authenticator. It's needed
|
||||
when publishing or changing package permissions with `npm access`.
|
||||
|
||||
If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm-packlist package](http://npm.im/npm-packlist)
|
||||
|
|
|
|||
76
deps/npm/docs/content/commands/npm-rebuild.md
vendored
76
deps/npm/docs/content/commands/npm-rebuild.md
vendored
|
|
@ -24,6 +24,82 @@ If one or more package names (and optionally version ranges) are provided,
|
|||
then only packages with a name and version matching one of the specifiers
|
||||
will be rebuilt.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `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`
|
||||
|
||||
#### `bin-links`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Tells npm to create symlinks (or `.cmd` shims on Windows) for package
|
||||
executables.
|
||||
|
||||
Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don't support symlinks, even on ostensibly Unix
|
||||
systems.
|
||||
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm install](/commands/npm-install)
|
||||
|
|
|
|||
45
deps/npm/docs/content/commands/npm-repo.md
vendored
45
deps/npm/docs/content/commands/npm-repo.md
vendored
|
|
@ -19,30 +19,53 @@ in the current folder and use the `repository` property.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### browser
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `browser`
|
||||
|
||||
* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
|
||||
* Type: String or Boolean
|
||||
* Type: null, Boolean, or String
|
||||
|
||||
The browser that is called by the `npm repo` command to open websites.
|
||||
The browser that is called by npm commands to open websites.
|
||||
|
||||
Set to `false` to suppress browser behavior and instead print urls to
|
||||
terminal.
|
||||
|
||||
Set to `true` to use default system URL opener.
|
||||
|
||||
#### workspaces
|
||||
#### `workspace`
|
||||
|
||||
Enables workspaces context while searching the `package.json` in the
|
||||
current folder. Repo urls for the packages named in each workspace will
|
||||
be opened.
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
#### workspace
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Enables workspaces context and limits results to only those specified by
|
||||
this config item. Only the repo urls for the packages named in the
|
||||
workspaces given here will be opened.
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
26
deps/npm/docs/content/commands/npm-restart.md
vendored
26
deps/npm/docs/content/commands/npm-restart.md
vendored
|
|
@ -34,6 +34,32 @@ If it does _not_ have a `"restart"` script specified, but it does have
|
|||
8. poststart
|
||||
9. postrestart
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `script-shell`
|
||||
|
||||
* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
|
||||
* Type: null or String
|
||||
|
||||
The shell to use for scripts run with the `npm exec`, `npm run` and `npm
|
||||
init <pkg>` commands.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm run-script](/commands/npm-run-script)
|
||||
|
|
|
|||
20
deps/npm/docs/content/commands/npm-root.md
vendored
20
deps/npm/docs/content/commands/npm-root.md
vendored
|
|
@ -23,6 +23,26 @@ global_node_modules="$(npm root --global)"
|
|||
echo "Global packages installed in: ${global_node_modules}"
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `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`
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm prefix](/commands/npm-prefix)
|
||||
|
|
|
|||
107
deps/npm/docs/content/commands/npm-run-script.md
vendored
107
deps/npm/docs/content/commands/npm-run-script.md
vendored
|
|
@ -33,7 +33,7 @@ For example:
|
|||
npm run test -- --grep="pattern"
|
||||
```
|
||||
|
||||
The arguments will only be passed to the script specified after ```npm run```
|
||||
The arguments will only be passed to the script specified after `npm run`
|
||||
and not to any `pre` or `post` script.
|
||||
|
||||
The `env` script is a special built-in command that can be used to list
|
||||
|
|
@ -141,60 +141,73 @@ packages.
|
|||
|
||||
### Configuration
|
||||
|
||||
#### if-present
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `workspace`
|
||||
|
||||
* Type: Boolean
|
||||
* Default: false
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
You can use the `--if-present` flag to avoid exiting with a non-zero exit code
|
||||
when the script is undefined. This lets you run potentially undefined scripts
|
||||
without breaking the execution chain.
|
||||
|
||||
#### ignore-scripts
|
||||
|
||||
* Type: Boolean
|
||||
* Default: false
|
||||
|
||||
Skips running `pre` and `post` scripts.
|
||||
|
||||
#### script-shell
|
||||
|
||||
* Type: String
|
||||
* Default: `null`
|
||||
|
||||
Optional custom script to use to execute the command. If not defined defaults
|
||||
to `/bin/sh` on Unix, defaults to `env.comspec` or `cmd.exe` on Windows.
|
||||
|
||||
#### silent
|
||||
|
||||
* Type: Boolean
|
||||
* Default: false
|
||||
|
||||
You can use the `--silent` flag to prevent showing `npm ERR!` output on error.
|
||||
|
||||
#### workspace
|
||||
|
||||
* Alias: `-w`
|
||||
* Type: Array
|
||||
* Default: `[]`
|
||||
|
||||
Enable running scripts in the context of workspaces while also filtering by
|
||||
the provided names or paths provided.
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
- Workspace names
|
||||
- Path to a workspace directory
|
||||
- Path to a parent workspace directory (will result to selecting all of the
|
||||
children workspaces)
|
||||
|
||||
#### workspaces
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
* Alias: `--ws`
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
* Default: `false`
|
||||
|
||||
Run scripts in the context of all configured workspaces for the current
|
||||
project.
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `if-present`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm will not exit with an error code when `run-script` is invoked
|
||||
for a script that isn't defined in the `scripts` section of `package.json`.
|
||||
This option can be used when it's desirable to optionally run a script when
|
||||
it's present and fail if the script fails. This is useful, for example, when
|
||||
running scripts that may only apply for some builds in an otherwise generic
|
||||
CI setup.
|
||||
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `script-shell`
|
||||
|
||||
* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
|
||||
* Type: null or String
|
||||
|
||||
The shell to use for scripts run with the `npm exec`, `npm run` and `npm
|
||||
init <pkg>` commands.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
117
deps/npm/docs/content/commands/npm-search.md
vendored
117
deps/npm/docs/content/commands/npm-search.md
vendored
|
|
@ -39,91 +39,94 @@ expression characters in most shells.)
|
|||
|
||||
### Configuration
|
||||
|
||||
All of the following can be defined in a `.npmrc` file, or passed as
|
||||
parameters to the cli prefixed with `--` (e.g. `--json`)
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `long`
|
||||
|
||||
#### description
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Show extended information in `ls`, `search`, and `help-search`.
|
||||
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `color`
|
||||
|
||||
* Default: true unless the NO_COLOR environ is set to something other than '0'
|
||||
* Type: "always" or Boolean
|
||||
|
||||
If false, never shows colors. If `"always"` then always shows colors. If
|
||||
true, then only prints color codes for tty file descriptors.
|
||||
|
||||
#### `parseable`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Output parseable results from commands that write to standard output. For
|
||||
`npm search`, this will be tab-separated table format.
|
||||
|
||||
#### `description`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
#### color
|
||||
Show the description in `npm search`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Used as `--no-color`, disables color highlighting of matches in the
|
||||
results.
|
||||
|
||||
#### json
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Output search results as a JSON array.
|
||||
|
||||
#### parseable
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Output search results as lines with tab-separated columns.
|
||||
|
||||
#### long
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Display full package descriptions and other long text across multiple
|
||||
lines. When disabled (which is the default) the output will
|
||||
truncate search results to fit neatly on a single line. Modules with
|
||||
extremely long names will fall on multiple lines.
|
||||
|
||||
#### searchopts
|
||||
#### `searchopts`
|
||||
|
||||
* Default: ""
|
||||
* Type: String
|
||||
|
||||
Space-separated options that are always passed to search.
|
||||
|
||||
#### searchexclude
|
||||
#### `searchexclude`
|
||||
|
||||
* Default: ""
|
||||
* Type: String
|
||||
|
||||
Space-separated options that limit the results from search.
|
||||
|
||||
#### registry
|
||||
#### `registry`
|
||||
|
||||
* Default: https://registry.npmjs.org/
|
||||
* Type: url
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
Search the specified registry for modules. If you have configured npm to
|
||||
point to a different default registry (such as your internal private
|
||||
module repository), `npm search` will also default to that registry when
|
||||
searching.
|
||||
The base URL of the npm registry.
|
||||
|
||||
### A note on caching
|
||||
#### `prefer-online`
|
||||
|
||||
The npm cli caches search results with the same terms and options
|
||||
locally in its cache. You can use the following to change how and when
|
||||
the cli uses this cache. See [`npm cache`](/commands/npm-cache) for more
|
||||
on how the cache works.
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
#### prefer-online
|
||||
If true, staleness checks for cached data will be forced, making the CLI
|
||||
look for updates immediately even for fresh package data.
|
||||
|
||||
Forces staleness checks for cached searches, making the cli look for
|
||||
updates immediately even for fresh search results.
|
||||
#### `prefer-offline`
|
||||
|
||||
#### prefer-offline
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Bypasses staleness checks for cached searches. Missing data will still
|
||||
be requested from the server. To force full offline mode, use `offline`.
|
||||
If true, staleness checks for cached data will be bypassed, but missing data
|
||||
will be requested from the server. To force full offline mode, use
|
||||
`--offline`.
|
||||
|
||||
#### offline
|
||||
#### `offline`
|
||||
|
||||
Forces full offline mode. Any searches not locally cached will result in
|
||||
an error.
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Force offline mode: no network requests will be done during install. To
|
||||
allow the CLI to fill in missing cache data, see `--prefer-offline`.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
37
deps/npm/docs/content/commands/npm-set-script.md
vendored
37
deps/npm/docs/content/commands/npm-set-script.md
vendored
|
|
@ -28,16 +28,41 @@ npm set-script [<script>] [<command>]
|
|||
|
||||
### Configuration
|
||||
|
||||
#### workspaces
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `workspace`
|
||||
|
||||
Enables workspaces context. Tasks will be created in the `scripts` section
|
||||
of the `package.json` of each workspace.
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
#### workspace
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Enables workspaces context and limits creating a task to the
|
||||
`package.json` files of the workspaces given.
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
22
deps/npm/docs/content/commands/npm-star.md
vendored
22
deps/npm/docs/content/commands/npm-star.md
vendored
|
|
@ -33,6 +33,28 @@ You can also "unstar" a package using [`npm unstar`](/commands/npm-unstar)
|
|||
|
||||
You can see all your starred packages using [`npm stars`](/commands/npm-stars)
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### `unicode`
|
||||
|
||||
* Default: false on windows, true on mac/unix systems with a unicode locale,
|
||||
as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
|
||||
* Type: Boolean
|
||||
|
||||
When set to true, npm uses unicode characters in the tree output. When
|
||||
false, it uses ascii characters instead of unicode glyphs.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm unstar](/commands/npm-unstar)
|
||||
|
|
|
|||
13
deps/npm/docs/content/commands/npm-stars.md
vendored
13
deps/npm/docs/content/commands/npm-stars.md
vendored
|
|
@ -19,6 +19,19 @@ quickly this command lets you do just that.
|
|||
You may also want to see your friend's favorite packages, in this case
|
||||
you will most certainly enjoy this command.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm star](/commands/npm-star)
|
||||
|
|
|
|||
26
deps/npm/docs/content/commands/npm-start.md
vendored
26
deps/npm/docs/content/commands/npm-start.md
vendored
|
|
@ -45,6 +45,32 @@ npm start
|
|||
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `script-shell`
|
||||
|
||||
* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
|
||||
* Type: null or String
|
||||
|
||||
The shell to use for scripts run with the `npm exec`, `npm run` and `npm
|
||||
init <pkg>` commands.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm run-script](/commands/npm-run-script)
|
||||
|
|
|
|||
26
deps/npm/docs/content/commands/npm-stop.md
vendored
26
deps/npm/docs/content/commands/npm-stop.md
vendored
|
|
@ -38,6 +38,32 @@ npm stop
|
|||
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `script-shell`
|
||||
|
||||
* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
|
||||
* Type: null or String
|
||||
|
||||
The shell to use for scripts run with the `npm exec`, `npm run` and `npm
|
||||
init <pkg>` commands.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm run-script](/commands/npm-run-script)
|
||||
|
|
|
|||
41
deps/npm/docs/content/commands/npm-team.md
vendored
41
deps/npm/docs/content/commands/npm-team.md
vendored
|
|
@ -101,6 +101,47 @@ is done through the website, not the npm CLI.
|
|||
To use teams to manage permissions on packages belonging to your organization,
|
||||
use the `npm access` command to grant or revoke the appropriate permissions.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### `otp`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String
|
||||
|
||||
This is a one-time password from a two-factor authenticator. It's needed
|
||||
when publishing or changing package permissions with `npm access`.
|
||||
|
||||
If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.
|
||||
|
||||
#### `parseable`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Output parseable results from commands that write to standard output. For
|
||||
`npm search`, this will be tab-separated table format.
|
||||
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Not supported by all npm commands.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm access](/commands/npm-access)
|
||||
|
|
|
|||
24
deps/npm/docs/content/commands/npm-test.md
vendored
24
deps/npm/docs/content/commands/npm-test.md
vendored
|
|
@ -35,7 +35,31 @@ npm test
|
|||
(test.js output would be here)
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `script-shell`
|
||||
|
||||
* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
|
||||
* Type: null or String
|
||||
|
||||
The shell to use for scripts run with the `npm exec`, `npm run` and `npm
|
||||
init <pkg>` commands.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
50
deps/npm/docs/content/commands/npm-token.md
vendored
50
deps/npm/docs/content/commands/npm-token.md
vendored
|
|
@ -73,3 +73,53 @@ This lets you list, create and revoke authentication tokens.
|
|||
found in your `.npmrc`), and ids as seen in the parseable or json
|
||||
output of `npm token list`. This will NOT accept the truncated token
|
||||
found in the normal `npm token list` output.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `read-only`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
This is used to mark a token as unable to publish when configuring limited
|
||||
access tokens with the `npm token create` command.
|
||||
|
||||
#### `cidr`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String (can be set multiple times)
|
||||
|
||||
This is a list of CIDR address to be used when configuring limited access
|
||||
tokens with the `npm token create` command.
|
||||
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### `otp`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String
|
||||
|
||||
This is a one-time password from a two-factor authenticator. It's needed
|
||||
when publishing or changing package permissions with `npm access`.
|
||||
|
||||
If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm adduser](/commands/npm-adduser)
|
||||
* [npm registry](/using-npm/registry)
|
||||
* [npm config](/commands/npm-config)
|
||||
* [npmrc](/configuring-npm/npmrc)
|
||||
* [npm owner](/commands/npm-owner)
|
||||
* [npm whoami](/commands/npm-whoami)
|
||||
* [npm profile](/commands/npm-profile)
|
||||
|
|
|
|||
48
deps/npm/docs/content/commands/npm-uninstall.md
vendored
48
deps/npm/docs/content/commands/npm-uninstall.md
vendored
|
|
@ -54,6 +54,54 @@ npm uninstall lodash --no-save
|
|||
`lodash` will not be removed from your `package.json`,
|
||||
`npm-shrinkwrap.json`, or `package-lock.json` files.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `save`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Save installed packages to a package.json file as dependencies.
|
||||
|
||||
When used with the `npm rm` command, removes the dependency from
|
||||
package.json.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm prune](/commands/npm-prune)
|
||||
|
|
|
|||
75
deps/npm/docs/content/commands/npm-unpublish.md
vendored
75
deps/npm/docs/content/commands/npm-unpublish.md
vendored
|
|
@ -45,6 +45,81 @@ you must use a new version number. If you unpublish the entire package,
|
|||
you may not publish any new versions of that package until 24 hours have
|
||||
passed.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `dry-run`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Indicates that you don't want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, `install`, `update`,
|
||||
`dedupe`, `uninstall`, as well as `pack` and `publish`.
|
||||
|
||||
Note: This is NOT honored by other network related commands, eg `dist-tags`,
|
||||
`owner`, etc.
|
||||
|
||||
#### `force`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Removes various protections against unfortunate side effects, common
|
||||
mistakes, unnecessary performance degradation, and malicious input.
|
||||
|
||||
* Allow clobbering non-npm files in global installs.
|
||||
* Allow the `npm version` command to work on an unclean git repository.
|
||||
* Allow deleting the cache folder with `npm cache clean`.
|
||||
* Allow installing packages that have an `engines` declaration requiring a
|
||||
different version of npm.
|
||||
* Allow installing packages that have an `engines` declaration requiring a
|
||||
different version of `node`, even if `--engine-strict` is enabled.
|
||||
* Allow `npm audit fix` to install modules outside your stated dependency
|
||||
range (including SemVer-major changes).
|
||||
* Allow unpublishing all versions of a published package.
|
||||
* Allow conflicting peerDependencies to be installed in the root project.
|
||||
* Implicitly set `--yes` during `npm init`.
|
||||
|
||||
If you don't have a clear idea of what you want to do, it is strongly
|
||||
recommended that you do not use this option!
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm deprecate](/commands/npm-deprecate)
|
||||
|
|
|
|||
33
deps/npm/docs/content/commands/npm-unstar.md
vendored
33
deps/npm/docs/content/commands/npm-unstar.md
vendored
|
|
@ -29,6 +29,39 @@ You can "star" a package using [`npm star`](/commands/npm-star)
|
|||
|
||||
You can see all your starred packages using [`npm stars`](/commands/npm-stars)
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
#### `unicode`
|
||||
|
||||
* Default: false on windows, true on mac/unix systems with a unicode locale,
|
||||
as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
|
||||
* Type: Boolean
|
||||
|
||||
When set to true, npm uses unicode characters in the tree output. When
|
||||
false, it uses ascii characters instead of unicode glyphs.
|
||||
|
||||
#### `otp`
|
||||
|
||||
* Default: null
|
||||
* Type: null or String
|
||||
|
||||
This is a one-time password from a two-factor authenticator. It's needed
|
||||
when publishing or changing package permissions with `npm access`.
|
||||
|
||||
If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
* [npm star](/commands/npm-star)
|
||||
|
|
|
|||
181
deps/npm/docs/content/commands/npm-update.md
vendored
181
deps/npm/docs/content/commands/npm-update.md
vendored
|
|
@ -17,9 +17,7 @@ aliases: up, upgrade
|
|||
This command will update all the packages listed to the latest version
|
||||
(specified by the `tag` config), respecting semver.
|
||||
|
||||
It will also install missing packages. As with all commands that install
|
||||
packages, the `--dev` flag will cause `devDependencies` to be processed
|
||||
as well.
|
||||
It will also install missing packages.
|
||||
|
||||
If the `-g` flag is specified, this command will update globally installed
|
||||
packages.
|
||||
|
|
@ -116,6 +114,183 @@ need to run `npm install -g [<pkg>...]`
|
|||
NOTE: If a package has been upgraded to a version newer than `latest`, it will
|
||||
be _downgraded_.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `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`
|
||||
|
||||
#### `global-style`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Causes npm to install the package into your local `node_modules` folder with
|
||||
the same layout it uses with the global `node_modules` folder. Only your
|
||||
direct dependencies will show in `node_modules` and everything they depend
|
||||
on will be flattened in their `node_modules` folders. This obviously will
|
||||
eliminate some deduping. If used with `legacy-bundling`, `legacy-bundling`
|
||||
will be preferred.
|
||||
|
||||
#### `legacy-bundling`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with `global-style` this option
|
||||
will be preferred.
|
||||
|
||||
#### `strict-peer-deps`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If set to `true`, and `--legacy-peer-deps` is not set, then _any_
|
||||
conflicting `peerDependencies` will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.
|
||||
|
||||
By default, conflicting `peerDependencies` deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package's `peerDependencies` object.
|
||||
|
||||
When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If `--strict-peer-deps` is set, then
|
||||
this warning is treated as a failure.
|
||||
|
||||
#### `package-lock`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
If set to false, then ignore `package-lock.json` files when installing. This
|
||||
will also prevent _writing_ `package-lock.json` if `save` is true.
|
||||
|
||||
When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use `npm prune`.
|
||||
|
||||
#### `omit`
|
||||
|
||||
* Default: 'dev' if the `NODE_ENV` environment variable is set to
|
||||
'production', otherwise empty.
|
||||
* Type: "dev", "optional", or "peer" (can be set multiple times)
|
||||
|
||||
Dependency types to omit from the installation tree on disk.
|
||||
|
||||
Note that these dependencies _are_ still resolved and added to the
|
||||
`package-lock.json` or `npm-shrinkwrap.json` file. They are just not
|
||||
physically installed on disk.
|
||||
|
||||
If a package type appears in both the `--include` and `--omit` lists, then
|
||||
it will be included.
|
||||
|
||||
If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment
|
||||
variable will be set to `'production'` for all lifecycle scripts.
|
||||
|
||||
#### `ignore-scripts`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `audit`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" submit audit reports alongside `npm install` runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
[`npm audit`](/commands/npm-audit) for details on what is submitted.
|
||||
|
||||
#### `bin-links`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Tells npm to create symlinks (or `.cmd` shims on Windows) for package
|
||||
executables.
|
||||
|
||||
Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don't support symlinks, even on ostensibly Unix
|
||||
systems.
|
||||
|
||||
#### `fund`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
When "true" displays the message at the end of each `npm install`
|
||||
acknowledging the number of dependencies looking for funding. See [`npm
|
||||
fund`](/commands/npm-fund) for details.
|
||||
|
||||
#### `dry-run`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Indicates that you don't want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, `install`, `update`,
|
||||
`dedupe`, `uninstall`, as well as `pack` and `publish`.
|
||||
|
||||
Note: This is NOT honored by other network related commands, eg `dist-tags`,
|
||||
`owner`, etc.
|
||||
|
||||
#### `workspace`
|
||||
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
176
deps/npm/docs/content/commands/npm-version.md
vendored
176
deps/npm/docs/content/commands/npm-version.md
vendored
|
|
@ -16,83 +16,123 @@ npm version [<newversion> | major | minor | patch | premajor | preminor | prepat
|
|||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `allow-same-version`
|
||||
|
||||
* Default: `false`
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Prevents throwing an error when `npm version` is used to set the new version
|
||||
to the same value as the current version.
|
||||
|
||||
#### `git-tag-version`
|
||||
|
||||
* Default: `true`
|
||||
* Type: Boolean
|
||||
|
||||
Commit and tag the version change.
|
||||
|
||||
#### `commit-hooks`
|
||||
|
||||
* Default: `true`
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Run git commit hooks when committing the version change.
|
||||
Run git commit hooks when using the `npm version` command.
|
||||
|
||||
#### `git-tag-version`
|
||||
|
||||
* Default: true
|
||||
* Type: Boolean
|
||||
|
||||
Tag the commit when using the `npm version` command.
|
||||
|
||||
#### `json`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `preid`
|
||||
|
||||
* Default: ""
|
||||
* Type: String
|
||||
|
||||
The "prerelease identifier" to use as a prefix for the "prerelease" part of
|
||||
a semver. Like the `rc` in `1.2.0-rc.8`.
|
||||
|
||||
#### `sign-git-tag`
|
||||
|
||||
* Default: `false`
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Pass the `-s` flag to git to sign the tag.
|
||||
If set to true, then the `npm version` command will tag the version using
|
||||
`-s` to add a signature.
|
||||
|
||||
Note that you must have a default GPG key set up in your git config for this to work properly.
|
||||
Note that git requires you to have set up GPG keys in your git configs for
|
||||
this to work properly.
|
||||
|
||||
#### workspaces
|
||||
#### `workspace`
|
||||
|
||||
* Default: `false`
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enables workspaces context and includes workspaces in reported output
|
||||
when getting versions. When setting a new version *only the workspaces
|
||||
will be changed*.
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
#### workspace
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
* Default: []
|
||||
* Type: Array
|
||||
|
||||
Enables workspaces context and limits results to only those specified by
|
||||
this config item.
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### Description
|
||||
|
||||
Run this in a package directory to bump the version and write the new
|
||||
data back to `package.json`, `package-lock.json`, and, if present, `npm-shrinkwrap.json`.
|
||||
Run this in a package directory to bump the version and write the new data
|
||||
back to `package.json`, `package-lock.json`, and, if present,
|
||||
`npm-shrinkwrap.json`.
|
||||
|
||||
The `newversion` argument should be a valid semver string, a
|
||||
valid second argument to [semver.inc](https://github.com/npm/node-semver#functions) (one of `patch`, `minor`, `major`,
|
||||
`prepatch`, `preminor`, `premajor`, `prerelease`), or `from-git`. In the second case,
|
||||
the existing version will be incremented by 1 in the specified field.
|
||||
`from-git` will try to read the latest git tag, and use that as the new npm version.
|
||||
The `newversion` argument should be a valid semver string, a valid second
|
||||
argument to [semver.inc](https://github.com/npm/node-semver#functions) (one
|
||||
of `patch`, `minor`, `major`, `prepatch`, `preminor`, `premajor`,
|
||||
`prerelease`), or `from-git`. In the second case, the existing version will
|
||||
be incremented by 1 in the specified field. `from-git` will try to read
|
||||
the latest git tag, and use that as the new npm version.
|
||||
|
||||
If run in a git repo, it will also create a version commit and tag.
|
||||
This behavior is controlled by `git-tag-version` (see below), and can
|
||||
be disabled on the command line by running `npm --no-git-tag-version version`.
|
||||
If run in a git repo, it will also create a version commit and tag. This
|
||||
behavior is controlled by `git-tag-version` (see below), and can be
|
||||
disabled on the command line by running `npm --no-git-tag-version version`.
|
||||
It will fail if the working directory is not clean, unless the `-f` or
|
||||
`--force` flag is set.
|
||||
|
||||
If supplied with `-m` or `--message` config option, npm will
|
||||
use it as a commit message when creating a version commit. If the
|
||||
`message` config contains `%s` then that will be replaced with the
|
||||
resulting version number. For example:
|
||||
If supplied with `-m` or `--message` config option, npm will use it as a
|
||||
commit message when creating a version commit. If the `message` config
|
||||
contains `%s` then that will be replaced with the resulting version number.
|
||||
For example:
|
||||
|
||||
```bash
|
||||
npm version patch -m "Upgrade to %s for reasons"
|
||||
```
|
||||
|
||||
If the `sign-git-tag` config is set, then the tag will be signed using
|
||||
the `-s` flag to git. Note that you must have a default GPG key set up
|
||||
in your git config for this to work properly. For example:
|
||||
If the `sign-git-tag` config is set, then the tag will be signed using the
|
||||
`-s` flag to git. Note that you must have a default GPG key set up in your
|
||||
git config for this to work properly. For example:
|
||||
|
||||
```bash
|
||||
$ npm config set sign-git-tag true
|
||||
|
|
@ -105,37 +145,45 @@ user: "isaacs (http://blog.izs.me/) <i@izs.me>"
|
|||
Enter passphrase:
|
||||
```
|
||||
|
||||
If `preversion`, `version`, or `postversion` are in the `scripts` property of
|
||||
the package.json, they will be executed as part of running `npm version`.
|
||||
If `preversion`, `version`, or `postversion` are in the `scripts` property
|
||||
of the package.json, they will be executed as part of running `npm
|
||||
version`.
|
||||
|
||||
The exact order of execution is as follows:
|
||||
1. Check to make sure the git working directory is clean before we get started.
|
||||
Your scripts may add files to the commit in future steps.
|
||||
This step is skipped if the `--force` flag is set.
|
||||
2. Run the `preversion` script. These scripts have access to the old `version` in package.json.
|
||||
A typical use would be running your full test suite before deploying.
|
||||
Any files you want added to the commit should be explicitly added using `git add`.
|
||||
3. Bump `version` in `package.json` as requested (`patch`, `minor`, `major`, etc).
|
||||
4. Run the `version` script. These scripts have access to the new `version` in package.json
|
||||
(so they can incorporate it into file headers in generated files for example).
|
||||
Again, scripts should explicitly add generated files to the commit using `git add`.
|
||||
5. Commit and tag.
|
||||
6. Run the `postversion` script. Use it to clean up the file system or automatically push
|
||||
the commit and/or tag.
|
||||
|
||||
1. Check to make sure the git working directory is clean before we get
|
||||
started. Your scripts may add files to the commit in future steps.
|
||||
This step is skipped if the `--force` flag is set.
|
||||
2. Run the `preversion` script. These scripts have access to the old
|
||||
`version` in package.json. A typical use would be running your full
|
||||
test suite before deploying. Any files you want added to the commit
|
||||
should be explicitly added using `git add`.
|
||||
3. Bump `version` in `package.json` as requested (`patch`, `minor`,
|
||||
`major`, etc).
|
||||
4. Run the `version` script. These scripts have access to the new `version`
|
||||
in package.json (so they can incorporate it into file headers in
|
||||
generated files for example). Again, scripts should explicitly add
|
||||
generated files to the commit using `git add`.
|
||||
5. Commit and tag.
|
||||
6. Run the `postversion` script. Use it to clean up the file system or
|
||||
automatically push the commit and/or tag.
|
||||
|
||||
Take the following example:
|
||||
|
||||
```json
|
||||
"scripts": {
|
||||
"preversion": "npm test",
|
||||
"version": "npm run build && git add -A dist",
|
||||
"postversion": "git push && git push --tags && rm -rf build/temp"
|
||||
}
|
||||
{
|
||||
"scripts": {
|
||||
"preversion": "npm test",
|
||||
"version": "npm run build && git add -A dist",
|
||||
"postversion": "git push && git push --tags && rm -rf build/temp"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
This runs all your tests and proceeds only if they pass. Then runs your `build` script, and
|
||||
adds everything in the `dist` directory to the commit. After the commit, it pushes the new commit
|
||||
and tag up to the server, and deletes the `build/temp` directory.
|
||||
This runs all your tests and proceeds only if they pass. Then runs your
|
||||
`build` script, and adds everything in the `dist` directory to the commit.
|
||||
After the commit, it pushes the new commit and tag up to the server, and
|
||||
deletes the `build/temp` directory.
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
48
deps/npm/docs/content/commands/npm-view.md
vendored
48
deps/npm/docs/content/commands/npm-view.md
vendored
|
|
@ -96,22 +96,50 @@ npm view connect versions
|
|||
|
||||
### Configuration
|
||||
|
||||
#### json
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `json`
|
||||
|
||||
Show information in JSON format. See [`Output`](#output) below.
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
#### workspaces
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
Enables workspaces context while searching the `package.json` in the
|
||||
current folder. Information about packages named in each workspace will
|
||||
be viewed.
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### workspace
|
||||
#### `workspace`
|
||||
|
||||
Enables workspaces context and limits results to only those specified by
|
||||
this config item. Only the information about packages named in the
|
||||
workspaces given here will be viewed.
|
||||
* Default:
|
||||
* Type: String (can be set multiple times)
|
||||
|
||||
Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
#### `workspaces`
|
||||
|
||||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Enable running a command in the context of **all** the configured
|
||||
workspaces.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### Output
|
||||
|
||||
|
|
|
|||
22
deps/npm/docs/content/commands/npm-whoami.md
vendored
22
deps/npm/docs/content/commands/npm-whoami.md
vendored
|
|
@ -14,7 +14,27 @@ Note: This command is unaware of workspaces.
|
|||
|
||||
### Description
|
||||
|
||||
Print the `username` config to standard output.
|
||||
Display the npm username of the currently logged-in user.
|
||||
|
||||
If logged into a registry that provides token-based authentication, then
|
||||
connect to the `/-/whoami` registry endpoint to find the username
|
||||
associated with the token, and print to standard output.
|
||||
|
||||
If logged into a registry that uses Basic Auth, then simply print the
|
||||
`username` portion of the authentication string.
|
||||
|
||||
### Configuration
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
|
||||
<!-- automatically generated, do not edit manually -->
|
||||
#### `registry`
|
||||
|
||||
* Default: "https://registry.npmjs.org/"
|
||||
* Type: URL
|
||||
|
||||
The base URL of the npm registry.
|
||||
|
||||
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
|
||||
|
||||
### See Also
|
||||
|
||||
|
|
|
|||
54
deps/npm/docs/content/using-npm/config.md
vendored
54
deps/npm/docs/content/using-npm/config.md
vendored
|
|
@ -494,6 +494,7 @@ mistakes, unnecessary performance degradation, and malicious input.
|
|||
range (including SemVer-major changes).
|
||||
* Allow unpublishing all versions of a published package.
|
||||
* Allow conflicting peerDependencies to be installed in the root project.
|
||||
* Implicitly set `--yes` during `npm init`.
|
||||
|
||||
If you don't have a clear idea of what you want to do, it is strongly
|
||||
recommended that you do not use this option!
|
||||
|
|
@ -612,6 +613,11 @@ CI setup.
|
|||
|
||||
If true, npm does not run scripts specified in package.json files.
|
||||
|
||||
Note that commands explicitly intended to run a particular script, such as
|
||||
`npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script`
|
||||
will still run their intended script if `ignore-scripts` is set, but they
|
||||
will *not* run any pre- or post-scripts.
|
||||
|
||||
#### `include`
|
||||
|
||||
* Default:
|
||||
|
|
@ -688,10 +694,7 @@ number, if not already set in package.json.
|
|||
|
||||
Whether or not to output JSON data, rather than the normal output.
|
||||
|
||||
This feature is currently experimental, and the output data structures for
|
||||
many commands is either not implemented in JSON yet, or subject to change.
|
||||
Only the output from `npm ls --json` and `npm search --json` are currently
|
||||
valid.
|
||||
Not supported by all npm commands.
|
||||
|
||||
#### `key`
|
||||
|
||||
|
|
@ -751,6 +754,8 @@ two conditions are met:
|
|||
* the globally installed version is identical to the version that is being
|
||||
installed locally.
|
||||
|
||||
When used with `npm ls`, only show packages that are linked.
|
||||
|
||||
#### `local-address`
|
||||
|
||||
* Default: null
|
||||
|
|
@ -783,7 +788,7 @@ The maximum number of log files to store.
|
|||
* Default: false
|
||||
* Type: Boolean
|
||||
|
||||
Show extended information in `npm ls` and `npm search`.
|
||||
Show extended information in `ls`, `search`, and `help-search`.
|
||||
|
||||
#### `maxsockets`
|
||||
|
||||
|
|
@ -844,8 +849,8 @@ allow the CLI to fill in missing cache data, see `--prefer-offline`.
|
|||
|
||||
#### `omit`
|
||||
|
||||
* Default: 'dev' if the NODE_ENV environment variable is set to 'production',
|
||||
otherwise empty.
|
||||
* Default: 'dev' if the `NODE_ENV` environment variable is set to
|
||||
'production', otherwise empty.
|
||||
* Type: "dev", "optional", or "peer" (can be set multiple times)
|
||||
|
||||
Dependency types to omit from the installation tree on disk.
|
||||
|
|
@ -1064,16 +1069,29 @@ or `--save-optional` are true.
|
|||
|
||||
Associate an operation with a scope for a scoped registry.
|
||||
|
||||
Useful when logging in to a private registry for the first time:
|
||||
Useful when logging in to or out of a private registry:
|
||||
|
||||
```bash
|
||||
```
|
||||
# log in, linking the scope to the custom registry
|
||||
npm login --scope=@mycorp --registry=https://registry.mycorp.com
|
||||
|
||||
# log out, removing the link and the auth token
|
||||
npm logout --scope=@mycorp
|
||||
```
|
||||
|
||||
This will cause `@mycorp` to be mapped to the registry for future
|
||||
installation of packages specified according to the pattern
|
||||
`@mycorp/package`.
|
||||
|
||||
This will also cause `npm init` to create a scoped package.
|
||||
|
||||
```
|
||||
# accept all defaults, and create a package named "@foo/whatever",
|
||||
# instead of just named "whatever"
|
||||
npm init --scope=@foo --yes
|
||||
```
|
||||
|
||||
|
||||
#### `script-shell`
|
||||
|
||||
* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
|
||||
|
|
@ -1182,6 +1200,9 @@ then it will install the specified tag.
|
|||
Also the tag that is added to the package@version specified by the `npm tag`
|
||||
command, if no explicit tag is given.
|
||||
|
||||
When used by the `npm diff` command, this is the tag used to fetch the
|
||||
tarball that will be compared with the local files by default.
|
||||
|
||||
#### `tag-version-prefix`
|
||||
|
||||
* Default: "v"
|
||||
|
|
@ -1230,7 +1251,7 @@ other files are created with a mode of 0o644.
|
|||
#### `unicode`
|
||||
|
||||
* Default: false on windows, true on mac/unix systems with a unicode locale,
|
||||
as defined by the LC_ALL, LC_CTYPE, or LANG environment variables.
|
||||
as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
|
||||
* Type: Boolean
|
||||
|
||||
When set to true, npm uses unicode characters in the tree output. When
|
||||
|
|
@ -1325,9 +1346,16 @@ Enable running a command in the context of the configured workspaces of the
|
|||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.
|
||||
|
||||
Valid values for the `workspace` config are either: - Workspace names - Path
|
||||
to a workspace directory - Path to a parent workspace directory (will result
|
||||
to selecting all of the nested workspaces)
|
||||
Valid values for the `workspace` config are either:
|
||||
|
||||
* Workspace names
|
||||
* Path to a workspace directory
|
||||
* Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)
|
||||
|
||||
When set for the `npm init` command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.
|
||||
|
||||
This value is not exported to the environment for child processes.
|
||||
|
||||
|
|
|
|||
21
deps/npm/docs/output/commands/npm-access.html
vendored
21
deps/npm/docs/output/commands/npm-access.html
vendored
|
|
@ -141,7 +141,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="#details">Details</a></li><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="#details">Details</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#registry"><code>registry</code></a></li><li><a href="#otp"><code>otp</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -216,6 +216,25 @@ the command line.</p>
|
|||
fail with an HTTP 402 status code (logically enough), unless you use
|
||||
<code>--access=public</code>.</p>
|
||||
<p>Management of teams and team memberships is done with the <code>npm team</code> command.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<h4 id="otp"><code>otp</code></h4>
|
||||
<ul>
|
||||
<li>Default: null</li>
|
||||
<li>Type: null or String</li>
|
||||
</ul>
|
||||
<p>This is a one-time password from a two-factor authenticator. It’s needed
|
||||
when publishing or changing package permissions with <code>npm access</code>.</p>
|
||||
<p>If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="https://npm.im/libnpmaccess"><code>libnpmaccess</code></a></li>
|
||||
|
|
|
|||
52
deps/npm/docs/output/commands/npm-adduser.html
vendored
52
deps/npm/docs/output/commands/npm-adduser.html
vendored
|
|
@ -141,7 +141,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">registry</a></li><li><a href="#scope">scope</a></li><li><a href="#auth-type">auth-type</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></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -163,28 +163,36 @@ the username, password and email address must all match with
|
|||
your existing record.</p>
|
||||
<p><code>npm login</code> is an alias to <code>adduser</code> and behaves exactly the same way.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="registry">registry</h4>
|
||||
<p>Default: <a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a></p>
|
||||
<p>The base URL of the npm package registry. If <code>scope</code> is also specified,
|
||||
this registry will only be used for packages with that scope. <code>scope</code> defaults
|
||||
to the scope of the project directory you’re currently in, if any. See <a href="../using-npm/scope.html"><code>scope</code></a>.</p>
|
||||
<h4 id="scope">scope</h4>
|
||||
<p>Default: none</p>
|
||||
<p>If specified, the user and login credentials given will be associated
|
||||
with the specified scope. See <a href="../using-npm/scope.html"><code>scope</code></a>. You can use both at the same time,
|
||||
e.g.</p>
|
||||
<pre lang="bash"><code>npm adduser --registry=http://myregistry.example.com --scope=@myco
|
||||
</code></pre>
|
||||
<p>This will set a registry for the given scope and login or create a user for
|
||||
that registry at the same time.</p>
|
||||
<h4 id="auth-type">auth-type</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: <code>'legacy'</code></li>
|
||||
<li>Type: <code>'legacy'</code>, <code>'sso'</code>, <code>'saml'</code>, <code>'oauth'</code></li>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>What authentication strategy to use with <code>adduser</code>/<code>login</code>. Some npm registries
|
||||
(for example, npmE) might support alternative auth strategies besides classic
|
||||
username/password entry in legacy npm.</p>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<h4 id="scope"><code>scope</code></h4>
|
||||
<ul>
|
||||
<li>Default: the scope of the current project, if any, or “”</li>
|
||||
<li>Type: String</li>
|
||||
</ul>
|
||||
<p>Associate an operation with a scope for a scoped registry.</p>
|
||||
<p>Useful when logging in to or out of a private registry:</p>
|
||||
<pre><code># log in, linking the scope to the custom registry
|
||||
npm login --scope=@mycorp --registry=https://registry.mycorp.com
|
||||
|
||||
# log out, removing the link and the auth token
|
||||
npm logout --scope=@mycorp
|
||||
</code></pre>
|
||||
<p>This will cause <code>@mycorp</code> to be mapped to the registry for future
|
||||
installation of packages specified according to the pattern
|
||||
<code>@mycorp/package</code>.</p>
|
||||
<p>This will also cause <code>npm init</code> to create a scoped package.</p>
|
||||
<pre><code># accept all defaults, and create a package named "@foo/whatever",
|
||||
# instead of just named "whatever"
|
||||
npm init --scope=@foo --yes
|
||||
</code></pre>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../using-npm/registry.html">npm registry</a></li>
|
||||
|
|
@ -192,6 +200,8 @@ username/password entry in legacy npm.</p>
|
|||
<li><a href="../configuring-npm/npmrc.html">npmrc</a></li>
|
||||
<li><a href="../commands/npm-owner.html">npm owner</a></li>
|
||||
<li><a href="../commands/npm-whoami.html">npm whoami</a></li>
|
||||
<li><a href="../commands/npm-token.html">npm token</a></li>
|
||||
<li><a href="../commands/npm-profile.html">npm profile</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
102
deps/npm/docs/output/commands/npm-audit.html
vendored
102
deps/npm/docs/output/commands/npm-audit.html
vendored
|
|
@ -141,7 +141,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="#audit-endpoints">Audit Endpoints</a></li><ul><li><a href="#bulk-advisory-endpoint">Bulk Advisory Endpoint</a></li><li><a href="#quick-audit-endpoint">Quick Audit Endpoint</a></li><li><a href="#scrubbing">Scrubbing</a></li><li><a href="#calculating-meta-vulnerabilities-and-remediations">Calculating Meta-Vulnerabilities and Remediations</a></li></ul><li><a href="#exit-code">Exit Code</a></li><li><a href="#examples">Examples</a></li><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="#audit-endpoints">Audit Endpoints</a></li><ul><li><a href="#bulk-advisory-endpoint">Bulk Advisory Endpoint</a></li><li><a href="#quick-audit-endpoint">Quick Audit Endpoint</a></li><li><a href="#scrubbing">Scrubbing</a></li><li><a href="#calculating-meta-vulnerabilities-and-remediations">Calculating Meta-Vulnerabilities and Remediations</a></li></ul><li><a href="#exit-code">Exit Code</a></li><li><a href="#examples">Examples</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#audit-level"><code>audit-level</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#force"><code>force</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#package-lock-only"><code>package-lock-only</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -268,6 +268,106 @@ fixing anything:</p>
|
|||
<p>Fail an audit only if the results include a vulnerability with a level of moderate or higher:</p>
|
||||
<pre lang="bash"><code>$ npm audit --audit-level=moderate
|
||||
</code></pre>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="audit-level"><code>audit-level</code></h4>
|
||||
<ul>
|
||||
<li>Default: null</li>
|
||||
<li>Type: null, “info”, “low”, “moderate”, “high”, “critical”, or “none”</li>
|
||||
</ul>
|
||||
<p>The minimum level of vulnerability for <code>npm audit</code> to exit with a non-zero
|
||||
exit code.</p>
|
||||
<h4 id="dry-run"><code>dry-run</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Indicates that you don’t want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, <code>install</code>, <code>update</code>,
|
||||
<code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p>
|
||||
<p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>,
|
||||
<code>owner</code>, etc.</p>
|
||||
<h4 id="force"><code>force</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Removes various protections against unfortunate side effects, common
|
||||
mistakes, unnecessary performance degradation, and malicious input.</p>
|
||||
<ul>
|
||||
<li>Allow clobbering non-npm files in global installs.</li>
|
||||
<li>Allow the <code>npm version</code> command to work on an unclean git repository.</li>
|
||||
<li>Allow deleting the cache folder with <code>npm cache clean</code>.</li>
|
||||
<li>Allow installing packages that have an <code>engines</code> declaration requiring a
|
||||
different version of npm.</li>
|
||||
<li>Allow installing packages that have an <code>engines</code> declaration requiring a
|
||||
different version of <code>node</code>, even if <code>--engine-strict</code> is enabled.</li>
|
||||
<li>Allow <code>npm audit fix</code> to install modules outside your stated dependency
|
||||
range (including SemVer-major changes).</li>
|
||||
<li>Allow unpublishing all versions of a published package.</li>
|
||||
<li>Allow conflicting peerDependencies to be installed in the root project.</li>
|
||||
<li>Implicitly set <code>--yes</code> during <code>npm init</code>.</li>
|
||||
</ul>
|
||||
<p>If you don’t have a clear idea of what you want to do, it is strongly
|
||||
recommended that you do not use this option!</p>
|
||||
<h4 id="json"><code>json</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Whether or not to output JSON data, rather than the normal output.</p>
|
||||
<p>Not supported by all npm commands.</p>
|
||||
<h4 id="package-lock-only"><code>package-lock-only</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to true, it will update only the <code>package-lock.json</code>, instead of
|
||||
checking <code>node_modules</code> and downloading dependencies.</p>
|
||||
<h4 id="omit"><code>omit</code></h4>
|
||||
<ul>
|
||||
<li>Default: ‘dev’ if the <code>NODE_ENV</code> environment variable is set to
|
||||
‘production’, otherwise empty.</li>
|
||||
<li>Type: “dev”, “optional”, or “peer” (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Dependency types to omit from the installation tree on disk.</p>
|
||||
<p>Note that these dependencies <em>are</em> still resolved and added to the
|
||||
<code>package-lock.json</code> or <code>npm-shrinkwrap.json</code> file. They are just not
|
||||
physically installed on disk.</p>
|
||||
<p>If a package type appears in both the <code>--include</code> and <code>--omit</code> lists, then
|
||||
it will be included.</p>
|
||||
<p>If the resulting omit list includes <code>'dev'</code>, then the <code>NODE_ENV</code> environment
|
||||
variable will be set to <code>'production'</code> for all lifecycle scripts.</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-install.html">npm install</a></li>
|
||||
|
|
|
|||
20
deps/npm/docs/output/commands/npm-bin.html
vendored
20
deps/npm/docs/output/commands/npm-bin.html
vendored
|
|
@ -141,7 +141,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="#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="#global"><code>global</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -150,6 +150,24 @@ npm command-line interface
|
|||
<p>Note: This command is unaware of workspaces.</p>
|
||||
<h3 id="description">Description</h3>
|
||||
<p>Print the folder where npm will install executables.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- 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 -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-prefix.html">npm prefix</a></li>
|
||||
|
|
|
|||
19
deps/npm/docs/output/commands/npm-bugs.html
vendored
19
deps/npm/docs/output/commands/npm-bugs.html
vendored
|
|
@ -141,7 +141,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="#browser">browser</a></li><li><a href="#registry">registry</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="#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>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -155,21 +155,24 @@ tracker URL or the <code>mailto</code> URL of the support email, and then tries
|
|||
open it using the <code>--browser</code> config param. If no package name is provided, it
|
||||
will search for a <code>package.json</code> in the current folder and use the <code>name</code> property.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="browser">browser</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="browser"><code>browser</code></h4>
|
||||
<ul>
|
||||
<li>Default: OS X: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
|
||||
<li>Type: String or Boolean</li>
|
||||
<li>Type: null, Boolean, or String</li>
|
||||
</ul>
|
||||
<p>The browser that is called by the <code>npm bugs</code> command to open websites.</p>
|
||||
<p>The browser that is called by npm commands to open websites.</p>
|
||||
<p>Set to <code>false</code> to suppress browser behavior and instead print urls to
|
||||
terminal.</p>
|
||||
<p>Set to <code>true</code> to use default system URL opener.</p>
|
||||
<h4 id="registry">registry</h4>
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: <a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a></li>
|
||||
<li>Type: url</li>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm package registry.</p>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-docs.html">npm docs</a></li>
|
||||
|
|
|
|||
14
deps/npm/docs/output/commands/npm-cache.html
vendored
14
deps/npm/docs/output/commands/npm-cache.html
vendored
|
|
@ -141,7 +141,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="#details">Details</a></li><li><a href="#a-note-about-the-caches-design">A note about the cache’s design</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#cache">cache</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="#details">Details</a></li><li><a href="#a-note-about-the-caches-design">A note about the cache’s design</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#cache"><code>cache</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,9 +204,15 @@ cache makes is that, if it does return data, that data will be exactly the
|
|||
data that was inserted.</p>
|
||||
<p>To run an offline verification of existing cache contents, use <code>npm cache verify</code>.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="cache">cache</h4>
|
||||
<p>Default: <code>~/.npm</code> on Posix, or <code>%AppData%/npm-cache</code> on Windows.</p>
|
||||
<p>The root cache folder.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="cache"><code>cache</code></h4>
|
||||
<ul>
|
||||
<li>Default: Windows: <code>%LocalAppData%\npm-cache</code>, Posix: <code>~/.npm</code></li>
|
||||
<li>Type: Path</li>
|
||||
</ul>
|
||||
<p>The location of npm’s cache directory. See <a href="../commands/npm-cache.html"><code>npm cache</code></a></p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../configuring-npm/folders.html">npm folders</a></li>
|
||||
|
|
|
|||
22
deps/npm/docs/output/commands/npm-ci.html
vendored
22
deps/npm/docs/output/commands/npm-ci.html
vendored
|
|
@ -141,7 +141,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="#example">Example</a></li><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="#example">Example</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#script-shell"><code>script-shell</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -190,6 +190,26 @@ cache:
|
|||
directories:
|
||||
- "$HOME/.npm"
|
||||
</code></pre>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="ignore-scripts"><code>ignore-scripts</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If true, npm does not run scripts specified in package.json files.</p>
|
||||
<p>Note that commands explicitly intended to run a particular script, such as
|
||||
<code>npm start</code>, <code>npm stop</code>, <code>npm restart</code>, <code>npm test</code>, and <code>npm run-script</code>
|
||||
will still run their intended script if <code>ignore-scripts</code> is set, but they
|
||||
will <em>not</em> run any pre- or post-scripts.</p>
|
||||
<h4 id="script-shell"><code>script-shell</code></h4>
|
||||
<ul>
|
||||
<li>Default: ‘/bin/sh’ on POSIX systems, ‘cmd.exe’ on Windows</li>
|
||||
<li>Type: null or String</li>
|
||||
</ul>
|
||||
<p>The shell to use for scripts run with the <code>npm exec</code>, <code>npm run</code> and <code>npm init <pkg></code> commands.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-install.html">npm install</a></li>
|
||||
|
|
|
|||
40
deps/npm/docs/output/commands/npm-config.html
vendored
40
deps/npm/docs/output/commands/npm-config.html
vendored
|
|
@ -141,7 +141,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="#sub-commands">Sub-commands</a></li><ul><li><a href="#set">set</a></li><li><a href="#get">get</a></li><li><a href="#list">list</a></li><li><a href="#delete">delete</a></li><li><a href="#edit2">edit</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="#sub-commands">Sub-commands</a></li><ul><li><a href="#set">set</a></li><li><a href="#get">get</a></li><li><a href="#list">list</a></li><li><a href="#delete">delete</a></li><li><a href="#edit2">edit</a></li></ul><li><a href="#configuration">Configuration</a></li><ul><li><a href="#json"><code>json</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#editor"><code>editor</code></a></li><li><a href="#long"><code>long</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -197,6 +197,44 @@ to show the settings in json format.</p>
|
|||
</code></pre>
|
||||
<p>Opens the config file in an editor. Use the <code>--global</code> flag to edit the
|
||||
global config.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="json"><code>json</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Whether or not to output JSON data, rather than the normal output.</p>
|
||||
<p>Not supported by all npm commands.</p>
|
||||
<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>
|
||||
<h4 id="editor"><code>editor</code></h4>
|
||||
<ul>
|
||||
<li>Default: The EDITOR or VISUAL environment variables, or ‘notepad.exe’ on
|
||||
Windows, or ‘vim’ on Unix systems</li>
|
||||
<li>Type: String</li>
|
||||
</ul>
|
||||
<p>The command to run for <code>npm edit</code> and <code>npm config edit</code>.</p>
|
||||
<h4 id="long"><code>long</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Show extended information in <code>ls</code>, <code>search</code>, and <code>help-search</code>.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../configuring-npm/folders.html">npm folders</a></li>
|
||||
|
|
|
|||
139
deps/npm/docs/output/commands/npm-dedupe.html
vendored
139
deps/npm/docs/output/commands/npm-dedupe.html
vendored
|
|
@ -141,7 +141,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="#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="#global-style"><code>global-style</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -191,6 +191,143 @@ sufficient.</p>
|
|||
<p>Note that this operation transforms the dependency tree, but will never
|
||||
result in new modules being installed.</p>
|
||||
<p>Using <code>npm find-dupes</code> will run the command in <code>--dry-run</code> mode.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="global-style"><code>global-style</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Causes npm to install the package into your local <code>node_modules</code> folder with
|
||||
the same layout it uses with the global <code>node_modules</code> folder. Only your
|
||||
direct dependencies will show in <code>node_modules</code> and everything they depend
|
||||
on will be flattened in their <code>node_modules</code> folders. This obviously will
|
||||
eliminate some deduping. If used with <code>legacy-bundling</code>, <code>legacy-bundling</code>
|
||||
will be preferred.</p>
|
||||
<h4 id="legacy-bundling"><code>legacy-bundling</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with <code>global-style</code> this option
|
||||
will be preferred.</p>
|
||||
<h4 id="strict-peer-deps"><code>strict-peer-deps</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to <code>true</code>, and <code>--legacy-peer-deps</code> is not set, then <em>any</em>
|
||||
conflicting <code>peerDependencies</code> will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.</p>
|
||||
<p>By default, conflicting <code>peerDependencies</code> deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package’s <code>peerDependencies</code> object.</p>
|
||||
<p>When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If <code>--strict-peer-deps</code> is set, then
|
||||
this warning is treated as a failure.</p>
|
||||
<h4 id="package-lock"><code>package-lock</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
|
||||
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
|
||||
<p>When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use <code>npm prune</code>.</p>
|
||||
<h4 id="omit"><code>omit</code></h4>
|
||||
<ul>
|
||||
<li>Default: ‘dev’ if the <code>NODE_ENV</code> environment variable is set to
|
||||
‘production’, otherwise empty.</li>
|
||||
<li>Type: “dev”, “optional”, or “peer” (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Dependency types to omit from the installation tree on disk.</p>
|
||||
<p>Note that these dependencies <em>are</em> still resolved and added to the
|
||||
<code>package-lock.json</code> or <code>npm-shrinkwrap.json</code> file. They are just not
|
||||
physically installed on disk.</p>
|
||||
<p>If a package type appears in both the <code>--include</code> and <code>--omit</code> lists, then
|
||||
it will be included.</p>
|
||||
<p>If the resulting omit list includes <code>'dev'</code>, then the <code>NODE_ENV</code> environment
|
||||
variable will be set to <code>'production'</code> for all lifecycle scripts.</p>
|
||||
<h4 id="ignore-scripts"><code>ignore-scripts</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If true, npm does not run scripts specified in package.json files.</p>
|
||||
<p>Note that commands explicitly intended to run a particular script, such as
|
||||
<code>npm start</code>, <code>npm stop</code>, <code>npm restart</code>, <code>npm test</code>, and <code>npm run-script</code>
|
||||
will still run their intended script if <code>ignore-scripts</code> is set, but they
|
||||
will <em>not</em> run any pre- or post-scripts.</p>
|
||||
<h4 id="audit"><code>audit</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When “true” submit audit reports alongside <code>npm install</code> runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
<a href="../commands/npm-audit.html"><code>npm audit</code></a> for details on what is submitted.</p>
|
||||
<h4 id="bin-links"><code>bin-links</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Tells npm to create symlinks (or <code>.cmd</code> shims on Windows) for package
|
||||
executables.</p>
|
||||
<p>Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don’t support symlinks, even on ostensibly Unix
|
||||
systems.</p>
|
||||
<h4 id="fund"><code>fund</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When “true” displays the message at the end of each <code>npm install</code>
|
||||
acknowledging the number of dependencies looking for funding. See <a href="../commands/npm-fund.html"><code>npm fund</code></a> for details.</p>
|
||||
<h4 id="dry-run"><code>dry-run</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Indicates that you don’t want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, <code>install</code>, <code>update</code>,
|
||||
<code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p>
|
||||
<p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>,
|
||||
<code>owner</code>, etc.</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-find-dupes.html">npm find-dupes</a></li>
|
||||
|
|
|
|||
21
deps/npm/docs/output/commands/npm-deprecate.html
vendored
21
deps/npm/docs/output/commands/npm-deprecate.html
vendored
|
|
@ -141,7 +141,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="#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="#otp"><code>otp</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -165,6 +165,25 @@ include prerelease versions. For example:</p>
|
|||
<p>To un-deprecate a package, specify an empty string (<code>""</code>) for the <code>message</code>
|
||||
argument. Note that you must use double quotes with no space between them to
|
||||
format an empty string.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<h4 id="otp"><code>otp</code></h4>
|
||||
<ul>
|
||||
<li>Default: null</li>
|
||||
<li>Type: null or String</li>
|
||||
</ul>
|
||||
<p>This is a one-time password from a two-factor authenticator. It’s needed
|
||||
when publishing or changing package permissions with <code>npm access</code>.</p>
|
||||
<p>If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-publish.html">npm publish</a></li>
|
||||
|
|
|
|||
94
deps/npm/docs/output/commands/npm-diff.html
vendored
94
deps/npm/docs/output/commands/npm-diff.html
vendored
|
|
@ -258,70 +258,84 @@ of files for a given package, e.g:</p>
|
|||
located within the folder <code>./lib/</code> and changed lines of code within the
|
||||
<code>CHANGELOG.md</code> file.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="diff">diff</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="diff"><code>diff</code></h4>
|
||||
<ul>
|
||||
<li>Type: Array</li>
|
||||
<li>Default: null</li>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Defines npm package specifiers to compare using the <code>npm diff</code> command.</p>
|
||||
<p>This can be specified up to 2 times.</p>
|
||||
<h4 id="diff-name-only">diff-name-only</h4>
|
||||
<p>Define arguments to compare in <code>npm diff</code>.</p>
|
||||
<h4 id="diff-name-only"><code>diff-name-only</code></h4>
|
||||
<ul>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When set to <code>true</code> running <code>npm diff</code> only returns the names of the files that
|
||||
have any difference.</p>
|
||||
<h4 id="diff-unified">diff-unified</h4>
|
||||
<p>Prints only filenames when using <code>npm diff</code>.</p>
|
||||
<h4 id="diff-unified"><code>diff-unified</code></h4>
|
||||
<ul>
|
||||
<li>Default: 3</li>
|
||||
<li>Type: Number</li>
|
||||
<li>Default: <code>3</code></li>
|
||||
</ul>
|
||||
<p>The number of lines of context to print in the unified diff format output.</p>
|
||||
<h4 id="diff-ignore-all-space">diff-ignore-all-space</h4>
|
||||
<p>The number of lines of context to print in <code>npm diff</code>.</p>
|
||||
<h4 id="diff-ignore-all-space"><code>diff-ignore-all-space</code></h4>
|
||||
<ul>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: false</li>
|
||||
</ul>
|
||||
<p>Ignore whitespace when comparing lines. This ignores differences even if one
|
||||
line has whitespace where the other line has none.</p>
|
||||
<h4 id="diff-no-prefix">diff-no-prefix</h4>
|
||||
<ul>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: false</li>
|
||||
</ul>
|
||||
<p>Do not show any source or destination prefix.</p>
|
||||
<h4 id="diff-src-prefix">diff-src-prefix</h4>
|
||||
<p>Ignore whitespace when comparing lines in <code>npm diff</code>.</p>
|
||||
<h4 id="diff-no-prefix"><code>diff-no-prefix</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Do not show any source or destination prefix in <code>npm diff</code> output.</p>
|
||||
<p>Note: this causes <code>npm diff</code> to ignore the <code>--diff-src-prefix</code> and
|
||||
<code>--diff-dst-prefix</code> configs.</p>
|
||||
<h4 id="diff-src-prefix"><code>diff-src-prefix</code></h4>
|
||||
<ul>
|
||||
<li>Default: “a/”</li>
|
||||
<li>Type: String</li>
|
||||
<li>Default: <code>"a/"</code></li>
|
||||
</ul>
|
||||
<p>Show the given source prefix in diff patches headers instead of using “a/”.</p>
|
||||
<h4 id="diff-dst-prefix">diff-dst-prefix</h4>
|
||||
<p>Source prefix to be used in <code>npm diff</code> output.</p>
|
||||
<h4 id="diff-dst-prefix"><code>diff-dst-prefix</code></h4>
|
||||
<ul>
|
||||
<li>Default: “b/”</li>
|
||||
<li>Type: String</li>
|
||||
<li>Default: <code>"b/"</code></li>
|
||||
</ul>
|
||||
<p>Show the given source prefix in diff patches headers instead of using “b/”.</p>
|
||||
<h4 id="diff-text">diff-text</h4>
|
||||
<ul>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: false</li>
|
||||
</ul>
|
||||
<p>Treat all files as text.</p>
|
||||
<h4 id="global">global</h4>
|
||||
<p>Destination prefix to be used in <code>npm diff</code> output.</p>
|
||||
<h4 id="diff-text"><code>diff-text</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Uses packages from the global space as a source for comparison.</p>
|
||||
<h4 id="tag">tag</h4>
|
||||
<p>Treat all files as text in <code>npm diff</code>.</p>
|
||||
<h4 id="global"><code>global</code></h4>
|
||||
<ul>
|
||||
<li>Type: String</li>
|
||||
<li>Default: <code>"latest"</code></li>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>The tag used to fetch the tarball that will be compared with the local file
|
||||
system files when running npm diff with no arguments.</p>
|
||||
<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>
|
||||
<h4 id="tag"><code>tag</code></h4>
|
||||
<ul>
|
||||
<li>Default: “latest”</li>
|
||||
<li>Type: String</li>
|
||||
</ul>
|
||||
<p>If you ask npm to install a package and don’t tell it a specific version,
|
||||
then it will install the specified tag.</p>
|
||||
<p>Also the tag that is added to the package@version specified by the <code>npm tag</code>
|
||||
command, if no explicit tag is given.</p>
|
||||
<p>When used by the <code>npm diff</code> command, this is the tag used to fetch the
|
||||
tarball that will be compared with the local files by default.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h2 id="see-also">See Also</h2>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-outdated.html">npm outdated</a></li>
|
||||
|
|
|
|||
38
deps/npm/docs/output/commands/npm-dist-tag.html
vendored
38
deps/npm/docs/output/commands/npm-dist-tag.html
vendored
|
|
@ -141,7 +141,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="#purpose">Purpose</a></li><li><a href="#caveats">Caveats</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#workspaces">workspaces</a></li><li><a href="#workspace">workspace</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="#purpose">Purpose</a></li><li><a href="#caveats">Caveats</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -209,12 +209,36 @@ semver as <code>>=1.4.0 <1.5.0</code>. See <a href="https://github.com/np
|
|||
<p>The simplest way to avoid semver problems with tags is to use tags that do
|
||||
not begin with a number or the letter <code>v</code>.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="workspaces">workspaces</h4>
|
||||
<p>Only supported by <code>ls</code>. Enables listing dist-tags of all workspace
|
||||
contexts defined in the current <code>package.json</code>.</p>
|
||||
<h4 id="workspace">workspace</h4>
|
||||
<p>Only supported by <code>ls</code>. Enables listing dist-tags of workspace contexts
|
||||
limiting results to only those specified by this config item.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-publish.html">npm publish</a></li>
|
||||
|
|
|
|||
54
deps/npm/docs/output/commands/npm-docs.html
vendored
54
deps/npm/docs/output/commands/npm-docs.html
vendored
|
|
@ -141,7 +141,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="#browser">browser</a></li><li><a href="#registry">registry</a></li><li><a href="#workspaces">workspaces</a></li><li><a href="#workspace">workspace</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="#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></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -156,29 +156,51 @@ param. You can pass multiple package names at once. If no package name is
|
|||
provided, it will search for a <code>package.json</code> in the current folder and use
|
||||
the <code>name</code> property.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="browser">browser</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="browser"><code>browser</code></h4>
|
||||
<ul>
|
||||
<li>Default: OS X: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
|
||||
<li>Type: String or Boolean</li>
|
||||
<li>Type: null, Boolean, or String</li>
|
||||
</ul>
|
||||
<p>The browser that is called by the <code>npm docs</code> command to open websites.</p>
|
||||
<p>The browser that is called by npm commands to open websites.</p>
|
||||
<p>Set to <code>false</code> to suppress browser behavior and instead print urls to
|
||||
terminal.</p>
|
||||
<p>Set to <code>true</code> to use default system URL opener.</p>
|
||||
<h4 id="registry">registry</h4>
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: <a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a></li>
|
||||
<li>Type: url</li>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm package registry.</p>
|
||||
<h4 id="workspaces">workspaces</h4>
|
||||
<p>Enables workspaces context while searching the <code>package.json</code> in the
|
||||
current folder. Documentation urls for the packages named in each
|
||||
workspace will be opened.</p>
|
||||
<h4 id="workspace">workspace</h4>
|
||||
<p>Enables workspaces context and limits results to only those specified by
|
||||
this config item. Only the documentation urls for the packages named in
|
||||
the workspaces given here will be opened.</p>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-view.html">npm view</a></li>
|
||||
|
|
|
|||
12
deps/npm/docs/output/commands/npm-doctor.html
vendored
12
deps/npm/docs/output/commands/npm-doctor.html
vendored
|
|
@ -141,7 +141,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="#npm-ping"><code>npm ping</code></a></li><li><a href="#npm--v"><code>npm -v</code></a></li><li><a href="#node--v"><code>node -v</code></a></li><li><a href="#npm-config-get-registry"><code>npm config get registry</code></a></li><li><a href="#which-git"><code>which git</code></a></li><li><a href="#permissions-checks">Permissions checks</a></li><li><a href="#validate-the-checksums-of-cached-packages">Validate the checksums of cached packages</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="#npm-ping"><code>npm ping</code></a></li><li><a href="#npm--v"><code>npm -v</code></a></li><li><a href="#node--v"><code>node -v</code></a></li><li><a href="#npm-config-get-registry"><code>npm config get registry</code></a></li><li><a href="#which-git"><code>which git</code></a></li><li><a href="#permissions-checks">Permissions checks</a></li><li><a href="#validate-the-checksums-of-cached-packages">Validate the checksums of cached packages</a></li></ul><li><a href="#configuration">Configuration</a></li><ul><li><a href="#registry"><code>registry</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -221,6 +221,16 @@ package tarballs in your local cache (you can see where that cache is
|
|||
located with <code>npm config get cache</code>). In the event that there are corrupt
|
||||
packages in your cache, you should probably run <code>npm cache clean -f</code> and
|
||||
reset the cache.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-bugs.html">npm bugs</a></li>
|
||||
|
|
|
|||
15
deps/npm/docs/output/commands/npm-edit.html
vendored
15
deps/npm/docs/output/commands/npm-edit.html
vendored
|
|
@ -141,7 +141,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="#editor">editor</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="#editor"><code>editor</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -158,13 +158,16 @@ changes in compiled packages.</p>
|
|||
into your package, and then <code>npm edit connect</code> to make a few
|
||||
changes to your locally installed copy.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="editor">editor</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="editor"><code>editor</code></h4>
|
||||
<ul>
|
||||
<li>Default: <code>EDITOR</code> environment variable if set, or <code>"vi"</code> on Posix,
|
||||
or <code>"notepad"</code> on Windows.</li>
|
||||
<li>Type: path</li>
|
||||
<li>Default: The EDITOR or VISUAL environment variables, or ‘notepad.exe’ on
|
||||
Windows, or ‘vim’ on Unix systems</li>
|
||||
<li>Type: String</li>
|
||||
</ul>
|
||||
<p>The command to run for <code>npm edit</code> or <code>npm config edit</code>.</p>
|
||||
<p>The command to run for <code>npm edit</code> and <code>npm config edit</code>.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../configuring-npm/folders.html">npm folders</a></li>
|
||||
|
|
|
|||
65
deps/npm/docs/output/commands/npm-exec.html
vendored
65
deps/npm/docs/output/commands/npm-exec.html
vendored
|
|
@ -141,7 +141,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="#npx-vs-npm-exec"><code>npx</code> vs <code>npm exec</code></a></li><li><a href="#examples">Examples</a></li><li><a href="#workspaces-support">Workspaces support</a></li><ul><li><a href="#filtering-workspaces">Filtering workspaces</a></li></ul><li><a href="#compatibility-with-older-npx-versions">Compatibility with Older npx Versions</a></li><li><a href="#a-note-on-caching">A note on caching</a></li><ul><li><a href="#prefer-online">prefer-online</a></li><li><a href="#prefer-offline">prefer-offline</a></li><li><a href="#offline">offline</a></li><li><a href="#workspace">workspace</a></li><li><a href="#workspaces">workspaces</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="#npx-vs-npm-exec"><code>npx</code> vs <code>npm exec</code></a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#package"><code>package</code></a></li><li><a href="#call"><code>call</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#examples">Examples</a></li><li><a href="#workspaces-support">Workspaces support</a></li><ul><li><a href="#filtering-workspaces">Filtering workspaces</a></li></ul><li><a href="#compatibility-with-older-npx-versions">Compatibility with Older npx Versions</a></li><li><a href="#a-note-on-caching">A note on caching</a></li><ul><li><a href="#prefer-online">prefer-online</a></li><li><a href="#prefer-offline">prefer-offline</a></li><li><a href="#offline">offline</a></li><li><a href="#workspace2">workspace</a></li><li><a href="#workspaces2">workspaces</a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -232,6 +232,52 @@ parsing command line options and switches. The following command would
|
|||
thus be equivalent to the <code>npx</code> command above:</p>
|
||||
<pre><code>$ npm exec -- foo@latest bar --package=@npmcli/foo
|
||||
</code></pre>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="package"><code>package</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>The package to install for <a href="../commands/npm-exec.html"><code>npm exec</code></a></p>
|
||||
<h4 id="call"><code>call</code></h4>
|
||||
<ul>
|
||||
<li>Default: “”</li>
|
||||
<li>Type: String</li>
|
||||
</ul>
|
||||
<p>Optional companion option for <code>npm exec</code>, <code>npx</code> that allows for specifying a
|
||||
custom command to be run along with the installed packages.</p>
|
||||
<pre lang="bash"><code>npm exec --package yo --package generator-node --call "yo node"
|
||||
</code></pre>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="examples">Examples</h3>
|
||||
<p>Run the version of <code>tap</code> in the local dependencies, with the provided
|
||||
arguments:</p>
|
||||
|
|
@ -331,22 +377,23 @@ requested from the server. To force full offline mode, use <code>offline</code>.
|
|||
<h4 id="offline">offline</h4>
|
||||
<p>Forces full offline mode. Any packages not locally cached will result in
|
||||
an error.</p>
|
||||
<h4 id="workspace">workspace</h4>
|
||||
<h4 id="workspace2">workspace</h4>
|
||||
<ul>
|
||||
<li>Alias: <code>-w</code></li>
|
||||
<li>Type: Array</li>
|
||||
<li>Default: <code>[]</code></li>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running scripts in the context of workspaces while also filtering by
|
||||
the provided names or paths provided.</p>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
children workspaces)</li>
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<h4 id="workspaces">workspaces</h4>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces2">workspaces</h4>
|
||||
<ul>
|
||||
<li>Alias: <code>--ws</code></li>
|
||||
<li>Type: Boolean</li>
|
||||
|
|
|
|||
29
deps/npm/docs/output/commands/npm-explain.html
vendored
29
deps/npm/docs/output/commands/npm-explain.html
vendored
|
|
@ -141,7 +141,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="#json">json</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="#json"><code>json</code></a></li><li><a href="#workspace"><code>workspace</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -182,12 +182,35 @@ node_modules/nyc/node_modules/find-up
|
|||
dev tap@"^14.10.8" from the root project
|
||||
</code></pre>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="json">json</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="json"><code>json</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Show information in JSON format.</p>
|
||||
<p>Whether or not to output JSON data, rather than the normal output.</p>
|
||||
<p>Not supported by all npm commands.</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-config.html">npm config</a></li>
|
||||
|
|
|
|||
11
deps/npm/docs/output/commands/npm-explore.html
vendored
11
deps/npm/docs/output/commands/npm-explore.html
vendored
|
|
@ -141,7 +141,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="#shell">shell</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="#shell"><code>shell</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -159,13 +159,16 @@ immediately terminates.</p>
|
|||
<p>Note that the package is <em>not</em> automatically rebuilt afterwards, so be
|
||||
sure to use <code>npm rebuild <pkg></code> if you make any changes.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="shell">shell</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="shell"><code>shell</code></h4>
|
||||
<ul>
|
||||
<li>Default: SHELL environment variable, or “bash” on Posix, or “cmd” on
|
||||
<li>Default: SHELL environment variable, or “bash” on Posix, or “cmd.exe” on
|
||||
Windows</li>
|
||||
<li>Type: path</li>
|
||||
<li>Type: String</li>
|
||||
</ul>
|
||||
<p>The shell to run for the <code>npm explore</code> command.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../configuring-npm/folders.html">npm folders</a></li>
|
||||
|
|
|
|||
128
deps/npm/docs/output/commands/npm-find-dupes.html
vendored
128
deps/npm/docs/output/commands/npm-find-dupes.html
vendored
|
|
@ -141,7 +141,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="#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="#global-style"><code>global-style</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -150,6 +150,132 @@ npm command-line interface
|
|||
<h3 id="description">Description</h3>
|
||||
<p>Runs <code>npm dedupe</code> in <code>--dry-run</code> mode, making npm only output the
|
||||
duplications, without actually changing the package tree.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="global-style"><code>global-style</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Causes npm to install the package into your local <code>node_modules</code> folder with
|
||||
the same layout it uses with the global <code>node_modules</code> folder. Only your
|
||||
direct dependencies will show in <code>node_modules</code> and everything they depend
|
||||
on will be flattened in their <code>node_modules</code> folders. This obviously will
|
||||
eliminate some deduping. If used with <code>legacy-bundling</code>, <code>legacy-bundling</code>
|
||||
will be preferred.</p>
|
||||
<h4 id="legacy-bundling"><code>legacy-bundling</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with <code>global-style</code> this option
|
||||
will be preferred.</p>
|
||||
<h4 id="strict-peer-deps"><code>strict-peer-deps</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to <code>true</code>, and <code>--legacy-peer-deps</code> is not set, then <em>any</em>
|
||||
conflicting <code>peerDependencies</code> will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.</p>
|
||||
<p>By default, conflicting <code>peerDependencies</code> deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package’s <code>peerDependencies</code> object.</p>
|
||||
<p>When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If <code>--strict-peer-deps</code> is set, then
|
||||
this warning is treated as a failure.</p>
|
||||
<h4 id="package-lock"><code>package-lock</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
|
||||
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
|
||||
<p>When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use <code>npm prune</code>.</p>
|
||||
<h4 id="omit"><code>omit</code></h4>
|
||||
<ul>
|
||||
<li>Default: ‘dev’ if the <code>NODE_ENV</code> environment variable is set to
|
||||
‘production’, otherwise empty.</li>
|
||||
<li>Type: “dev”, “optional”, or “peer” (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Dependency types to omit from the installation tree on disk.</p>
|
||||
<p>Note that these dependencies <em>are</em> still resolved and added to the
|
||||
<code>package-lock.json</code> or <code>npm-shrinkwrap.json</code> file. They are just not
|
||||
physically installed on disk.</p>
|
||||
<p>If a package type appears in both the <code>--include</code> and <code>--omit</code> lists, then
|
||||
it will be included.</p>
|
||||
<p>If the resulting omit list includes <code>'dev'</code>, then the <code>NODE_ENV</code> environment
|
||||
variable will be set to <code>'production'</code> for all lifecycle scripts.</p>
|
||||
<h4 id="ignore-scripts"><code>ignore-scripts</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If true, npm does not run scripts specified in package.json files.</p>
|
||||
<p>Note that commands explicitly intended to run a particular script, such as
|
||||
<code>npm start</code>, <code>npm stop</code>, <code>npm restart</code>, <code>npm test</code>, and <code>npm run-script</code>
|
||||
will still run their intended script if <code>ignore-scripts</code> is set, but they
|
||||
will <em>not</em> run any pre- or post-scripts.</p>
|
||||
<h4 id="audit"><code>audit</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When “true” submit audit reports alongside <code>npm install</code> runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
<a href="../commands/npm-audit.html"><code>npm audit</code></a> for details on what is submitted.</p>
|
||||
<h4 id="bin-links"><code>bin-links</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Tells npm to create symlinks (or <code>.cmd</code> shims on Windows) for package
|
||||
executables.</p>
|
||||
<p>Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don’t support symlinks, even on ostensibly Unix
|
||||
systems.</p>
|
||||
<h4 id="fund"><code>fund</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When “true” displays the message at the end of each <code>npm install</code>
|
||||
acknowledging the number of dependencies looking for funding. See <a href="../commands/npm-fund.html"><code>npm fund</code></a> for details.</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-dedupe.html">npm dedupe</a></li>
|
||||
|
|
|
|||
43
deps/npm/docs/output/commands/npm-fund.html
vendored
43
deps/npm/docs/output/commands/npm-fund.html
vendored
|
|
@ -187,25 +187,32 @@ test-workspaces-fund@1.0.0
|
|||
`-- foo@2.0.0
|
||||
</code></pre>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="browser">browser</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="json"><code>json</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Whether or not to output JSON data, rather than the normal output.</p>
|
||||
<p>Not supported by all npm commands.</p>
|
||||
<h4 id="browser"><code>browser</code></h4>
|
||||
<ul>
|
||||
<li>Default: OS X: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li>
|
||||
<li>Type: String</li>
|
||||
<li>Type: null, Boolean, or String</li>
|
||||
</ul>
|
||||
<p>The browser that is called by the <code>npm fund</code> command to open websites.</p>
|
||||
<h4 id="json">json</h4>
|
||||
<p>The browser that is called by npm commands to open websites.</p>
|
||||
<p>Set to <code>false</code> to suppress browser behavior and instead print urls to
|
||||
terminal.</p>
|
||||
<p>Set to <code>true</code> to use default system URL opener.</p>
|
||||
<h4 id="unicode"><code>unicode</code></h4>
|
||||
<ul>
|
||||
<li>Default: false on windows, true on mac/unix systems with a unicode locale,
|
||||
as defined by the <code>LC_ALL</code>, <code>LC_CTYPE</code>, or <code>LANG</code> environment variables.</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: false</li>
|
||||
</ul>
|
||||
<p>Show information in JSON format.</p>
|
||||
<h4 id="unicode">unicode</h4>
|
||||
<ul>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: true</li>
|
||||
</ul>
|
||||
<p>Whether to represent the tree structure using unicode characters.
|
||||
Set it to <code>false</code> in order to use all-ansi output.</p>
|
||||
<p>When set to true, npm uses unicode characters in the tree output. When
|
||||
false, it uses ascii characters instead of unicode glyphs.</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
|
|
@ -221,13 +228,17 @@ this configuration option.</p>
|
|||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="which">which</h4>
|
||||
<h4 id="which"><code>which</code></h4>
|
||||
<ul>
|
||||
<li>Type: Number</li>
|
||||
<li>Default: undefined</li>
|
||||
<li>Default: null</li>
|
||||
<li>Type: null or Number</li>
|
||||
</ul>
|
||||
<p>If there are multiple funding sources, which 1-indexed source URL to open.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h2 id="see-also">See Also</h2>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-install.html">npm install</a></li>
|
||||
|
|
|
|||
|
|
@ -141,7 +141,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="#long">long</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="#long"><code>long</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -156,14 +156,15 @@ provided, and then list the results, sorted by relevance.</p>
|
|||
<code>help-search</code>. It is rarely if ever necessary to call this command
|
||||
directly.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="long">long</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="long"><code>long</code></h4>
|
||||
<ul>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If true, the “long” flag will cause help-search to output context around
|
||||
where the terms were found in the documentation.</p>
|
||||
<p>If false, then help-search will just list out the help topics found.</p>
|
||||
<p>Show extended information in <code>ls</code>, <code>search</code>, and <code>help-search</code>.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm.html">npm</a></li>
|
||||
|
|
|
|||
9
deps/npm/docs/output/commands/npm-help.html
vendored
9
deps/npm/docs/output/commands/npm-help.html
vendored
|
|
@ -141,7 +141,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="#viewer">viewer</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="#viewer"><code>viewer</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -155,13 +155,16 @@ will run the <code>help-search</code> command to find a match. Note that, if
|
|||
<code>help-search</code> finds a single subject, then it will run <code>help</code> on that
|
||||
topic, so unique matches are equivalent to specifying a topic name.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="viewer">viewer</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="viewer"><code>viewer</code></h4>
|
||||
<ul>
|
||||
<li>Default: “man” on Posix, “browser” on Windows</li>
|
||||
<li>Type: path</li>
|
||||
<li>Type: String</li>
|
||||
</ul>
|
||||
<p>The program to use to view help content.</p>
|
||||
<p>Set to <code>"browser"</code> to view html help content in the default web browser.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm.html">npm</a></li>
|
||||
|
|
|
|||
21
deps/npm/docs/output/commands/npm-hook.html
vendored
21
deps/npm/docs/output/commands/npm-hook.html
vendored
|
|
@ -141,7 +141,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="#example">Example</a></li><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="#example">Example</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#registry"><code>registry</code></a></li><li><a href="#otp"><code>otp</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -189,6 +189,25 @@ the request came from your own configured hook.</p>
|
|||
<p>Remove a hook:</p>
|
||||
<pre lang="bash"><code>$ npm hook rm id-deadbeef
|
||||
</code></pre>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<h4 id="otp"><code>otp</code></h4>
|
||||
<ul>
|
||||
<li>Default: null</li>
|
||||
<li>Type: null or String</li>
|
||||
</ul>
|
||||
<p>This is a one-time password from a two-factor authenticator. It’s needed
|
||||
when publishing or changing package permissions with <code>npm access</code>.</p>
|
||||
<p>If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm">“Introducing Hooks” blog post</a></li>
|
||||
|
|
|
|||
82
deps/npm/docs/output/commands/npm-init.html
vendored
82
deps/npm/docs/output/commands/npm-init.html
vendored
|
|
@ -141,11 +141,11 @@ 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="#a-note-on-caching">A note on caching</a></li><ul><li><a href="#prefer-online">prefer-online</a></li><li><a href="#prefer-offline">prefer-offline</a></li><li><a href="#offline">offline</a></li><li><a href="#workspace">workspace</a></li><li><a href="#workspaces">workspaces</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></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
<pre lang="bash"><code>npm init [--force|-f|--yes|-y|--scope]
|
||||
<pre lang="bash"><code>npm init [--yes|-y|--scope]
|
||||
npm init <@scope> (same as `npm exec <@scope>/create`)
|
||||
npm init [<@scope>/]<name> (same as `npm exec [<@scope>/]create-<name>`)
|
||||
npm init [-w <dir>] [args...]
|
||||
|
|
@ -243,45 +243,67 @@ dot to represent the current directory in that context, e.g: <code>react-app .</
|
|||
+-- package.json
|
||||
`-- ...
|
||||
</code></pre>
|
||||
<h3 id="a-note-on-caching">A note on caching</h3>
|
||||
<p>The npm cli utilizes its internal package cache when using the package
|
||||
name specified. You can use the following to change how and when the
|
||||
cli uses this cache. See <a href="../commands/npm-cache.html"><code>npm cache</code></a> for more on
|
||||
how the cache works.</p>
|
||||
<h4 id="prefer-online">prefer-online</h4>
|
||||
<p>Forces staleness checks for packages, making the cli look for updates
|
||||
immediately even if the package is already in the cache.</p>
|
||||
<h4 id="prefer-offline">prefer-offline</h4>
|
||||
<p>Bypasses staleness checks for packages. Missing data will still be
|
||||
requested from the server. To force full offline mode, use <code>offline</code>.</p>
|
||||
<h4 id="offline">offline</h4>
|
||||
<p>Forces full offline mode. Any packages not locally cached will result in
|
||||
an error.</p>
|
||||
<h4 id="workspace">workspace</h4>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="yes"><code>yes</code></h4>
|
||||
<ul>
|
||||
<li>Alias: <code>-w</code></li>
|
||||
<li>Type: Array</li>
|
||||
<li>Default: <code>[]</code></li>
|
||||
<li>Default: null</li>
|
||||
<li>Type: null or Boolean</li>
|
||||
</ul>
|
||||
<p>Enable running <code>npm init</code> in the context of workspaces, creating any missing
|
||||
folders, generating files and adding/updating the <code>"workspaces"</code> property of
|
||||
the project <code>package.json</code>.</p>
|
||||
<p>the provided names or paths provided.</p>
|
||||
<p>Automatically answer “yes” to any prompts that npm might print on the
|
||||
command line.</p>
|
||||
<h4 id="force"><code>force</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Removes various protections against unfortunate side effects, common
|
||||
mistakes, unnecessary performance degradation, and malicious input.</p>
|
||||
<ul>
|
||||
<li>Allow clobbering non-npm files in global installs.</li>
|
||||
<li>Allow the <code>npm version</code> command to work on an unclean git repository.</li>
|
||||
<li>Allow deleting the cache folder with <code>npm cache clean</code>.</li>
|
||||
<li>Allow installing packages that have an <code>engines</code> declaration requiring a
|
||||
different version of npm.</li>
|
||||
<li>Allow installing packages that have an <code>engines</code> declaration requiring a
|
||||
different version of <code>node</code>, even if <code>--engine-strict</code> is enabled.</li>
|
||||
<li>Allow <code>npm audit fix</code> to install modules outside your stated dependency
|
||||
range (including SemVer-major changes).</li>
|
||||
<li>Allow unpublishing all versions of a published package.</li>
|
||||
<li>Allow conflicting peerDependencies to be installed in the root project.</li>
|
||||
<li>Implicitly set <code>--yes</code> during <code>npm init</code>.</li>
|
||||
</ul>
|
||||
<p>If you don’t have a clear idea of what you want to do, it is strongly
|
||||
recommended that you do not use this option!</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
children workspaces)</li>
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<h4 id="workspaces">workspaces</h4>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Alias: <code>-ws</code></li>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: <code>false</code></li>
|
||||
</ul>
|
||||
<p>Run <code>npm init</code> in the context of all configured workspaces for the
|
||||
current project.</p>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="http://npm.im/init-package-json">init-package-json module</a></li>
|
||||
|
|
|
|||
|
|
@ -141,7 +141,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="#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="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#script-shell"><code>script-shell</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -151,6 +151,26 @@ alias: npm cit
|
|||
</code></pre>
|
||||
<h3 id="description">Description</h3>
|
||||
<p>This command runs <code>npm ci</code> followed immediately by <code>npm test</code>.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="ignore-scripts"><code>ignore-scripts</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If true, npm does not run scripts specified in package.json files.</p>
|
||||
<p>Note that commands explicitly intended to run a particular script, such as
|
||||
<code>npm start</code>, <code>npm stop</code>, <code>npm restart</code>, <code>npm test</code>, and <code>npm run-script</code>
|
||||
will still run their intended script if <code>ignore-scripts</code> is set, but they
|
||||
will <em>not</em> run any pre- or post-scripts.</p>
|
||||
<h4 id="script-shell"><code>script-shell</code></h4>
|
||||
<ul>
|
||||
<li>Default: ‘/bin/sh’ on POSIX systems, ‘cmd.exe’ on Windows</li>
|
||||
<li>Type: null or String</li>
|
||||
</ul>
|
||||
<p>The shell to use for scripts run with the <code>npm exec</code>, <code>npm run</code> and <code>npm init <pkg></code> commands.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-install-test.html">npm install-test</a></li>
|
||||
|
|
|
|||
168
deps/npm/docs/output/commands/npm-install-test.html
vendored
168
deps/npm/docs/output/commands/npm-install-test.html
vendored
|
|
@ -141,7 +141,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="#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="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</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="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -160,6 +160,172 @@ common options: [--save|--save-dev|--save-optional] [--save-exact] [--dry-run]
|
|||
<h3 id="description">Description</h3>
|
||||
<p>This command runs an <code>npm install</code> followed immediately by an <code>npm test</code>. It
|
||||
takes exactly the same arguments as <code>npm install</code>.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="save"><code>save</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Save installed packages to a package.json file as dependencies.</p>
|
||||
<p>When used with the <code>npm rm</code> command, removes the dependency from
|
||||
package.json.</p>
|
||||
<h4 id="save-exact"><code>save-exact</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Dependencies saved to package.json will be configured with an exact version
|
||||
rather than using npm’s default semver range operator.</p>
|
||||
<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>
|
||||
<h4 id="global-style"><code>global-style</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Causes npm to install the package into your local <code>node_modules</code> folder with
|
||||
the same layout it uses with the global <code>node_modules</code> folder. Only your
|
||||
direct dependencies will show in <code>node_modules</code> and everything they depend
|
||||
on will be flattened in their <code>node_modules</code> folders. This obviously will
|
||||
eliminate some deduping. If used with <code>legacy-bundling</code>, <code>legacy-bundling</code>
|
||||
will be preferred.</p>
|
||||
<h4 id="legacy-bundling"><code>legacy-bundling</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with <code>global-style</code> this option
|
||||
will be preferred.</p>
|
||||
<h4 id="strict-peer-deps"><code>strict-peer-deps</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to <code>true</code>, and <code>--legacy-peer-deps</code> is not set, then <em>any</em>
|
||||
conflicting <code>peerDependencies</code> will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.</p>
|
||||
<p>By default, conflicting <code>peerDependencies</code> deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package’s <code>peerDependencies</code> object.</p>
|
||||
<p>When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If <code>--strict-peer-deps</code> is set, then
|
||||
this warning is treated as a failure.</p>
|
||||
<h4 id="package-lock"><code>package-lock</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
|
||||
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
|
||||
<p>When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use <code>npm prune</code>.</p>
|
||||
<h4 id="omit"><code>omit</code></h4>
|
||||
<ul>
|
||||
<li>Default: ‘dev’ if the <code>NODE_ENV</code> environment variable is set to
|
||||
‘production’, otherwise empty.</li>
|
||||
<li>Type: “dev”, “optional”, or “peer” (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Dependency types to omit from the installation tree on disk.</p>
|
||||
<p>Note that these dependencies <em>are</em> still resolved and added to the
|
||||
<code>package-lock.json</code> or <code>npm-shrinkwrap.json</code> file. They are just not
|
||||
physically installed on disk.</p>
|
||||
<p>If a package type appears in both the <code>--include</code> and <code>--omit</code> lists, then
|
||||
it will be included.</p>
|
||||
<p>If the resulting omit list includes <code>'dev'</code>, then the <code>NODE_ENV</code> environment
|
||||
variable will be set to <code>'production'</code> for all lifecycle scripts.</p>
|
||||
<h4 id="ignore-scripts"><code>ignore-scripts</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If true, npm does not run scripts specified in package.json files.</p>
|
||||
<p>Note that commands explicitly intended to run a particular script, such as
|
||||
<code>npm start</code>, <code>npm stop</code>, <code>npm restart</code>, <code>npm test</code>, and <code>npm run-script</code>
|
||||
will still run their intended script if <code>ignore-scripts</code> is set, but they
|
||||
will <em>not</em> run any pre- or post-scripts.</p>
|
||||
<h4 id="audit"><code>audit</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When “true” submit audit reports alongside <code>npm install</code> runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
<a href="../commands/npm-audit.html"><code>npm audit</code></a> for details on what is submitted.</p>
|
||||
<h4 id="bin-links"><code>bin-links</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Tells npm to create symlinks (or <code>.cmd</code> shims on Windows) for package
|
||||
executables.</p>
|
||||
<p>Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don’t support symlinks, even on ostensibly Unix
|
||||
systems.</p>
|
||||
<h4 id="fund"><code>fund</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When “true” displays the message at the end of each <code>npm install</code>
|
||||
acknowledging the number of dependencies looking for funding. See <a href="../commands/npm-fund.html"><code>npm fund</code></a> for details.</p>
|
||||
<h4 id="dry-run"><code>dry-run</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Indicates that you don’t want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, <code>install</code>, <code>update</code>,
|
||||
<code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p>
|
||||
<p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>,
|
||||
<code>owner</code>, etc.</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-install.html">npm install</a></li>
|
||||
|
|
|
|||
249
deps/npm/docs/output/commands/npm-install.html
vendored
249
deps/npm/docs/output/commands/npm-install.html
vendored
|
|
@ -141,7 +141,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="#configuration-options-affecting-dependency-resolution-and-tree-design">Configuration Options Affecting Dependency Resolution And Tree Design</a></li><li><a href="#omitting-dependency-types">Omitting Dependency Types</a></li><li><a href="#configuration-options-affecting-build-process">Configuration Options Affecting Build Process</a></li></ul><li><a href="#algorithm">Algorithm</a></li><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="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</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="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#algorithm">Algorithm</a></li><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -483,104 +483,171 @@ even if a local copy exists on disk.</p>
|
|||
params have some effect on installation, since that’s most of what npm
|
||||
does.</p>
|
||||
<p>These are some of the most common options related to installation.</p>
|
||||
<h4 id="configuration-options-affecting-dependency-resolution-and-tree-design">Configuration Options Affecting Dependency Resolution And Tree Design</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="save"><code>save</code></h4>
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>-g</code> or <code>--global</code>: install the package globally rather than locally.
|
||||
See <a href="../configuring-npm/folders.html">folders</a>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--global-style</code>: install the package into your local <code>node_modules</code>
|
||||
folder with the same layout it uses with the global <code>node_modules</code>
|
||||
folder. Only your direct dependencies will show in <code>node_modules</code> and
|
||||
everything they depend on will be flattened in their <code>node_modules</code>
|
||||
folders. This obviously will eliminate some deduping.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--legacy-bundling</code>: install the package in the style of versions of npm
|
||||
prior to 1.4, where dependencies are not automatically deduped up to the
|
||||
shallowest level in the tree possible. This is extremely
|
||||
disk-inefficient.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--legacy-peer-deps</code>: ignore all <code>peerDependencies</code> when installing, in
|
||||
the style of npm version 4 through version 6.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--strict-peer-deps</code>: fail and abort the install process for any
|
||||
conflicting peerDependencies when encountered. By default, npm will only
|
||||
crash for peerDependencies conflicts caused by the direct dependencies of
|
||||
the root project.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--no-package-lock</code> (alias: <code>--no-shrinkwrap</code>): do not read the
|
||||
lockfile (<code>package-lock.json</code> or <code>npm-shrinkwrap.json</code>) for the intended
|
||||
package tree, and do not save the resulting package tree back to a
|
||||
lockfile.</p>
|
||||
</li>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<h4 id="omitting-dependency-types">Omitting Dependency Types</h4>
|
||||
<p>You may omit certain types of dependencies by using the <code>--omit=<type></code>
|
||||
config option. This may be specified multiple types on the command line.
|
||||
To enter <code>omit</code> options in <code>.npmrc</code> files, use the following syntax:</p>
|
||||
<pre lang="ini"><code>omit[] = dev
|
||||
omit[] = optional
|
||||
; etc...
|
||||
</code></pre>
|
||||
<p>The dependency types that may be omitted or included are:</p>
|
||||
<p>Save installed packages to a package.json file as dependencies.</p>
|
||||
<p>When used with the <code>npm rm</code> command, removes the dependency from
|
||||
package.json.</p>
|
||||
<h4 id="save-exact"><code>save-exact</code></h4>
|
||||
<ul>
|
||||
<li><code>peer</code>: any <code>peerDependencies</code>, including those with a
|
||||
<code>peerDependenciesMeta</code> entry specifying <code>optional: true</code></li>
|
||||
<li><code>optional</code>: dependencies listed in <code>optionalDependencies</code></li>
|
||||
<li><code>dev</code>: dependencies listed in <code>devDependencies</code></li>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>To re-include dependency, use the <code>--include</code> option, which may also be
|
||||
specified multiple times.</p>
|
||||
<p>Legacy shorthands for <code>omit</code> settings are:</p>
|
||||
<p>Dependencies saved to package.json will be configured with an exact version
|
||||
rather than using npm’s default semver range operator.</p>
|
||||
<h4 id="global"><code>global</code></h4>
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>--no-optional</code>: prevent optionalDependencies from being installed. Note
|
||||
that their presence is still entered in the <code>package-lock.json</code> file, and
|
||||
the tree is designed such that they <em>can</em> be installed in the future.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--prod</code>: prevent devDependencies from being installed.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--only=prod</code>: omit <code>devDependencies</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--also=dev</code>: include <code>devDependencies</code></p>
|
||||
</li>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<h4 id="configuration-options-affecting-build-process">Configuration Options Affecting Build Process</h4>
|
||||
<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>
|
||||
<p><code>--ignore-scripts</code>: do not execute any scripts defined in the
|
||||
package.json. See <a href="../using-npm/scripts.html"><code>scripts</code></a>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--no-audit</code>: disable sending audit reports to the configured registries.
|
||||
See <a href="npm-audit"><code>npm-audit</code></a> for details on what is sent.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--no-bin-links</code>: prevent npm from creating symlinks for any binaries the
|
||||
package might contain.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--no-fund</code>: suppress the message displayed at the end of each install
|
||||
that acknowledges the number of dependencies looking for funding. See
|
||||
<a href="../commands/npm-fund.html"><code>npm-fund</code></a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--dry-run</code>: Do not actually install anything into the <code>node_modules</code>
|
||||
folder. Just build the intended tree in memory, and report on it.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>--no-save</code>: Do not save installed dependencies to <code>package.json</code> or
|
||||
<code>package-lock.json</code>.</p>
|
||||
</li>
|
||||
<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>
|
||||
<h4 id="global-style"><code>global-style</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Causes npm to install the package into your local <code>node_modules</code> folder with
|
||||
the same layout it uses with the global <code>node_modules</code> folder. Only your
|
||||
direct dependencies will show in <code>node_modules</code> and everything they depend
|
||||
on will be flattened in their <code>node_modules</code> folders. This obviously will
|
||||
eliminate some deduping. If used with <code>legacy-bundling</code>, <code>legacy-bundling</code>
|
||||
will be preferred.</p>
|
||||
<h4 id="legacy-bundling"><code>legacy-bundling</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with <code>global-style</code> this option
|
||||
will be preferred.</p>
|
||||
<h4 id="strict-peer-deps"><code>strict-peer-deps</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to <code>true</code>, and <code>--legacy-peer-deps</code> is not set, then <em>any</em>
|
||||
conflicting <code>peerDependencies</code> will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.</p>
|
||||
<p>By default, conflicting <code>peerDependencies</code> deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package’s <code>peerDependencies</code> object.</p>
|
||||
<p>When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If <code>--strict-peer-deps</code> is set, then
|
||||
this warning is treated as a failure.</p>
|
||||
<h4 id="package-lock"><code>package-lock</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
|
||||
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
|
||||
<p>When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use <code>npm prune</code>.</p>
|
||||
<h4 id="omit"><code>omit</code></h4>
|
||||
<ul>
|
||||
<li>Default: ‘dev’ if the <code>NODE_ENV</code> environment variable is set to
|
||||
‘production’, otherwise empty.</li>
|
||||
<li>Type: “dev”, “optional”, or “peer” (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Dependency types to omit from the installation tree on disk.</p>
|
||||
<p>Note that these dependencies <em>are</em> still resolved and added to the
|
||||
<code>package-lock.json</code> or <code>npm-shrinkwrap.json</code> file. They are just not
|
||||
physically installed on disk.</p>
|
||||
<p>If a package type appears in both the <code>--include</code> and <code>--omit</code> lists, then
|
||||
it will be included.</p>
|
||||
<p>If the resulting omit list includes <code>'dev'</code>, then the <code>NODE_ENV</code> environment
|
||||
variable will be set to <code>'production'</code> for all lifecycle scripts.</p>
|
||||
<h4 id="ignore-scripts"><code>ignore-scripts</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If true, npm does not run scripts specified in package.json files.</p>
|
||||
<p>Note that commands explicitly intended to run a particular script, such as
|
||||
<code>npm start</code>, <code>npm stop</code>, <code>npm restart</code>, <code>npm test</code>, and <code>npm run-script</code>
|
||||
will still run their intended script if <code>ignore-scripts</code> is set, but they
|
||||
will <em>not</em> run any pre- or post-scripts.</p>
|
||||
<h4 id="audit"><code>audit</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When “true” submit audit reports alongside <code>npm install</code> runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
<a href="../commands/npm-audit.html"><code>npm audit</code></a> for details on what is submitted.</p>
|
||||
<h4 id="bin-links"><code>bin-links</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Tells npm to create symlinks (or <code>.cmd</code> shims on Windows) for package
|
||||
executables.</p>
|
||||
<p>Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don’t support symlinks, even on ostensibly Unix
|
||||
systems.</p>
|
||||
<h4 id="fund"><code>fund</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When “true” displays the message at the end of each <code>npm install</code>
|
||||
acknowledging the number of dependencies looking for funding. See <a href="../commands/npm-fund.html"><code>npm fund</code></a> for details.</p>
|
||||
<h4 id="dry-run"><code>dry-run</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Indicates that you don’t want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, <code>install</code>, <code>update</code>,
|
||||
<code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p>
|
||||
<p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>,
|
||||
<code>owner</code>, etc.</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="algorithm">Algorithm</h3>
|
||||
<p>Given a <code>package{dep}</code> structure: <code>A{B,C}, B{C}, C{D}</code>,
|
||||
the npm install algorithm produces:</p>
|
||||
|
|
|
|||
141
deps/npm/docs/output/commands/npm-link.html
vendored
141
deps/npm/docs/output/commands/npm-link.html
vendored
|
|
@ -141,7 +141,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="#caveat">Caveat</a></li><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="#caveat">Caveat</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#save"><code>save</code></a></li><li><a href="#save-exact"><code>save-exact</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="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -209,6 +209,145 @@ exactly the same as yours.</p>
|
|||
relevant metadata by running <code>npm install <dep> --package-lock-only</code>.</p>
|
||||
<p>If you <em>want</em> to save the <code>file:</code> reference in your <code>package.json</code> and
|
||||
<code>package-lock.json</code> files, you can use <code>npm link <dep> --save</code> to do so.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="save"><code>save</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Save installed packages to a package.json file as dependencies.</p>
|
||||
<p>When used with the <code>npm rm</code> command, removes the dependency from
|
||||
package.json.</p>
|
||||
<h4 id="save-exact"><code>save-exact</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Dependencies saved to package.json will be configured with an exact version
|
||||
rather than using npm’s default semver range operator.</p>
|
||||
<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>
|
||||
<h4 id="global-style"><code>global-style</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Causes npm to install the package into your local <code>node_modules</code> folder with
|
||||
the same layout it uses with the global <code>node_modules</code> folder. Only your
|
||||
direct dependencies will show in <code>node_modules</code> and everything they depend
|
||||
on will be flattened in their <code>node_modules</code> folders. This obviously will
|
||||
eliminate some deduping. If used with <code>legacy-bundling</code>, <code>legacy-bundling</code>
|
||||
will be preferred.</p>
|
||||
<h4 id="legacy-bundling"><code>legacy-bundling</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Causes npm to install the package such that versions of npm prior to 1.4,
|
||||
such as the one included with node 0.8, can install the package. This
|
||||
eliminates all automatic deduping. If used with <code>global-style</code> this option
|
||||
will be preferred.</p>
|
||||
<h4 id="strict-peer-deps"><code>strict-peer-deps</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to <code>true</code>, and <code>--legacy-peer-deps</code> is not set, then <em>any</em>
|
||||
conflicting <code>peerDependencies</code> will be treated as an install failure, even
|
||||
if npm could reasonably guess the appropriate resolution based on non-peer
|
||||
dependency relationships.</p>
|
||||
<p>By default, conflicting <code>peerDependencies</code> deep in the dependency graph will
|
||||
be resolved using the nearest non-peer dependency specification, even if
|
||||
doing so will result in some packages receiving a peer dependency outside
|
||||
the range set in their package’s <code>peerDependencies</code> object.</p>
|
||||
<p>When such and override is performed, a warning is printed, explaining the
|
||||
conflict and the packages involved. If <code>--strict-peer-deps</code> is set, then
|
||||
this warning is treated as a failure.</p>
|
||||
<h4 id="package-lock"><code>package-lock</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If set to false, then ignore <code>package-lock.json</code> files when installing. This
|
||||
will also prevent <em>writing</em> <code>package-lock.json</code> if <code>save</code> is true.</p>
|
||||
<p>When package package-locks are disabled, automatic pruning of extraneous
|
||||
modules will also be disabled. To remove extraneous modules with
|
||||
package-locks disabled use <code>npm prune</code>.</p>
|
||||
<h4 id="omit"><code>omit</code></h4>
|
||||
<ul>
|
||||
<li>Default: ‘dev’ if the <code>NODE_ENV</code> environment variable is set to
|
||||
‘production’, otherwise empty.</li>
|
||||
<li>Type: “dev”, “optional”, or “peer” (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Dependency types to omit from the installation tree on disk.</p>
|
||||
<p>Note that these dependencies <em>are</em> still resolved and added to the
|
||||
<code>package-lock.json</code> or <code>npm-shrinkwrap.json</code> file. They are just not
|
||||
physically installed on disk.</p>
|
||||
<p>If a package type appears in both the <code>--include</code> and <code>--omit</code> lists, then
|
||||
it will be included.</p>
|
||||
<p>If the resulting omit list includes <code>'dev'</code>, then the <code>NODE_ENV</code> environment
|
||||
variable will be set to <code>'production'</code> for all lifecycle scripts.</p>
|
||||
<h4 id="ignore-scripts"><code>ignore-scripts</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If true, npm does not run scripts specified in package.json files.</p>
|
||||
<p>Note that commands explicitly intended to run a particular script, such as
|
||||
<code>npm start</code>, <code>npm stop</code>, <code>npm restart</code>, <code>npm test</code>, and <code>npm run-script</code>
|
||||
will still run their intended script if <code>ignore-scripts</code> is set, but they
|
||||
will <em>not</em> run any pre- or post-scripts.</p>
|
||||
<h4 id="audit"><code>audit</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When “true” submit audit reports alongside <code>npm install</code> runs to the default
|
||||
registry and all registries configured for scopes. See the documentation for
|
||||
<a href="../commands/npm-audit.html"><code>npm audit</code></a> for details on what is submitted.</p>
|
||||
<h4 id="bin-links"><code>bin-links</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Tells npm to create symlinks (or <code>.cmd</code> shims on Windows) for package
|
||||
executables.</p>
|
||||
<p>Set to false to have it not do this. This can be used to work around the
|
||||
fact that some file systems don’t support symlinks, even on ostensibly Unix
|
||||
systems.</p>
|
||||
<h4 id="fund"><code>fund</code></h4>
|
||||
<ul>
|
||||
<li>Default: true</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When “true” displays the message at the end of each <code>npm install</code>
|
||||
acknowledging the number of dependencies looking for funding. See <a href="../commands/npm-fund.html"><code>npm fund</code></a> for details.</p>
|
||||
<h4 id="dry-run"><code>dry-run</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Indicates that you don’t want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, <code>install</code>, <code>update</code>,
|
||||
<code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p>
|
||||
<p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>,
|
||||
<code>owner</code>, etc.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../using-npm/developers.html">npm developers</a></li>
|
||||
|
|
|
|||
39
deps/npm/docs/output/commands/npm-logout.html
vendored
39
deps/npm/docs/output/commands/npm-logout.html
vendored
|
|
@ -141,7 +141,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">registry</a></li><li><a href="#scope">scope</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></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -158,15 +158,36 @@ In this case, it will <em>only</em> affect the current environment.</p>
|
|||
<p>If <code>--scope</code> is provided, this will find the credentials for the registry
|
||||
connected to that scope, if set.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="registry">registry</h4>
|
||||
<p>Default: <a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a></p>
|
||||
<p>The base URL of the npm package registry. If <code>scope</code> is also specified,
|
||||
it takes precedence.</p>
|
||||
<h4 id="scope">scope</h4>
|
||||
<p>Default: The scope of your current project, if any, otherwise none.</p>
|
||||
<p>If specified, you will be logged out of the specified scope. See <a href="../using-npm/scope.html"><code>scope</code></a>.</p>
|
||||
<pre lang="bash"><code>npm logout --scope=@myco
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<h4 id="scope"><code>scope</code></h4>
|
||||
<ul>
|
||||
<li>Default: the scope of the current project, if any, or “”</li>
|
||||
<li>Type: String</li>
|
||||
</ul>
|
||||
<p>Associate an operation with a scope for a scoped registry.</p>
|
||||
<p>Useful when logging in to or out of a private registry:</p>
|
||||
<pre><code># log in, linking the scope to the custom registry
|
||||
npm login --scope=@mycorp --registry=https://registry.mycorp.com
|
||||
|
||||
# log out, removing the link and the auth token
|
||||
npm logout --scope=@mycorp
|
||||
</code></pre>
|
||||
<p>This will cause <code>@mycorp</code> to be mapped to the registry for future
|
||||
installation of packages specified according to the pattern
|
||||
<code>@mycorp/package</code>.</p>
|
||||
<p>This will also cause <code>npm init</code> to create a scoped package.</p>
|
||||
<pre><code># accept all defaults, and create a package named "@foo/whatever",
|
||||
# instead of just named "whatever"
|
||||
npm init --scope=@foo --yes
|
||||
</code></pre>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-adduser.html">npm adduser</a></li>
|
||||
|
|
|
|||
131
deps/npm/docs/output/commands/npm-ls.html
vendored
131
deps/npm/docs/output/commands/npm-ls.html
vendored
|
|
@ -141,7 +141,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="#note-design-changes-pending">Note: Design Changes Pending</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#all">all</a></li><li><a href="#json">json</a></li><li><a href="#long">long</a></li><li><a href="#parseable">parseable</a></li><li><a href="#global">global</a></li><li><a href="#depth">depth</a></li><li><a href="#prod--production">prod / production</a></li><li><a href="#dev--development">dev / development</a></li><li><a href="#only">only</a></li><li><a href="#link">link</a></li><li><a href="#unicode">unicode</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="#note-design-changes-pending">Note: Design Changes Pending</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#all"><code>all</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#long"><code>long</code></a></li><li><a href="#parseable"><code>parseable</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#depth"><code>depth</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#link"><code>link</code></a></li><li><a href="#unicode"><code>unicode</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -159,7 +159,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@7.13.0 /path/to/npm
|
||||
<pre lang="bash"><code>npm@7.14.0 /path/to/npm
|
||||
└─┬ init-package-json@0.0.4
|
||||
└── promzard@0.1.5
|
||||
</code></pre>
|
||||
|
|
@ -192,75 +192,124 @@ provided.</p>
|
|||
of this command, is currently underway. Expect significant changes to at
|
||||
least the default human-readable <code>npm ls</code> output in npm v8.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="all">all</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="all"><code>all</code></h4>
|
||||
<ul>
|
||||
<li>Default: <code>false</code></li>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When running <code>npm outdated</code> and <code>npm ls</code>, setting <code>--all</code> will show all
|
||||
outdated or installed packages, rather than only those directly depended
|
||||
upon by the current project.</p>
|
||||
<h4 id="json">json</h4>
|
||||
<h4 id="json"><code>json</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Show information in JSON format.</p>
|
||||
<h4 id="long">long</h4>
|
||||
<p>Whether or not to output JSON data, rather than the normal output.</p>
|
||||
<p>Not supported by all npm commands.</p>
|
||||
<h4 id="long"><code>long</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Show extended information.</p>
|
||||
<h4 id="parseable">parseable</h4>
|
||||
<p>Show extended information in <code>ls</code>, <code>search</code>, and <code>help-search</code>.</p>
|
||||
<h4 id="parseable"><code>parseable</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Show parseable output instead of tree view.</p>
|
||||
<h4 id="global">global</h4>
|
||||
<p>Output parseable results from commands that write to standard output. For
|
||||
<code>npm search</code>, this will be tab-separated table format.</p>
|
||||
<h4 id="global"><code>global</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>List packages in the global install prefix instead of in the current
|
||||
project.</p>
|
||||
<h4 id="depth">depth</h4>
|
||||
<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>Type: Int</li>
|
||||
<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>
|
||||
<p>Max display depth of the dependency tree.</p>
|
||||
<h4 id="prod--production">prod / production</h4>
|
||||
<h4 id="depth"><code>depth</code></h4>
|
||||
<ul>
|
||||
<li>Default: <code>Infinity</code> if <code>--all</code> is set, otherwise <code>1</code></li>
|
||||
<li>Type: null or Number</li>
|
||||
</ul>
|
||||
<p>The depth to go when recursing packages for <code>npm ls</code>.</p>
|
||||
<p>If not set, <code>npm ls</code> will show only the immediate dependencies of the root
|
||||
project. If <code>--all</code> is set, then npm will show all dependencies by default.</p>
|
||||
<h4 id="omit"><code>omit</code></h4>
|
||||
<ul>
|
||||
<li>Default: ‘dev’ if the <code>NODE_ENV</code> environment variable is set to
|
||||
‘production’, otherwise empty.</li>
|
||||
<li>Type: “dev”, “optional”, or “peer” (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Dependency types to omit from the installation tree on disk.</p>
|
||||
<p>Note that these dependencies <em>are</em> still resolved and added to the
|
||||
<code>package-lock.json</code> or <code>npm-shrinkwrap.json</code> file. They are just not
|
||||
physically installed on disk.</p>
|
||||
<p>If a package type appears in both the <code>--include</code> and <code>--omit</code> lists, then
|
||||
it will be included.</p>
|
||||
<p>If the resulting omit list includes <code>'dev'</code>, then the <code>NODE_ENV</code> environment
|
||||
variable will be set to <code>'production'</code> for all lifecycle scripts.</p>
|
||||
<h4 id="link"><code>link</code></h4>
|
||||
<ul>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: false</li>
|
||||
</ul>
|
||||
<p>Display only the dependency tree for packages in <code>dependencies</code>.</p>
|
||||
<h4 id="dev--development">dev / development</h4>
|
||||
<ul>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>If true, then local installs will link if there is a suitable globally
|
||||
installed package.</p>
|
||||
<p>Note that this means that local installs can cause things to be installed
|
||||
into the global space at the same time. The link is only done if one of the
|
||||
two conditions are met:</p>
|
||||
<ul>
|
||||
<li>The package is not already installed globally, or</li>
|
||||
<li>the globally installed version is identical to the version that is being
|
||||
installed locally.</li>
|
||||
</ul>
|
||||
<p>When used with <code>npm ls</code>, only show packages that are linked.</p>
|
||||
<h4 id="unicode"><code>unicode</code></h4>
|
||||
<ul>
|
||||
<li>Default: false on windows, true on mac/unix systems with a unicode locale,
|
||||
as defined by the <code>LC_ALL</code>, <code>LC_CTYPE</code>, or <code>LANG</code> environment variables.</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>When set to true, npm uses unicode characters in the tree output. When
|
||||
false, it uses ascii characters instead of unicode glyphs.</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
</ul>
|
||||
<p>Display only the dependency tree for packages in <code>devDependencies</code>.</p>
|
||||
<h4 id="only">only</h4>
|
||||
<ul>
|
||||
<li>Type: String</li>
|
||||
</ul>
|
||||
<p>When “dev” or “development”, is an alias to <code>dev</code>.</p>
|
||||
<p>When “prod” or “production”, is an alias to <code>production</code>.</p>
|
||||
<h4 id="link">link</h4>
|
||||
<ul>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: false</li>
|
||||
</ul>
|
||||
<p>Display only dependencies which are linked</p>
|
||||
<h4 id="unicode">unicode</h4>
|
||||
<ul>
|
||||
<li>Type: Boolean</li>
|
||||
<li>Default: true</li>
|
||||
</ul>
|
||||
<p>Whether to represent the tree structure using unicode characters.
|
||||
Set it to false in order to use all-ansi output.</p>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-explain.html">npm explain</a></li>
|
||||
|
|
|
|||
35
deps/npm/docs/output/commands/npm-org.html
vendored
35
deps/npm/docs/output/commands/npm-org.html
vendored
|
|
@ -141,7 +141,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="#example">Example</a></li><li><a href="#description">Description</a></li><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="#example">Example</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="#otp"><code>otp</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#parseable"><code>parseable</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -173,6 +173,39 @@ npm org ls <orgname> [<username>]
|
|||
<p>You can use the <code>npm org</code> commands to manage and view users of an
|
||||
organization. It supports adding and removing users, changing their roles,
|
||||
listing them, and finding specific ones and their roles.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<h4 id="otp"><code>otp</code></h4>
|
||||
<ul>
|
||||
<li>Default: null</li>
|
||||
<li>Type: null or String</li>
|
||||
</ul>
|
||||
<p>This is a one-time password from a two-factor authenticator. It’s needed
|
||||
when publishing or changing package permissions with <code>npm access</code>.</p>
|
||||
<p>If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.</p>
|
||||
<h4 id="json"><code>json</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Whether or not to output JSON data, rather than the normal output.</p>
|
||||
<p>Not supported by all npm commands.</p>
|
||||
<h4 id="parseable"><code>parseable</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Output parseable results from commands that write to standard output. For
|
||||
<code>npm search</code>, this will be tab-separated table format.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../using-npm/orgs.html">using orgs</a></li>
|
||||
|
|
|
|||
61
deps/npm/docs/output/commands/npm-outdated.html
vendored
61
deps/npm/docs/output/commands/npm-outdated.html
vendored
|
|
@ -141,7 +141,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="#an-example">An example</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#json">json</a></li><li><a href="#long">long</a></li><li><a href="#parseable">parseable</a></li><li><a href="#global">global</a></li><li><a href="#all">all</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="#an-example">An example</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#all"><code>all</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#long"><code>long</code></a></li><li><a href="#parseable"><code>parseable</code></a></li><li><a href="#global"><code>global</code></a></li><li><a href="#workspace"><code>workspace</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -150,7 +150,8 @@ npm command-line interface
|
|||
<h3 id="description">Description</h3>
|
||||
<p>This command will check the registry to see if any (or, specific) installed
|
||||
packages are currently outdated.</p>
|
||||
<p>By default, only the direct dependencies of the root project are shown.
|
||||
<p>By default, only the direct dependencies of the root project and direct
|
||||
dependencies of your configured <em>workspaces</em> are shown.
|
||||
Use <code>--all</code> to find all outdated meta-dependencies as well.</p>
|
||||
<p>In the output:</p>
|
||||
<ul>
|
||||
|
|
@ -213,43 +214,77 @@ npm uses dist-tags to manage its <code>latest</code> and <code>next</code> relea
|
|||
scratch or running <code>npm update</code> will bring it up to spec.</li>
|
||||
</ul>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="json">json</h4>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="all"><code>all</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Show information in JSON format.</p>
|
||||
<h4 id="long">long</h4>
|
||||
<p>When running <code>npm outdated</code> and <code>npm ls</code>, setting <code>--all</code> will show all
|
||||
outdated or installed packages, rather than only those directly depended
|
||||
upon by the current project.</p>
|
||||
<h4 id="json"><code>json</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Show extended information.</p>
|
||||
<h4 id="parseable">parseable</h4>
|
||||
<p>Whether or not to output JSON data, rather than the normal output.</p>
|
||||
<p>Not supported by all npm commands.</p>
|
||||
<h4 id="long"><code>long</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Show parseable output instead of tree view.</p>
|
||||
<h4 id="global">global</h4>
|
||||
<p>Show extended information in <code>ls</code>, <code>search</code>, and <code>help-search</code>.</p>
|
||||
<h4 id="parseable"><code>parseable</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Check packages in the global install prefix instead of in the current
|
||||
project.</p>
|
||||
<h4 id="all">all</h4>
|
||||
<p>Output parseable results from commands that write to standard output. For
|
||||
<code>npm search</code>, this will be tab-separated table format.</p>
|
||||
<h4 id="global"><code>global</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Display all outdated dependencies on the tree.</p>
|
||||
<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>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-update.html">npm update</a></li>
|
||||
<li><a href="../commands/npm-dist-tag.html">npm dist-tag</a></li>
|
||||
<li><a href="../using-npm/registry.html">npm registry</a></li>
|
||||
<li><a href="../configuring-npm/folders.html">npm folders</a></li>
|
||||
<li><a href="../using-npm/workspaces.html">npm workspaces</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
21
deps/npm/docs/output/commands/npm-owner.html
vendored
21
deps/npm/docs/output/commands/npm-owner.html
vendored
|
|
@ -141,7 +141,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="#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="#otp"><code>otp</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -168,6 +168,25 @@ that is not implemented at this time.</p>
|
|||
<p>If you have two-factor authentication enabled with <code>auth-and-writes</code> (see
|
||||
<a href="../commands/npm-profile.html"><code>npm-profile</code></a>) then you’ll need to include an otp
|
||||
on the command line when changing ownership with <code>--otp</code>.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<h4 id="otp"><code>otp</code></h4>
|
||||
<ul>
|
||||
<li>Default: null</li>
|
||||
<li>Type: null or String</li>
|
||||
</ul>
|
||||
<p>This is a one-time password from a two-factor authenticator. It’s needed
|
||||
when publishing or changing package permissions with <code>npm access</code>.</p>
|
||||
<p>If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-profile.html">npm profile</a></li>
|
||||
|
|
|
|||
56
deps/npm/docs/output/commands/npm-pack.html
vendored
56
deps/npm/docs/output/commands/npm-pack.html
vendored
|
|
@ -141,24 +141,54 @@ 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="#configuration">Configuration</a></li><ul><li><a href="#dry-run">dry-run</a></li><li><a href="#workspaces">workspaces</a></li><li><a href="#workspace">workspace</a></li></ul><li><a href="#description">Description</a></li><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="#configuration">Configuration</a></li><ul><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li></ul><li><a href="#description">Description</a></li><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
<pre lang="bash"><code>npm pack [[<@scope>/]<pkg>...] [--dry-run]
|
||||
<pre lang="bash"><code>npm pack [[<@scope>/]<pkg>...] [--dry-run] [--json]
|
||||
</code></pre>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<h4 id="dry-run">dry-run</h4>
|
||||
<p>Do everything that pack usually does without actually packing anything.
|
||||
That is, report on what would have gone into the tarball, but nothing
|
||||
else.</p>
|
||||
<h4 id="workspaces">workspaces</h4>
|
||||
<p>Enables workspaces context while creating tarballs. Tarballs for each
|
||||
workspaces will be generated.</p>
|
||||
<h4 id="workspace">workspace</h4>
|
||||
<p>Enables workspaces context and limits results to only those specified by
|
||||
this config item. Tarballs will only be generated for the packages
|
||||
named in the workspaces given here.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="dry-run"><code>dry-run</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Indicates that you don’t want npm to make any changes and that it should
|
||||
only report what it would have done. This can be passed into any of the
|
||||
commands that modify your local installation, eg, <code>install</code>, <code>update</code>,
|
||||
<code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p>
|
||||
<p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>,
|
||||
<code>owner</code>, etc.</p>
|
||||
<h4 id="workspace"><code>workspace</code></h4>
|
||||
<ul>
|
||||
<li>Default:</li>
|
||||
<li>Type: String (can be set multiple times)</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of the configured workspaces of the
|
||||
current project while filtering by running only the workspaces defined by
|
||||
this configuration option.</p>
|
||||
<p>Valid values for the <code>workspace</code> config are either:</p>
|
||||
<ul>
|
||||
<li>Workspace names</li>
|
||||
<li>Path to a workspace directory</li>
|
||||
<li>Path to a parent workspace directory (will result to selecting all of the
|
||||
nested workspaces)</li>
|
||||
</ul>
|
||||
<p>When set for the <code>npm init</code> command, this may be set to the folder of a
|
||||
workspace which does not yet exist, to create the folder and set it up as a
|
||||
brand new workspace within the project.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<h4 id="workspaces"><code>workspaces</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Enable running a command in the context of <strong>all</strong> the configured
|
||||
workspaces.</p>
|
||||
<p>This value is not exported to the environment for child processes.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="description">Description</h3>
|
||||
<p>For anything that’s installable (that is, a package folder, tarball,
|
||||
tarball url, git url, name@tag, name@version, name, or scoped name), this
|
||||
|
|
|
|||
12
deps/npm/docs/output/commands/npm-ping.html
vendored
12
deps/npm/docs/output/commands/npm-ping.html
vendored
|
|
@ -141,7 +141,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="#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></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -156,6 +156,16 @@ If it works it will output something like:</p>
|
|||
<p>otherwise you will get:</p>
|
||||
<pre lang="bash"><code>Ping error: {*Detail about error}
|
||||
</code></pre>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-doctor.html">npm doctor</a></li>
|
||||
|
|
|
|||
20
deps/npm/docs/output/commands/npm-prefix.html
vendored
20
deps/npm/docs/output/commands/npm-prefix.html
vendored
|
|
@ -141,7 +141,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="#example">Example</a></li><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="#example">Example</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#global"><code>global</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -161,6 +161,24 @@ also specified.</p>
|
|||
<pre lang="bash"><code>npm prefix -g
|
||||
/usr/local
|
||||
</code></pre>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- 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 -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-root.html">npm root</a></li>
|
||||
|
|
|
|||
45
deps/npm/docs/output/commands/npm-profile.html
vendored
45
deps/npm/docs/output/commands/npm-profile.html
vendored
|
|
@ -141,7 +141,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="#details">Details</a></li><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="#details">Details</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#registry"><code>registry</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#parseable"><code>parseable</code></a></li><li><a href="#otp"><code>otp</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
|
||||
</section>
|
||||
|
||||
<div id="_content"><h3 id="synopsis">Synopsis</h3>
|
||||
|
|
@ -211,14 +211,49 @@ dist-tag, or changing access via <code>npm access</code> and <code>npm owner</co
|
|||
</li>
|
||||
</ul>
|
||||
<h3 id="details">Details</h3>
|
||||
<p>All of the <code>npm profile</code> subcommands accept <code>--json</code> and <code>--parseable</code> and
|
||||
will tailor their output based on those. Some of these commands may not be
|
||||
available on non npmjs.com registries.</p>
|
||||
<p>Some of these commands may not be available on non npmjs.com registries.</p>
|
||||
<h3 id="configuration">Configuration</h3>
|
||||
<!-- raw HTML omitted -->
|
||||
<!-- raw HTML omitted -->
|
||||
<h4 id="registry"><code>registry</code></h4>
|
||||
<ul>
|
||||
<li>Default: “<a href="https://registry.npmjs.org/">https://registry.npmjs.org/</a>”</li>
|
||||
<li>Type: URL</li>
|
||||
</ul>
|
||||
<p>The base URL of the npm registry.</p>
|
||||
<h4 id="json"><code>json</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Whether or not to output JSON data, rather than the normal output.</p>
|
||||
<p>Not supported by all npm commands.</p>
|
||||
<h4 id="parseable"><code>parseable</code></h4>
|
||||
<ul>
|
||||
<li>Default: false</li>
|
||||
<li>Type: Boolean</li>
|
||||
</ul>
|
||||
<p>Output parseable results from commands that write to standard output. For
|
||||
<code>npm search</code>, this will be tab-separated table format.</p>
|
||||
<h4 id="otp"><code>otp</code></h4>
|
||||
<ul>
|
||||
<li>Default: null</li>
|
||||
<li>Type: null or String</li>
|
||||
</ul>
|
||||
<p>This is a one-time password from a two-factor authenticator. It’s needed
|
||||
when publishing or changing package permissions with <code>npm access</code>.</p>
|
||||
<p>If not set, and a registry response fails with a challenge for a one-time
|
||||
password, npm will prompt on the command line for one.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<h3 id="see-also">See Also</h3>
|
||||
<ul>
|
||||
<li><a href="../commands/npm-adduser.html">npm adduser</a></li>
|
||||
<li><a href="../commands/npm-logout.html">npm logout</a></li>
|
||||
<li><a href="../using-npm/registry.html">npm registry</a></li>
|
||||
<li><a href="../commands/npm-config.html">npm config</a></li>
|
||||
<li><a href="../configuring-npm/npmrc.html">npmrc</a></li>
|
||||
<li><a href="../commands/npm-owner.html">npm owner</a></li>
|
||||
<li><a href="../commands/npm-whoami.html">npm whoami</a></li>
|
||||
<li><a href="../commands/npm-token.html">npm token</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user