npm-run-all is a command-line interface (CLI) tool designed to streamline the execution of multiple npm-scripts, allowing them to run either sequentially or in parallel. Its primary motivation is to simplify complex script sequences, moving from verbose `&&` chains to more concise, glob-pattern-friendly commands like `npm-run-all clean build:*`. Crucially, it provides cross-platform compatibility, especially for Windows environments where shell operators like `&` for parallel execution are not natively supported. The package currently stands at version 4.1.5, with a release cadence that addresses bugs and occasionally introduces new features and breaking changes, as seen with the Node.js version support changes in v4.0.0. It differentiates itself by offering dedicated shorthand commands (`run-s` for sequential, `run-p` for parallel) alongside the main `npm-run-all` command, and includes a programmatic Node API for integration into JavaScript applications.
npm install npm-run-allVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define npm scripts in `package.json` and execute them using `npm-run-all`, `run-s` (sequential), and `run-p` (parallel) via `npx` for both simple and complex task flows.
Upgrade your Node.js runtime to version 4 or higher. For modern development, Node.js 14+ is recommended.
Verify that your `NPM_EXECPATH` environment variable is correctly set if you rely on a specific `npm` path. Otherwise, ensure `npm` is available in your system's `PATH`.
Reserve `--aggregate-output` for short-lived tasks. For long-running processes, omit this option to allow real-time output streaming.
Avoid using `!` as the starting character for your npm script names. Upgrade to version 4.1.3 or higher to benefit from the fix.
Ensure you are using `npm-run-all@4.0.2` or newer to correctly use the `--race` option in combination with other execution modes.
Upgrade to `npm-run-all@4.1.0` or newer, which includes a fix for this issue. Alternatively, consider using the `--max-parallel` option to limit the number of concurrently running tasks.
Rename your npm scripts to avoid starting with '!'. Upgrade to `npm-run-all@4.1.3` or newer, which contains a fix for this specific problem.
Update to `npm-run-all@4.1.2` or a later version to ensure the `--aggregate-output` option handles large outputs and works consistently across all commands.
Upgrade to `npm-run-all@4.0.2` or a newer version to resolve the incorrect assertion failure with the `--race` option.
No dependency data recorded yet.