node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

Windows installation: Can't find "Visual C++ build tools" workload

Open skeddles opened this issue 2 years ago • 2 comments

Trying to install on windows with the instructions from the readme.

it says: Install Visual C++ Build Environment: Visual Studio Build Tools (using "Visual C++ build tools" workload)

i install visual studio build tools 2019 16.11.11, and I see a workloads tab, but none of the options are called "Visual C++ build tools"

here are the options i am given: setup_2022-04-02_15-19-36

am I missing something? did i install the wrong software? is it under a different name?

skeddles avatar Apr 02 '22 19:04 skeddles

https://github.com/nodejs/node-gyp/blob/91eb407f8418235d51c72b6a8df9c454ba882554/README.md#L53-L55

You've probably already solved this problem but for anyone else using visual studio it's the "Desktop development with C++" workload.

SystemStack avatar Apr 21 '22 23:04 SystemStack

@skeddles Can this issue be closed?

cclauss avatar Apr 22 '22 06:04 cclauss

The readme should be updated for Windows, I ran into the same problem.

raress96 avatar Jul 06 '23 13:07 raress96

@StefanStojanovic Should both work or only the latter?

cclauss avatar Jul 06 '23 13:07 cclauss

@raress96 Please make the appropriate edits at https://github.com/nodejs/node-gyp/edit/main/README.md which should create a pull request.

cclauss avatar Jul 06 '23 13:07 cclauss

@StefanStojanovic Should both work or only the latter?

I left a comment in a PR, but basically, it depends on the version of the build tools you're installing. Both workloads are mutually exclusive and each is valid for certain versions of the build tools.

StefanStojanovic avatar Jul 11 '23 09:07 StefanStojanovic