Skip to content

Commit 5269afa

Browse files
Improve console output
1 parent f319afb commit 5269afa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/NodeComposerPlugin.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,12 @@ public function onPostUpdate(Event $event)
8383
));
8484

8585
$nodeInstaller->install($this->config->getNodeVersion());
86-
87-
$this->io->write('');
88-
86+
8987
$installedNodeVersion = $nodeInstaller->isInstalled();
9088
if (strpos($installedNodeVersion, 'v' . $this->config->getNodeVersion()) === false) {
9189
throw new \RuntimeException('Could not verify node.js installation');
9290
} else {
93-
$this->io->write(sprintf(
91+
$this->io->overwrite(sprintf(
9492
'node.js v%s installed',
9593
$this->config->getNodeVersion()
9694
));

0 commit comments

Comments
 (0)