diff --git a/npm/main.js b/npm/main.js index e292fb930..566234f0c 100644 --- a/npm/main.js +++ b/npm/main.js @@ -17,7 +17,12 @@ function isMusl() { return false; } + // Some environments, like the VS Code extension host, return no report const report = process.report.getReport(); + if (!report?.header) { + return false; + } + return report.header.glibcVersionRuntime === undefined; }