Skip to content

Commit 66a43f1

Browse files
fix: findGlobalPackagePath
1 parent c6d8b18 commit 66a43f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/utils/getRuntimeExecutableForIde.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ async function findGlobalPackagePath(packageName: string) {
1616
: `which ${packageName}`;
1717
const { stdout } = await execAsync(command);
1818

19+
Logger.verbose(
20+
`Searching for ${packageName} globally. Executed command: ${command}. Output: ${stdout}`,
21+
);
22+
1923
const path = stdout?.trim().split('\n')[0];
24+
2025
if (path) {
2126
console.log(
2227
`Global installation path for ${packageName}: ${path.trim()}`,
2328
);
29+
return path;
2430
}
2531
return undefined;
2632
} catch (error) {

0 commit comments

Comments
 (0)