Questions tagged [node-gyp]

a cross-platform command-line tool used for compiling addon modules for Node.js

Node-gyp is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js, which takes away the pain of dealing with the various differences in build platforms.

Source: Github (node-gyp)

974 questions
417
votes
37 answers

Node.js: Python not found exception due to node-sass and node-gyp

Suddenly in one of my jenkins environment build has started failing, while in local machine it seems to be working fine as i have python installed, From the logs i was able to detect that the problem is with internal dependency that is node-gyp…
Vipul Panth
  • 5,221
  • 4
  • 16
  • 27
386
votes
24 answers

`npm install` fails on node-gyp rebuild with `gyp: No Xcode or CLT version detected!`

Every time I try npm install. I get the following error. How do I fix it? gyp: No Xcode or CLT version detected! I am on node -v → v8.8.0 & npm -v → v6.11.3 I tried to run it on VSCode terminal and iTerm, but both ended up getting the same error.…
Jeena
  • 4,193
  • 3
  • 9
  • 19
195
votes
17 answers

Cannot install node modules that require compilation on Windows 7 x64/VS2012

I cannot install any of the modules that require compilation. All they fail with the following error: MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". ... My environment: Windows 7 Enterprise x64, version…
Alex Netkachov
  • 13,172
  • 6
  • 53
  • 85
188
votes
1 answer

What is node-gyp?

What is node-gyp and why does it use my system files to build Node.js packages? If I build a Node project that uses node-gyp internally then I just tar that project and move it to a different system, untar it and try to use it, will that work?
selftaught91
  • 7,013
  • 3
  • 20
  • 26
85
votes
18 answers

NPM install fails with node-gyp

We are having problems running "npm install" on our project. A certain file cannot be found : fatal error C1083: Cannot open include file: 'windows.h' It appears to be coming from the node-gyp module…
Oliver Watkins
  • 12,575
  • 33
  • 119
  • 225
79
votes
4 answers

npm package.json OS specific dependency

Is there a way to specify OS specific dependencies in a npm package.json file? For example, I would only want to install 'dbus' (https://npmjs.org/package/dbus) as a dependency for my module if the user is running Linux. I would have a different…
sandeepmistry
  • 2,058
  • 4
  • 20
  • 25
76
votes
6 answers

node gyp error TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified

I want to install bcrypt on a windows 10 machine with visual studio community 2015, Python v2.7.3 installed but i get the following error. node version v4.2.1 node-gyp v3.0.3 npm install bcrypt C:\Users\ASMIN\Desktop\M2\app>npm install…
manas
  • 6,119
  • 10
  • 45
  • 56
73
votes
13 answers

node-gyp build error windows x64: "fatal error LNK1181: cannot open input file 'kernel32.lib'"

Here's what I've done so far on my x64 OS: Installed Python (v2.7 --specifically 2.7.6) and added it to the system path (C:\Python27) Installed MS VS C++ 2010 Express Version (I already had VS 2012 but without the C++ component) Installed the…
Rachael
  • 1,965
  • 4
  • 29
  • 55
69
votes
6 answers

Docker Node Alpine Image Build Fails on node-gyp

I'm attempting to Dockerize a Vue.js application. I'm using the node:10.15-alpine Docker image as a base. The image build fails with the following error: gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can…
Jason
  • 2,382
  • 1
  • 16
  • 29
66
votes
6 answers

NPM Error "Can't find Python executable" in MacOS Big Sur

I've been looking for the answer to this for a good solid week now, with no success. I've looked at every StackOverflow post, every article from Google and every related Github issue I could find. Most related errors seem to be older, so I'm…
J. Jackson
  • 3,326
  • 8
  • 34
  • 74
64
votes
25 answers

npm install with error: `gyp` failed with exit code: 1

I'm try to install modules on Windows 10 using npm 5.6.0. When I enter npm install I get: gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit…
dawn
  • 855
  • 1
  • 7
  • 16
59
votes
23 answers

node-gyp configure got "gyp ERR! find VS"

I am trying to start about node c/c++ add-on. the node-gyp command got error I have installed vs2019, my command is node-gyp configure --msvs_version=2019 the verbose output is gyp info it worked if it ends with ok gyp info using node-gyp@5.0.3 gyp…
Seact
  • 711
  • 1
  • 5
  • 10
57
votes
7 answers

npm install that requires node-gyp fails on Windows

I have a NPM project that uses bufferutils and utf-8-validate, both requiring node-gyp to install them. When I do npm install, I get following error: > bufferutil@1.2.1 install C:\Users\Marek\WEB\moje-skoly\web-app\node_modules\bufferutil …
Marek Lisý
  • 3,302
  • 2
  • 20
  • 28
48
votes
14 answers

Why is node-gyp rebuild failing on Mac OSX El Capitan

I recently bought a mac, which uses Mac OSX El Capitan v10.11.4. Installed node with homebrew, and am using node v6.2.2 and npm v3.9.5. I'm getting an error with bcrypt during npm install, which I believe derives from a node-gyp rebuild error. I…
roonie
  • 763
  • 1
  • 9
  • 15
42
votes
9 answers

Node gyp ERR - invalid mode: 'rU' while trying to load binding.gyp

Getting the following error when running yarn install gyp/bin/node-gyp.js clean configure gyp info it worked if it ends with ok gyp info using node-gyp@5.1.1 gyp info using node@16.18.1 | darwin | arm64 gyp info find Python using Python version…
David Faizulaev
  • 4,651
  • 21
  • 74
  • 124
1
2 3
64 65