7 ms·
Visual Studio is an extra source of issue since it packages its own version of nodejs and with it npm. You can configure Visual Studio to use your global nodej
by t1amat 10y ago
Visual Studio is an extra source of issue since it packages its own version of nodejs and with it npm. You can configure Visual Studio to use your global nodejs, however. I have mine setup this way, and Visual Studio uses my global nodejs 5 and npm 3.
- nailer 10y agoDo you need Visual Studio for its C compiler? Or can you get by without it (eg, is there another compile you could use to build native stuff)?
- t1amat 10y agoAs far as I am aware, on Windows, for C/C++ modules that need compiled, there are no options other than Visual Studio. I have to qualify this by saying that I have had an MSDN license for a decade and haven't been forced to find a work-around. If you could find a Community Edition of it that would probably be enough. The other aspect of this question is how often this actually is needed. I'd say it really depends on the type of development you are doing. But you can expect that any project with a sufficiently large amount of dependencies will have at least one that requires building this way. But I am surprised how often this isn't the case, and often those modules are soft dependencies.
- numo16 10y agoBased on Microsoft's node.js guidelines[0], it looks like you should be able to get by with just installing the Visual C++ Build tools and not the full VS community edition. [0]: https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#configuring-your-windows-development-environment https://github.com/Microsoft/nodejs-guidelines/blob/master/w...
- manyxcxi 10y agoThere are command line tools/minimal libraries that allow you to compile C/C++ provided in the depths of Microsoft's webs that can/will let you do this without a full on VS install. Typically good for setting up a build server/etc. If I wasn't on a spotty network ATM I'd dig through my old blog posts to find where I wrote about it. In general though, if you can get a free version of one of the VS flavors, you'll save a lot of hassle just installing that.
- deleted 10y ago[deleted]