mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-19 01:43:18 +08:00
711 B
711 B
npm exec
Execute binaries from
npmpackages. More information: https://docs.npmjs.com/cli/npm-exec.
- Execute the command from a local or remote
npmpackage:
npm {{[x|exec]}} {{command}} {{argument1 argument2 ...}}
- Specify the package explicitly (useful if multiple commands with the same name exist):
npm {{[x|exec]}} --package {{package}} {{command}}
- Run a command if it exists in the current path or in
node_modules/.bin:
npm {{[x|exec]}} --no-install {{command}} {{argument1 argument2 ...}}
- Execute a specific command, suppressing any output from
npmitself:
npm {{[x|exec]}} --quiet {{command}} {{argument1 argument2 ...}}
- Display help:
npm {{[x|exec]}} --help