snippetbashTip
npm run — Run a script. More information: <https://docs.npmjs.com/cli/npm-run/>.
Viewed 0 times
httpscommandrunclimoreinformationnpm runscript
Problem
How to use the
npm run command: Run a script. More information: <https://docs.npmjs.com/cli/npm-run/>.Solution
npm run — Run a script. More information: <https://docs.npmjs.com/cli/npm-run/>.List available scripts:
npm runRun a script:
npm run {{script_name}}Pass arguments to a script:
npm run {{script_name}} -- {{argument}} {{--option}}Run a script named
start:npm startRun a script named
stop:npm stopRun a script named
restart:npm restartRun a script named
test:npm {{[t|test]}}Code Snippets
List available scripts
npm runRun a script
npm run {{script_name}}Pass arguments to a script
npm run {{script_name}} -- {{argument}} {{--option}}Run a script named `start`
npm startRun a script named `stop`
npm stopContext
tldr-pages: common/npm run
Revisions (0)
No revisions yet.