mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 16:35:53 +02:00

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
28 lines
379 B
Markdown
28 lines
379 B
Markdown
# npm run
|
|
|
|
> Run a script.
|
|
> More information: <https://www.npmjs.com>.
|
|
|
|
- Run a script:
|
|
|
|
`npm run {{script_name}}`
|
|
|
|
- Pass arguments to a script:
|
|
|
|
`npm run {{script_name}} -- {{argument}} {{--option}}`
|
|
|
|
- Run a script named `start`:
|
|
|
|
`npm start`
|
|
|
|
- Run a script named `stop`:
|
|
|
|
`npm stop`
|
|
|
|
- Run a script named `restart`:
|
|
|
|
`npm restart`
|
|
|
|
- Run a script named `test`:
|
|
|
|
`npm test`
|