Help Center> Meeting> Client SDK Reference> FAQs> [Electron] What Do I Do If the Error Message "Could not find any Visual Studio installation to use" Is Displayed When I Compile the .node File on Windows?
Updated on 2022-07-11 GMT+08:00

[Electron] What Do I Do If the Error Message "Could not find any Visual Studio installation to use" Is Displayed When I Compile the .node File on Windows?

Customer Case

When the .node file is compiled on the Windows platform, the message "Could not find any Visual Studio installation to use" is displayed.

Cause Analysis

Visual Studio is not installed or the environment variable GYP_MSVS_VERSION does not match the installed Visual Studio version.

Solution

Reinstall Visual Studio or change the value of the environment variable GYP_MSVS_VERSION to the corresponding Visual Studio version.