Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is this /build/config.gypi file and can I delete it?

Tags:

node.js

One of the libraries in node that I use obviously uses node-gyp and node-gyp apparently outputs a /build/config.gypi file (sometimes). I can't find any explanation of what this file is, beyond this issue on github.

Will anything be impacted if I delete this file? It's easy enough to find out the hard way. Thought it would be nice if this question was answered for the next person that finds this file and goes "huh?"

like image 228
jcollum Avatar asked Aug 02 '13 18:08

jcollum


People also ask

What is GYPI?

The United Nations Secretary-General's Peacebuilding Fund's (PBF) Gender and Youth Promotion Initiatives (GYPI) are expressions of the Fund's commitment to inclusive peacebuilding.

Which file does node gyp use?

The binding.gyp file A binding.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 .

Does node require Python?

If the Python software is compiled to an executable (like an exe or app) then no, you do not need Python installed to run it as the compiler compiles the python interpreter into the executable. If you only downloaded the source code (. py) then you will need Python to run it.


1 Answers

Judging by this, it looks like it's a set of configurations for Gyp, a tool used to build Node. When Node starts up, the .gypi is loaded like any other settings file.

To answer your question, it looks like deleting the file will lead to Node running with its defaults, ignoring any custom configs you set during installation.

like image 66
reergymerej Avatar answered Sep 21 '22 02:09

reergymerej