Questions tagged [gyp]

GYP is a tool created at Google for the Chromium project that generates native Visual Studio, Xcode and SCons and/or make build files from a platform-independent input format.

GYP is a tool created at Google for the Chromium project that generates native Visual Studio, Xcode and SCons and/or make build files from a platform-independent input format. It is highly specific to Chromium's specific use case and was not created for the general use.

Input configurations are specified in files with the suffix .gyp. Each .gyp file specifies how to build the targets for the "component" defined by that file. Each .gyp file generates one or more output files appropriate to the platform.

178 questions
1
vote
1 answer

Getting 'OSError: [Errno 2] No such file or directory:' during `node-gyp` compilation of module in `npm install`

npm install throws error below. One of the modules my application depends on is a native Node.js module, re2 (it depends on node-gyp, which means it is compiled at install time): File…
Jose Quijada
  • 558
  • 6
  • 13
1
vote
1 answer

Where is the "python" environment variable set?

I have run into an issue with installing some npm packages for an app on Windows 10. Specifically gyp seems to be causing trouble, because it cannot find the python executable. Here is part of the output of npm install in PowerShell: Previously I…
Waruyama
  • 3,267
  • 1
  • 32
  • 42
1
vote
1 answer

node.js install web3 module scrypt issue

All I want is to install web3 in my node. My node version is v8.9.4 web3 version is 1.0.0-beta.46 But what I don't understand is that the scrypt keeps failing. I just run the node, I see the terrible message that no scrypt module I have... Usually I…
Richard
  • 351
  • 4
  • 17
1
vote
1 answer

`npm install npm` gives gyp ERR and npm ERR

Why do I get this strange error when doing sudo npm install npm? I also sometimes get it when trying to install other modules! Error: > scrypt@6.0.3 preinstall /home/user/code/project/api_v0.8/node_modules/scrypt > node node-scrypt-preinstall.js >…
sunwarr10r
  • 4,420
  • 8
  • 54
  • 109
1
vote
0 answers

GYP issue installing yo hyperledger

I can't install hyperledger on windows 10 using VSCode because I keep getting a error when I try to install the generator with Yo. This is the error: \AppData\Roaming\npm\node_modules\generator-hyperledger-composer\node_modules\pkcs11js>if not…
Robert
  • 343
  • 6
  • 16
1
vote
1 answer

firebase functions fails to deploy

I am having issues in trying to deploy firebase functions. If i try to do firebase -deploy i end up with below error. I am using windows 10 and git bash to run this. my firebase version: 3.19.3 npm -v: 6.2.0 gyp ERR! build error gyp ERR! stack…
Vik
  • 8,721
  • 27
  • 83
  • 168
1
vote
1 answer

Linking against arch specific locations with node-gyp

I'm trying to build a native Node.js module that links against a 3rd party shared library. This library is delivered as part of a bundle that includes pre-built versions for different OSes and Architectures in different…
hardillb
  • 54,545
  • 11
  • 67
  • 105
1
vote
1 answer

'copies' in gyp is not copying the entire folder when the target is windows

I am writing a GYP file for my project. When I use 'copies' to copy a directory, the content does not get copied in windows platform (target as 'win'). But, coping a single file using 'copies' is successful (I am able to copy a single file; but not…
1
vote
1 answer

node-gyp variable behaves differently when passed through command line

I have the following variable defined in my gyp file (expecting that BASE_DIR is always passed as a command line argument): 'variables': { "BOOST_DIR": "<@(BASE_DIR)/../../opt/boost_1_63_0/stage/lib" }, and I use it as library path for the…
David Tanzer
  • 2,732
  • 18
  • 30
1
vote
1 answer

Is it possible to make Gyp generate a pre (or post) build step?

I'm using gyp to generate Visual Studio projects, make files, and Xcode projects. I would like to have a pre-build step that calls a command line tool which generates some code that I later compile in, is this possible? Incidentally, in cmake I do…
kmp
  • 10,535
  • 11
  • 75
  • 125
1
vote
1 answer

Node-gyp (or gyp) action targets containing =, & on Linux

I'm using node-gyp on Linux with and need to use actions to define custom build steps (note sure whether this is a node-gyp issue or a general gyp issue). The documentation seems to suggest that you should specify the command for the build steps as…
dtopham75
  • 620
  • 6
  • 14
1
vote
1 answer

error with npm install hubot-irc on windows 10 x64

npm install error I tried to install a hubot adapter hubot-irc for my own bot, but got an error with npm install: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not fi nd…
skitta
  • 11
  • 3
1
vote
0 answers

Can't compile / npm / node.js project in windows

I try to run npm install -g command on project that is based on node.js. using windows and visual studio compiler i have installed version 2012/2013/2015 each time i run the npm command in the : Developer Command Prompt for VS2012/2013/2015 but i…
user63898
  • 29,839
  • 85
  • 272
  • 514
1
vote
1 answer

How to disable code Optimization with gyp?

I have a gyp generated project that produces the following error in MSVC2013: I have the following error in MSVC2013: error D8016: '/O2' and '/RTC1' command-line options are incompatible. Therefore I tried to turn off optimizations…
Barney Szabolcs
  • 11,846
  • 12
  • 66
  • 91
1
vote
1 answer

How can I add a custom compiler flag that is not directly supported by node-gyp?

I have an MSVC project that is set up with Gyp. I have looked at the source of gyp and there I didn't find any reference to /Zm flags. Where can I put /Zm200 in the gyp file?
Barney Szabolcs
  • 11,846
  • 12
  • 66
  • 91