Skip to content

Commit b8b64d0

Browse files
authored
fix(vite): use npm as fallback when no package manager is detected during installation (#1297)
1 parent 7597029 commit b8b64d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/Installer/ViteInstaller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function install(): void
9797
ignoreNonExisting: true,
9898
);
9999

100-
$packageManager = PackageManager::detect(root_path());
100+
$packageManager = PackageManager::detect(root_path()) ?? PackageManager::NPM;
101101

102102
$this->console->instructions([
103103
$shouldInstallTailwind

0 commit comments

Comments
 (0)