1.1 KiB
1.1 KiB
npmHooks.npmInstallHook
Hook to install node_modules for npm packages. Does not create wrappers for executable npm projects Primarily made for a multi-language environment.
Examples
Variables controlling npmInstallHook
npmInstallHook Exclusive Variables
dontNpmPrune
Whether to run {command}npm prune on the node_modules or not.
Defaults to true.
npmInstallFlags
Flags to pass to the {command}npm prune call for the node_modules of the package.
Defaults to --omit=dev --no-save which cannot be modified.
dontNpmInstall
Controls whether npmInstallHook is enabled or not.
Defaults to true, so the hook will run.
Honored Variables
The following variables are honored by the npmInstallHook.