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

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

Customer Case

When a .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.