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
0
votes
0 answers

Why does a npm dependency install fails when installing from git url?

This dependency install works: npm install sharp But this one fails: npm install https://github.com/lovell/sharp (it also fails with other url protocols (git://, git+https://, etc.) With the following trace: > sharp@0.31.1 install…
Vincent
  • 3,945
  • 3
  • 13
  • 25
0
votes
1 answer

gyp errors when trying to install Parcel with NPM

I'm trying to install Parcel, I used both NPM and Yarn, and tried several Node.js versions (14, 16, 10...) but nothing worked for me, I always get the same error. I'm using Windows 10 32bit and Python gyp info it worked if it ends with ok gyp info…
Aliiii
  • 31
  • 2
0
votes
0 answers

node-gyp c++ chrome extension

i need to create chrome extension that can call c++ from js so i use nodeapi and to achieve that I used the node-gyp package.json { "name": "test", "version": "0.13.0", "description": "test", "main": "./index.js", "files": [ …
0
votes
1 answer

Google Appengine Fail - npm error with make and INVALID_ARGUMENT error

I'm getting a weird error when I try to deploy google appengine. I've tried removing the yarn files, the package and package lock files, rerunning npm install, running npm cache verify, env V=1 npm install fsevents etc and I'm hopelessly stumped.…
0
votes
1 answer

Use stdlib and rand with Node native module (node-gyp)

This is just an example of the problem. Let's say I have utils.cc #include "../headers/utils/utils.h" double sum() { double result = 1 + 1; return result; } double multisum(int n) { double result = 0; for (int i = 0; i < n; i++) …
EuberDeveloper
  • 874
  • 1
  • 14
  • 38
0
votes
1 answer

Building V8 with GYP

I've been able to get V8 to compile when it uses GN, but for older versions that use GYP, I get this error upon running make native for V8 version 4.8.47: make: *** No rule to make target 'third_party/icu/icu.gypi' needed by 'out/Makefile.native'.…
Melab
  • 2,594
  • 7
  • 30
  • 51
0
votes
1 answer

Using CMake generator expressions with GYP

I'm working on Node.js native module which contains C and C++ sources. node-gyp is used to build the module. As I want only one warning rises error in C code I use the following lines in binding.gyp: "cflags!": [ "-Werror"], "cflags": […
Serg
  • 2,346
  • 3
  • 29
  • 38
0
votes
1 answer

npm i Error: `gyp` failed with exit code: 1

I am trying to install modules on Windows 10 using npm 6.14.13 When I enter npm i I get: gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files…
Moshe Kalman
  • 3
  • 1
  • 3
0
votes
1 answer

edge-js build failing with nw-gyp

Description I want to use edge-js with nw.js. And as edge-js is not pure js package , I have to rebuild it with nw-gyp to get it working. (https://github.com/nwjs/nw.js/wiki/using-node-modules) Tried to re-build edge-js with nw-gyp, but facing…
Deepak
  • 1
0
votes
1 answer

How add a private\custom Node.js module on package.json

I create a custom node.js plugins in c++ using gyp. My plugin is not published\public yet so it's not describe on package.json. I need copy it manually on my node_modules... It's not perfect but it works... How describe it on package.json to allow…
WCdr
  • 185
  • 4
  • 12
0
votes
2 answers

Node-RED - Node install - Error: `gyp` failed with exit code: 1

I need to install "red-contrib-socketcan" - https://flows.nodered.org/node/red-contrib-socketcan Problem is that I can't install it because node-gyp failes with exit code 1. Until now I couldn't find any solution. I am using a Banana Pi - M4 and…
Bierly
  • 43
  • 1
  • 8
0
votes
1 answer

Unable to create React typescript project

Hi I always get the following error while creating typescript based react project, and the project gets created with .js files instead. I have tried to reinstall the create-react-app utility but did not work. > node-pre-gyp ERR! Tried to…
Mitesh Pant
  • 524
  • 2
  • 15
0
votes
2 answers

node-pre-gyp ERR! and gyp ERR! handling?

I am trying to build a big project using yarn and I get a lot of errors in the form of node-pre-gyp ERR! and gyp ERR! The errors are bellow: 22 warnings and 11 errors generated. make: *** [Release/obj.target/fse/fsevents.o] Error 1 22 warnings and…
Contentop
  • 1,163
  • 3
  • 20
  • 43
0
votes
1 answer

node-gyp - how to generate a Visual Studio project with NatVis file included

Is it possible to generate a Visual Studio project with node-gyp such that it will include a specified .natvis file? When I manually add a .natvis file to my C++ project, I see that my .vcxproj file is updated with the following block: …
gipouf
  • 1,221
  • 3
  • 15
  • 43
0
votes
0 answers

node-gyp failing every time because of bad build tools directory

I've been struggling with this for several hours, and came with no solution. Basically, when I try to install a node module depending on node-gyp, it fails every time - because it knows about a non-existent python directory, which is pointing to my…
mhwq
  • 23
  • 3