Skip to content

Commit 28398a2

Browse files
Fix node.js executable link on windows
1 parent 49d4f2a commit 28398a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Installer/NodeInstaller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private function untar($source, $targetDir)
208208
private function linkExecutables($sourceDir, $targetDir)
209209
{
210210
$nodePath = $this->context->getOsType() === 'win' ?
211-
realpath($sourceDir . DIRECTORY_SEPARATOR . 'node') :
211+
realpath($sourceDir . DIRECTORY_SEPARATOR . 'node.exe') :
212212
realpath($sourceDir . DIRECTORY_SEPARATOR . 'bin/node');
213213
$nodeLink = $targetDir . DIRECTORY_SEPARATOR . 'node';
214214

0 commit comments

Comments
 (0)