Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I configure npm-gyp on Windows to use gcc instead of VC++?

Is there a way to configure npm-gyp to use gcc (as it appears to on Linux) on a Windows box?

like image 347
Allen Avatar asked Jan 30 '13 22:01

Allen


People also ask

Do I need Visual Studio for NPM?

It works without Visual Studio, but you'll need to install Windows SDK: Get Windows SDK from https://www.microsoft.com/en-us/download/details.aspx?id=8442. Use "SDK command line" shortcut on your desktop to launch npm install.

What file does node gyp use?

gyp file describes the configuration to build your module, in a JSON-like format. This file gets placed in the root of your package, alongside package. json .

What is node gyp in NPM?

node-gyp is a cross-platform command-line tool written in Node. js for compiling native addon modules for Node. js. It contains a vendored copy of the gyp-next project that was previously used by the Chromium team, extended to support the development of Node.


1 Answers

This is not possible as described here.

UPDATE
An enhancement request has been submitted to the gyp team.
UPDATE
...but probably won't be acted upon. [comment]

like image 143
Allen Avatar answered Nov 07 '22 05:11

Allen