Skip to content

Commit 77737e4

Browse files
Eprince-hubcclauss
andauthored
Add Chocolatey Guide for node-gyp on Windows (#3008)
* Add chocolatey install * Revert unwanted diffs * Add chocolatey guide * Use bash for code block * Update README.md Co-authored-by: Christian Clauss <[email protected]> * Move chocolatey bash to top * Fix section identation --------- Co-authored-by: Christian Clauss <[email protected]>
1 parent a6b48fc commit 77737e4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,16 @@ Depending on your operating system, you will need to install:
4848

4949
### On Windows
5050

51-
Install the current [version of Python](https://devguide.python.org/versions/) from the
52-
[Microsoft Store](https://apps.microsoft.com/store/search?publisher=Python+Software+Foundation).
51+
Install tools with [Chocolatey](https://chocolatey.org):
52+
``` bash
53+
choco install python visualstudio2022-workload-vctools -y
54+
```
55+
56+
Or install and configure Python and Visual Studio tools manually:
57+
58+
* Install the current [version of Python](https://devguide.python.org/versions/) from the
59+
[Microsoft Store](https://apps.microsoft.com/store/search?publisher=Python+Software+Foundation).
5360

54-
Install tools and configuration manually:
5561
* Install Visual C++ Build Environment: For Visual Studio 2019 or later, use the `Desktop development with C++` workload from [Visual Studio Community](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community). For a version older than Visual Studio 2019, install [Visual Studio Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools) with the `Visual C++ build tools` option.
5662

5763
If the above steps didn't work for you, please visit [Microsoft's Node.js Guidelines for Windows](https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules) for additional tips.

0 commit comments

Comments
 (0)