2025-12-16 10:20:31 -07:00
|
|
|
# npm exec
|
|
|
|
|
|
|
|
|
|
> Voer binaire bestanden uit vanuit `npm`-pakketten.
|
2026-02-18 06:55:01 -07:00
|
|
|
> Meer informatie: <https://docs.npmjs.com/cli/npm-exec/>.
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Voer het commando uit vanuit een lokaal of extern `npm`-pakket:
|
|
|
|
|
|
|
|
|
|
`npm {{[x|exec]}} {{commando}} {{argument1 argument2 ...}}`
|
|
|
|
|
|
|
|
|
|
- Specificeer het pakket expliciet (handig als meerdere commando's dezelfde naam hebben):
|
|
|
|
|
|
|
|
|
|
`npm {{[x|exec]}} --package {{pakket}} {{commando}}`
|
|
|
|
|
|
|
|
|
|
- Voer een commando uit als het bestaat in het huidig pad of in `node_modules/.bin`:
|
|
|
|
|
|
|
|
|
|
`npm {{[x|exec]}} --no-install {{commando}} {{argument1 argument2 ...}}`
|
|
|
|
|
|
|
|
|
|
- Voer een specifiek commando uit, waarbij uitvoer van `npm` zelf wordt onderdrukt:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`npm {{[x|exec]}} --quiet {{commando}} {{argument1 argument2 ...}}`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Toon de help:
|
|
|
|
|
|
|
|
|
|
`npm {{[x|exec]}} --help`
|