Search code examples
c++gccnpmnode-gypbrowser-sync

Install Visual C++ Compiler on Windows without installing whole Visual Studio


NOTE This question can be duplicate of this or this question.

But please don't close it as duplicate without reading entire question.

I'm trying to install npm module browsersync on Windows, and by reading its documentation, I found that module itself uses node-gyp which requires C++ compiler on Windows to build native extension. And that leads to installation of Visual Studio (community edition will do). After going through above linked questions (which I noted as duplicates of my current question), I found that Windows SDK used to ship with C++ compiler but now Visual Studio is required to have C++ compiler.

So my concern is, do I really need to download and install that hefty 6 GB VS Community edition just to get that C++ compiler to build browsersync on Windows? or is there any way to do that via GCC for Windows?

P.S. Earlier I faced similar situation for installing node-oracledb.

Thanks.


Solution

  • @Niall covered where you can get the actual C++ compiler, but if you're looking for further information on the problem there's a walkthrough on how to get node-gyp up and running on Windows on their github issues page with the standalone compiler.