You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with the default optional components. As of Node.js 24.0.0, ClangCL is required to compile
665
-
on Windows. To enable it, two additional components are needed:
660
+
* Select and download the Visual Studio Community Edition 2026 from
661
+
[Visual Studio Downloads](https://visualstudio.microsoft.com/downloads/) or alternatively download
662
+
[Build Tools for Visual Studio 2026](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2026),
663
+
and then install.
664
+
The Build Tools Edition has the lowest disk space requirements of all editions.
665
+
Professional or Enterprise Editions can also be alternatively selected.
666
+
* During installation of Visual Studio, select the "Desktop development with C++" workload.
667
+
As of Node.js 24.0.0, ClangCL is required to compile on Windows.
668
+
To install it, select the following two optional components:
666
669
* C++ Clang Compiler for Windows (Microsoft.VisualStudio.Component.VC.Llvm.Clang)
667
-
* MSBuild support for LLVM toolset (Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset)
670
+
* MSBuild support for LLVM (clang-cl) toolset (Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset)
671
+
* As an alternative to Visual Studio 2026, download Visual Studio 2022 Current channel Version 17.4 from the
table and install using the same workload and optional component selection as described above.
668
674
* Basic Unix tools required for some tests,
669
675
[Git for Windows](https://git-scm.com/download/win) includes Git Bash
670
676
and tools which can be included in the global `PATH`.
@@ -673,26 +679,23 @@ Refs:
673
679
to `PATH`. A build with the `openssl-no-asm` option does not need this, nor
674
680
does a build targeting ARM64 Windows.
675
681
676
-
Optional requirements to build the MSI installer package:
682
+
After you have installed any Visual Studio Edition you can add optional components using the
683
+
Modify / Individual Components tab of Visual Studio Installer.
677
684
678
-
* The .NET SDK component from [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/)
679
-
* This component can be installed via the Visual Studio Installer Application
685
+
Optional component required to build the MSI installer package:
680
686
681
-
Optional requirements for compiling for Windows on ARM (ARM64):
687
+
* The .NET SDK individual component (Microsoft.NetCore.Component.SDK)
682
688
683
-
* Visual Studio 17.6.0 or newer
684
-
> **Note:** There is [a bug](https://github.com/nodejs/build/issues/3739) in `17.10.x`
685
-
> preventing Node.js from compiling.
686
-
* Visual Studio optional components
687
-
* Visual C++ compilers and libraries for ARM64
688
-
* Visual C++ ATL for ARM64
689
-
* Windows 10 SDK 10.0.17763.0 or newer
689
+
Optional components required to compile for Windows on ARM64:
690
+
691
+
* MSVC Build Tools for ARM64/ARM64EC (Microsoft.VisualStudio.Component.VC.Tools.ARM64)
692
+
* C++ ATL for ARM64 (Microsoft.VisualStudio.Component.VC.ATL.ARM64)
690
693
691
694
NOTE: Currently we only support compiling with Clang that comes from Visual Studio.
692
695
693
-
When building with ClangCL, if the output from `vcbuild.bat` shows that the components are not installed
696
+
When building with ClangCL, if the output from `vcbuild.bat` shows that the components are not installed,
694
697
even when the Visual Studio Installer shows that they are installed, try removing the components
0 commit comments