diff options
Diffstat (limited to 'deps/npm/doc/cli')
-rw-r--r-- | deps/npm/doc/cli/npm-adduser.md | 11 | ||||
-rw-r--r-- | deps/npm/doc/cli/npm-link.md | 2 | ||||
-rw-r--r-- | deps/npm/doc/cli/npm-restart.md | 29 | ||||
-rw-r--r-- | deps/npm/doc/cli/npm-version.md | 3 |
4 files changed, 34 insertions, 11 deletions
diff --git a/deps/npm/doc/cli/npm-adduser.md b/deps/npm/doc/cli/npm-adduser.md index 54e785b07f..80d0f9855b 100644 --- a/deps/npm/doc/cli/npm-adduser.md +++ b/deps/npm/doc/cli/npm-adduser.md @@ -13,13 +13,14 @@ the default registry will be used (see `npm-config(7)`). The username, password, and email are read in from prompts. -You may use this command to change your email address, but not username -or password. +To reset your password, go to <https://www.npmjs.com/forgot> -To reset your password, go to <https://www.npmjs.org/forgot> +To change your email address, go to <https://www.npmjs.com/email-edit> You may use this command multiple times with the same user account to -authorize on a new machine. +authorize on a new machine. When authenticating on a new machine, +the username, password and email address must all match with +your existing record. `npm login` is an alias to `adduser` and behaves exactly the same way. @@ -57,7 +58,7 @@ registries. Can be used with `--registry` and / or `--scope`, e.g. This will ensure that all requests to that registry (including for tarballs) include an authorization header. See `always-auth` in `npm-config(7)` for more -details on always-auth. Registry-specific configuaration of `always-auth` takes +details on always-auth. Registry-specific configuration of `always-auth` takes precedence over any global configuration. ## SEE ALSO diff --git a/deps/npm/doc/cli/npm-link.md b/deps/npm/doc/cli/npm-link.md index a6c2747900..786ad815dc 100644 --- a/deps/npm/doc/cli/npm-link.md +++ b/deps/npm/doc/cli/npm-link.md @@ -22,7 +22,7 @@ Note that `package-name` is taken from `package.json`, not from directory name. The package name can be optionally prefixed with a scope. See `npm-scope(7)`. -The scope must by preceded by an @-symbol and followed by a slash. +The scope must be preceded by an @-symbol and followed by a slash. When creating tarballs for `npm publish`, the linked packages are "snapshotted" to their current state by resolving the symbolic links. diff --git a/deps/npm/doc/cli/npm-restart.md b/deps/npm/doc/cli/npm-restart.md index 6d594a26c1..1aa0c57a68 100644 --- a/deps/npm/doc/cli/npm-restart.md +++ b/deps/npm/doc/cli/npm-restart.md @@ -1,5 +1,5 @@ -npm-restart(1) -- Start a package -================================= +npm-restart(1) -- Restart a package +=================================== ## SYNOPSIS @@ -7,8 +7,28 @@ npm-restart(1) -- Start a package ## DESCRIPTION -This runs a package's "restart" script, if one was provided. Otherwise it runs -package's "stop" script, if one was provided, and then the "start" script. +This restarts a package. + +This runs a package's "stop", "restart", and "start" scripts, and associated +pre- and post- scripts, in the order given below: + +1. prerestart +2. prestop +3. stop +4. poststop +5. restart +6. prestart +7. start +8. poststart +9. postrestart + +## NOTE + +Note that the "restart" script is run **in addition to** the "stop" +and "start" scripts, not instead of them. + +This is the behavior as of `npm` major version 2. A change in this +behavior will be accompanied by an increase in major version number ## SEE ALSO @@ -17,3 +37,4 @@ package's "stop" script, if one was provided, and then the "start" script. * npm-test(1) * npm-start(1) * npm-stop(1) +* npm-restart(3)
\ No newline at end of file diff --git a/deps/npm/doc/cli/npm-version.md b/deps/npm/doc/cli/npm-version.md index b30b6a3a21..69f3581bfc 100644 --- a/deps/npm/doc/cli/npm-version.md +++ b/deps/npm/doc/cli/npm-version.md @@ -8,7 +8,7 @@ npm-version(1) -- Bump a package version ## DESCRIPTION Run this in a package directory to bump the version and write the new -data back to the package.json file. +data back to `package.json` and, if present, `npm-shrinkwrap.json`. The `newversion` argument should be a valid semver string, *or* a valid second argument to semver.inc (one of "patch", "minor", "major", @@ -38,6 +38,7 @@ in your git config for this to work properly. For example: Enter passphrase: + ## SEE ALSO * npm-init(1) |