diff options
author | Steven <steven@ceriously.com> | 2017-06-19 16:33:20 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-06-27 03:38:42 +0300 |
commit | d57d4f48c6cd00fdf1e694eb49e9358071d8e105 (patch) | |
tree | 7531ad6f0a10cca61ff270afd193ef59d011d92f /doc | |
parent | 901d26cb656e7e773d9a38ef4eac9263b95e07c8 (diff) |
docs: add --silent to npm-run-script
Fixes: #13241
Credit: @styfle
Reviewed-By: @iarna
PR-URL: https://github.com/npm/npm/pull/17319
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cli/npm-run-script.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/cli/npm-run-script.md b/doc/cli/npm-run-script.md index f1389c21c..b79d58fb0 100644 --- a/doc/cli/npm-run-script.md +++ b/doc/cli/npm-run-script.md @@ -3,7 +3,7 @@ npm-run-script(1) -- Run arbitrary package scripts ## SYNOPSIS - npm run-script <command> [-- <args>...] + npm run-script <command> [--silent] [-- <args>...] alias: npm run @@ -50,6 +50,8 @@ not found in the `PATH`. If you try to run a script without having a `node_modules` directory and it fails, you will be given a warning to run `npm install`, just in case you've forgotten. +You can use the `--silent` flag to prevent showing `npm ERR!` output on error. + ## SEE ALSO * npm-scripts(7) |