Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
docs: add --if-present to run-script docs (#20279)
PR-URL: #20279
Credit: @aleclarson
Reviewed-By: @iarna
  • Loading branch information
aleclarson authored and zkat committed Apr 18, 2018
1 parent a1c77d6 commit ad7a5962d758efcbcfbd9fda9a3d8b38ddbf89a1
Showing with 4 additions and 0 deletions.
  1. +4 −0 doc/cli/npm-run-script.md
@@ -68,6 +68,10 @@ 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.

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.

## SEE ALSO

* npm-scripts(7)

0 comments on commit ad7a596

Please sign in to comment.