Skip to content

Commit 81d71ff

Browse files
doc: add instructions for WinGet build
1 parent 82dab76 commit 81d71ff

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

BUILDING.md

Lines changed: 29 additions & 2 deletions
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,33 @@ 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 [WinGet](https://learn.microsoft.com/en-us/windows/package-manager/winget/) packages:
675+
676+
* Git for Windows with the `git` and Unix tools added to the `PATH`
677+
* `Python 3.12`
678+
* `Visual Studio 2022` (Community, Enterprise or Professional)
679+
* `Visual Studio 2022 Build Tools` with Visual C++ workload, Clang and ClangToolset
680+
* `NetWide Assembler`
681+
682+
To install Node.js prerequisites from Powershell Terminal:
683+
684+
```powershell
685+
winget configure .\configuration.dsc.yaml
686+
```
687+
688+
Alternatively, you can use [Dev Home](https://learn.microsoft.com/en-us/windows/dev-home/)
689+
to install the prerequisites:
690+
691+
* Switch to `Machine Configuration` tab
692+
* Click on `Configuration File`
693+
* Choose the corresponding WinGet configuration file
694+
* Click on `Set up as admin`
695+
696+
##### Option 3: Automated install with Boxstarter
670697

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

0 commit comments

Comments
 (0)