From 8784e2b48e958d0fff32c54616583ca30253a067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Tue, 21 Oct 2025 16:59:21 +0200 Subject: [PATCH] docs: improve import warning message on Windows --- impit-node/index.wrapper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/impit-node/index.wrapper.js b/impit-node/index.wrapper.js index 52e30239..da2a1022 100644 --- a/impit-node/index.wrapper.js +++ b/impit-node/index.wrapper.js @@ -12,6 +12,10 @@ This can have several reasons: While the main package (impit) still installs, your package manager will skip installing the prebuilt native bindings for your platform. If you still want to skip installing other optional dependencies, please install the native bindings for your platform as a direct dependency of your project. - You are using a non-standard Node.js runtime (e.g. Deno, Bun, Cloudflare workers etc.) that might not support native modules. +${ + process.platform === 'win32' ? `- On Windows, sometimes the Visual C++ Redistributable for Visual Studio is missing. + Please install it from https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170` : '' +} Run your script with IMPIT_VERBOSE=1 environment variable to get more information about the error. `, process.env['IMPIT_VERBOSE'] === '1' ? { cause: e } : undefined);