Skip to content
forked from nodejs/node

Commit c3f2216

Browse files
huseyinacacak-janeaaduh95
authored andcommitted
doc: add instructions for WinGet build
PR-URL: nodejs#55356 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Stefan Stojanovic <[email protected]>
1 parent 57dbbf8 commit c3f2216

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

BUILDING.md

+30-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ file a new issue.
3535
* [Windows](#windows)
3636
* [Windows Prerequisites](#windows-prerequisites)
3737
* [Option 1: Manual install](#option-1-manual-install)
38-
* [Option 2: Automated install with Boxstarter](#option-2-automated-install-with-boxstarter)
38+
* [Option 2: Automated install with WinGet](#option-2-automated-install-with-winget)
39+
* [Option 3: Automated install with Boxstarter](#option-3-automated-install-with-boxstarter)
3940
* [Building Node.js](#building-nodejs-2)
4041
* [Android](#android)
4142
* [`Intl` (ECMA-402) support](#intl-ecma-402-support)
@@ -666,7 +667,34 @@ Optional requirements for compiling with ClangCL:
666667

667668
NOTE: Currently we only support compiling with Clang that comes from Visual Studio.
668669

669-
##### Option 2: Automated install with Boxstarter
670+
##### Option 2: Automated install with WinGet
671+
672+
[WinGet configuration files](https://github.com/nodejs/node/tree/main/.configurations)
673+
can be used to install all the required prerequisites for Node.js development
674+
easily. These files will install the following
675+
[WinGet](https://learn.microsoft.com/en-us/windows/package-manager/winget/) packages:
676+
677+
* Git for Windows with the `git` and Unix tools added to the `PATH`
678+
* `Python 3.12`
679+
* `Visual Studio 2022` (Community, Enterprise or Professional)
680+
* `Visual Studio 2022 Build Tools` with Visual C++ workload, Clang and ClangToolset
681+
* `NetWide Assembler`
682+
683+
To install Node.js prerequisites from Powershell Terminal:
684+
685+
```powershell
686+
winget configure .\configuration.dsc.yaml
687+
```
688+
689+
Alternatively, you can use [Dev Home](https://learn.microsoft.com/en-us/windows/dev-home/)
690+
to install the prerequisites:
691+
692+
* Switch to `Machine Configuration` tab
693+
* Click on `Configuration File`
694+
* Choose the corresponding WinGet configuration file
695+
* Click on `Set up as admin`
696+
697+
##### Option 3: Automated install with Boxstarter
670698

671699
A [Boxstarter](https://boxstarter.org/) script can be used for easy setup of
672700
Windows systems with all the required prerequisites for Node.js development.

0 commit comments

Comments
 (0)