forked from mikeseven/node-webgl
-
Notifications
You must be signed in to change notification settings - Fork 176
Closed
Description
Trying to install gl on a machine with Visual Studio 2026 installed caused these errors:
11:06:21 npm error code 1
11:06:21 npm error path C:\...\node_modules\gl
11:06:21 npm error command failed
11:06:21 npm error command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || node-gyp rebuild
11:06:21 npm error C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(463,5): error MSB8020: The build tools for ClangCL (Platform Toolset = 'ClangCL') cannot be found. To build using the ClangCL build tools, please install ClangCL build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\...\node_modules\gl\build\webgl.vcxproj]
11:06:21 npm error (node:9132) [DEP0176] DeprecationWarning: fs.R_OK is deprecated, use fs.constants.R_OK instead
11:06:21 npm error (Use `node --trace-deprecation ...` to show where the warning was created)
11:06:21 npm error (node:8864) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
11:06:21 npm error (Use `node --trace-deprecation ...` to show where the warning was created)
11:06:21 npm error (node:8864) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
11:06:21 npm error Warning: unrecognized setting VCCLCompilerTool/LanguageStandard while converting to MSBuild.
11:06:21 npm error Warning: unrecognized setting VCCLCompilerTool/LanguageStandard_C while converting to MSBuild.
11:06:21 npm error Warning: unrecognized setting VCCLCompilerTool/LanguageStandard while converting to MSBuild.
11:06:21 npm error Warning: unrecognized setting VCCLCompilerTool/LanguageStandard_C while converting to MSBuild.
11:06:21 npm error gyp ERR! build error
11:06:21 npm error gyp ERR! stack Error: `C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
11:06:21 npm error gyp ERR! stack at ChildProcess.onExit (C:\...\node_modules\node-gyp\lib\build.js:203:23)
11:06:21 npm error gyp ERR! stack at ChildProcess.emit (node:events:508:28)
11:06:21 npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
11:06:21 npm error gyp ERR! System Windows_NT 10.0.17763
It looks like node-gyp just added VS2026 support in v12.1.0 couple of weeks ago: https://github.com/nodejs/node-gyp/releases/tag/v12.1.0
Metadata
Metadata
Assignees
Labels
No labels