We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4cd167 commit fc76765Copy full SHA for fc76765
src/utils/getRuntimeExecutableForIde.ts
@@ -20,12 +20,10 @@ async function findGlobalPackagePath(packageName: string) {
20
`Searching for ${packageName} globally. Executed command: ${command}. Output: ${stdout}`,
21
);
22
23
- const path = stdout?.trim().split('\n')[0];
+ const path = stdout?.trim().split('\n')[0]?.trim();
24
25
if (path) {
26
- console.log(
27
- `Global installation path for ${packageName}: ${path.trim()}`,
28
- );
+ console.log(`Global installation path for ${packageName}: ${path}`);
29
return path;
30
}
31
return undefined;
0 commit comments