diff options
Diffstat (limited to 'deps/npm/doc')
-rw-r--r-- | deps/npm/doc/cli/npm-access.md | 1 | ||||
-rw-r--r-- | deps/npm/doc/cli/npm-install.md | 3 | ||||
-rw-r--r-- | deps/npm/doc/cli/npm-run-script.md | 7 | ||||
-rw-r--r-- | deps/npm/doc/cli/npm-token.md | 6 | ||||
-rw-r--r-- | deps/npm/doc/files/package.json.md | 10 | ||||
-rw-r--r-- | deps/npm/doc/misc/npm-coding-style.md | 2 | ||||
-rw-r--r-- | deps/npm/doc/misc/npm-config.md | 17 |
7 files changed, 37 insertions, 9 deletions
diff --git a/deps/npm/doc/cli/npm-access.md b/deps/npm/doc/cli/npm-access.md index a338673c8d..bbccfc7093 100644 --- a/deps/npm/doc/cli/npm-access.md +++ b/deps/npm/doc/cli/npm-access.md @@ -29,7 +29,6 @@ subcommand. access to a package. * ls-packages: - Show all of the packages a user or a team is able to access, along with the access level, except for read-only public packages (it won't print the whole registry listing) diff --git a/deps/npm/doc/cli/npm-install.md b/deps/npm/doc/cli/npm-install.md index 74e5e04bca..0489ddf94e 100644 --- a/deps/npm/doc/cli/npm-install.md +++ b/deps/npm/doc/cli/npm-install.md @@ -310,6 +310,9 @@ versions. The `--dry-run` argument will report in the usual way what the install would have done without actually installing anything. +The `--package-lock-only` argument will only update the `package-lock.json`, +instead of checking `node_modules` and downloading dependencies. + The `-f` or `--force` argument will force npm to fetch remote resources even if a local copy exists on disk. diff --git a/deps/npm/doc/cli/npm-run-script.md b/deps/npm/doc/cli/npm-run-script.md index c1ce342953..ee907d8c73 100644 --- a/deps/npm/doc/cli/npm-run-script.md +++ b/deps/npm/doc/cli/npm-run-script.md @@ -44,6 +44,12 @@ instead of to run your tests. +The actual shell your script is run within is platform dependent. By default, +on Unix-like systems it is the `/bin/sh` command, on Windows it is the `cmd.exe`. +The actual shell referred to by `/bin/sh` also depends on the system. +As of [`npm@5.1.0`](https://github.com/npm/npm/releases/tag/v5.1.0) you can +customize the shell with the `script-shell` configuration. + Scripts are run from the root of the module, regardless of what your current working directory is when you call `npm run`. If you want your script to use different behavior based on what subdirectory you're in, you can use the @@ -69,3 +75,4 @@ You can use the `--silent` flag to prevent showing `npm ERR!` output on error. * npm-start(1) * npm-restart(1) * npm-stop(1) +* npm-config(7) diff --git a/deps/npm/doc/cli/npm-token.md b/deps/npm/doc/cli/npm-token.md index bc0d7596fe..82ab158af6 100644 --- a/deps/npm/doc/cli/npm-token.md +++ b/deps/npm/doc/cli/npm-token.md @@ -5,11 +5,11 @@ npm-token(1) -- Manage your authentication tokens npm token list [--json|--parseable] npm token create [--read-only] [--cidr=1.1.1.1/24,2.2.2.2/16] - npm token delete <id|token> + npm token revoke <id|token> ## DESCRIPTION -This list you list, create and delete authentication tokens. +This list you list, create and revoke authentication tokens. * `npm token list`: Shows a table of all active authentication tokens. You can request this as @@ -52,7 +52,7 @@ This list you list, create and delete authentication tokens. +----------------+--------------------------------------+ ``` -* `npm token delete <token|id>`: +* `npm token revoke <token|id>`: This removes an authentication token, making it immediately unusable. This can accept both complete tokens (as you get back from `npm token create` and will find in your `.npmrc`) and ids as seen in the `npm token list` output. diff --git a/deps/npm/doc/files/package.json.md b/deps/npm/doc/files/package.json.md index 071d23a415..d91984d1d4 100644 --- a/deps/npm/doc/files/package.json.md +++ b/deps/npm/doc/files/package.json.md @@ -373,11 +373,13 @@ shortcut syntax you use for `npm install`: "repository": "npm/npm" + "repository": "github:user/repo" + "repository": "gist:11081aaa281" - "repository": "bitbucket:example/repo" + "repository": "bitbucket:user/repo" - "repository": "gitlab:another/repo" + "repository": "gitlab:user/repo" ## scripts @@ -618,7 +620,7 @@ If we define a package.json like this: "name": "awesome-web-framework", "version": "1.0.0", "bundledDependencies": [ - 'renderized', 'super-streams' + "renderized", "super-streams" ] } ``` @@ -678,7 +680,7 @@ are capable of properly installing your program. For example: { "engines" : { "npm" : "~1.0.20" } } Unless the user has set the `engine-strict` config flag, this -field is advisory only will produce warnings when your package is installed as a dependency. +field is advisory only and will only produce warnings when your package is installed as a dependency. ## engineStrict diff --git a/deps/npm/doc/misc/npm-coding-style.md b/deps/npm/doc/misc/npm-coding-style.md index a105b1aa53..e6837bfbf3 100644 --- a/deps/npm/doc/misc/npm-coding-style.md +++ b/deps/npm/doc/misc/npm-coding-style.md @@ -184,7 +184,7 @@ When something is intentionally missing or removed, set it to `null`. Don't set things to `undefined`. Reserve that value to mean "not yet set to anything." -Boolean objects are verboten. +Boolean objects are forbidden. ## SEE ALSO diff --git a/deps/npm/doc/misc/npm-config.md b/deps/npm/doc/misc/npm-config.md index 3c9ec38817..0ab0418918 100644 --- a/deps/npm/doc/misc/npm-config.md +++ b/deps/npm/doc/misc/npm-config.md @@ -656,6 +656,15 @@ Any "%s" in the message will be replaced with the version number. The registry you want to send cli metrics to if `send-metrics` is true. +### node-options + +* Default: null +* Type: String + +Options to pass through to Node.js via the `NODE_OPTIONS` environment +variable. This does not impact how npm itself is executed but it does +impact how lifecycle scripts are called. + ### node-version * Default: process.version @@ -724,6 +733,14 @@ will also prevent _writing_ `package-lock.json` if `save` is true. This option is an alias for `--shrinkwrap`. +### package-lock-only + +* Default: false +* Type: Boolean + +If set to true, it will update only the `package-json`, +instead of checking `node_modules` and downloading dependencies. + ### parseable * Default: false |