launch

fun launch(vararg requiredModules: NodeModule, action: () -> Unit)

Checks if the Node.js and NPM wrappers are present and valid, links, and optionally installs, the required modules, runs the given action and cleans up the working directory from generated files.

Parameters

requiredModules

the modules to link

action

the action to run after the executables are checked and the modules are linked

Throws

if the Node.js or NPM wrappers are not valid

if a required module is not installed globally