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
0
votes
1 answer

Why does NPM success when submodules fail to build?

Often while using npm I've come across errors that appear to mean nothing - Visual Studio projects failing to build, build tools (eg: python.exe / CL.exe) not being available on the command line etc. Some examples of packages I've seen fail to build…
Alex McMillan
  • 17,096
  • 12
  • 55
  • 88
0
votes
1 answer

Node-Gyp to build Socket.io not working can't open winsock2.h (Windows 10 64x)

Questions like this appear to be rampant, but none of the ones I've found solve my issues regarding not being able to compile when running npm install --save socket.io. The current error (aka. error #4) below is preventing a build of socket.io. …
mtpultz
  • 17,267
  • 22
  • 122
  • 201
0
votes
1 answer

npm install gives node-gyp error

I recently switched back to node from iojs, finally got the install to work for node and npm, but now can't get my project's dev dependencies loaded. npm install yields the following... > bufferutil@1.2.1 install /Users/ernest…
ernestson
  • 81
  • 1
  • 9
0
votes
0 answers

npm install socket.io stack Error: `msbuild` failed with exit code: 1

I'm going crazy with the installation of socket.io. I tried various solutions around the net but every time I get an error. I followed the instructions at this link about node-gyp. I have windows7 professional 64 bit. here is what I get from the…
elgeko
  • 127
  • 1
  • 1
  • 11
0
votes
1 answer

Error running node, npm install pg error and gyp error

When I run node app.js, I get: Error: Cannot find module '/home/jchan1/projects/versiv-api/node_modules/pg/lib/native/../../build/default/binding' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load…
Jack
  • 5,264
  • 7
  • 34
  • 43
0
votes
0 answers

npm install "Failed at the ref@0.1.3 install script 'node-gyp rebuild'"

Maybe a long shot, but here goes. I'm attempting to install a package via NPM (karma iOS launcher) and am getting the above error (Failed at the ref@0.1.3 install script 'node-gyp rebuild') I'm running: OS X 10.10.4, Node 0.12.7 (also tried with…
Fraser
  • 14,036
  • 22
  • 73
  • 118
0
votes
1 answer

Fail to build node c++ addon

I am working on a project that uses stereolab's depth camera ZED to retrieve distance of obstacles. Its SDK is written in C++ and it requires CUDA 6.5. However, I have to integrate this program with another part of project, which is written in…
j0e1in
  • 696
  • 2
  • 8
  • 18
0
votes
0 answers

passing an array from javascript to c++

I am trying to pass an array from a node app to an add-on I have build using node-gyp. As performance is a major concern in this case, I am trying to use the most efficient ways to pass and parse the data. The issue I am encountering is passing an…
nevos
  • 907
  • 1
  • 10
  • 22
0
votes
1 answer

OpenShift : ImportError: No module named gyp: on NodeJs/Mongo cartridge

I have a OpenShift gear with the NodeJS and MongoDB cartridge installed. I have added KeystoneJS to and when I try to push the updated code, the build fails due to missing gyp module. Full error stack below. Has anyone else faced missing gyp module…
0
votes
2 answers

Reuse build condition for multiple targets in binding.gyp

Originally my binding file has only one target and that has been fine: { 'targets': [ { 'target_name': 'target1', 'sources': [ 'source1.cc', 'source2.cc' ], 'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ], …
Max
  • 3,824
  • 8
  • 41
  • 62
0
votes
1 answer

Node-gyp npm installation error in node.js project

when I try to install node-gyp into my node project in order to be able to install socket.io, I get these npm errors: I have all the dependencies for node-gyp to be installed: python (v2.7 recommended, v3.x.x is not supported) (already…
LukeG
  • 53
  • 9
0
votes
0 answers

node-gyp build fatal error: node: No such file or directory

I'm writing a node-gyp hello world // src/hello.cc #include "node" #include "v8" using namespace v8; Handle Method(const Arguments& args) { HandleScope scope; return scope.Close(String::New("world")); } void init(Handle
rkmax
  • 17,633
  • 23
  • 91
  • 176
0
votes
1 answer

npm install -g fibers fails on Azure Web App

Using the console on https://portal.azure.com/ > npm install -g fibers D:\home\site\wwwroot\programs\server gypBuild failed npm ERR! fibers@1.0.5 install: `node ./build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the fibers@1.0.5…
Cees Timmerman
  • 17,623
  • 11
  • 91
  • 124
0
votes
1 answer

Error: oracledb@0.6.0 install: `node-gyp rebuild` while installing oracledb module

I am working on Windows 7. I have tried a number of solutions mentioned here and there, but nothing seems to work. I am trying to install oracledb module using the command "npm install oracledb", but i get the following error: gyp ERR! node -v…
0
votes
1 answer

execute RFSniffer and codeSend in nodejs

Both tools are available over here: https://github.com/ninjablocks/433Utils/tree/master/RPi_utils I really want a simple interface to manage my 433mhz devices. but i can't find a good one. So I have worked all day now trying to make a wrapper for…