LinuxCommandLibrary

npm-run-script

runs scripts defined in package

TLDR

Run npm script

$ npm run [script-name]
copy
Run with arguments
$ npm run [script] -- [args]
copy
List available scripts
$ npm run
copy
Run script silently
$ npm run [script] --silent
copy

SYNOPSIS

npm run-script script [options]

DESCRIPTION

npm run-script runs scripts defined in package.json scripts field. Alias: npm run. Without arguments, lists available scripts. Arguments after -- are passed to the script.

PARAMETERS

--silent

Suppress output.
--if-present
Don't error if script missing.
--
Pass arguments to script.

SEE ALSO

npm(1), npm-start(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community