Skip to content

Commit 66e41f0

Browse files
huseyinacacak-janearuyadorno
authored andcommitted
doc: add instructions for WinGet build
PR-URL: #55356 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
1 parent 6ad23e7 commit 66e41f0

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)
@@ -669,7 +670,34 @@ Optional requirements for compiling with ClangCL:
669670

670671
NOTE: Currently we only support compiling with Clang that comes from Visual Studio.
671672

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

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

0 commit comments

Comments
 (0)