node function

Future<void> node(
  1. IShell shell,
  2. String command
)

Runs the specified npm command

Throws CommandNotFoundException if npm is not found

since 0.0.1

Implementation

Future<void> node(IShell shell, String command) async {
  shell.requireCommand('node');
  _log.info('Running Node command...');
  await shell.run('node $command');
}