public function install()
{
if (!$this->command->output->confirm('Would you like to install the NPM dependencies?', true)) {
return;
}
$this->command->output->writeln('<info>Installing NPM Dependencies...</info>');
$process = (new Process('npm set progress=false && npm install', $this->command->path))->setTimeout(null);
if ('\\' !== DIRECTORY_SEPARATOR && file_exists('/dev/tty') && is_readable('/dev/tty')) {
$process->setTty(true);
}
$process->run(function ($type, $line) {
$this->command->output->write($line);
});
}