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

Should I install a node module that builds a C library on the CI or on the target server?

Scenario: my node application is tested and built on my CI (npm install and npm test). It is then packaged, along with the node_modules folder, and deployed to the target environment. So far so good. I then included a module, node-argon2, that upon…
Alessandro
  • 1,443
  • 9
  • 18
0
votes
2 answers

How to build node addon, so that it can be imported only by name, and not path

When I build a node add-on by creating a standard binding.gyp and running node-gyp build, the addon.node library is created in the subdirectory build/{Release|Debug}/. When I write tests or other javascript code to use this module, I have to give…
Jayesh
  • 51,787
  • 22
  • 76
  • 99
0
votes
1 answer

npm install fails with node-gyp build error

Today when I run npm install, it fails and gives me the following error log. I know it's an issue with hashtable but I have never had this issue before. > hashtable@2.0.2 install /Users/admin/myproject/node_modules/hashtable > node-gyp configure…
user6758349
0
votes
1 answer

"CL.exe" exited with code -1073741511, for 'npm install bcrypt --save"

I am going through the HAPI js tutorial Authentication section(http://hapijs.com/tutorials/auth?lang=en_US), which requires the "bcrypt". So I did "npm install bcrypt --save". But this is giving node-gyp errors like php was missing. So I followed…
Rohit Rane
  • 2,790
  • 6
  • 25
  • 41
0
votes
0 answers

Is node-gyp Visual Studio requirements

Is node-gyp requires VS on Windows after building app for distribution, or this requirement only for development?
ipatina
  • 133
  • 1
  • 6
0
votes
1 answer

Meteor build error : EACCES: permission denied, rmdir 'build'

I would like build my Meteor 1.4 app on Ubuntu 16.04 but i've this error : EACCES: permission denied, rmdir 'build' I run sudo meteor build ../build I've test to remove ~/.node-gyp but no result. Anyone can help me ? Thank you !
Stéphane R.
  • 1,386
  • 3
  • 19
  • 37
0
votes
0 answers

Error with node-gyp addon when in use of insert method - std::unordered_map

I trying to understand why I'm getting error when I insert some value in std::unordered_map of c++, my binder is like bellow: #include #include #include namespace demo { using v8::FunctionCallbackInfo; using…
0
votes
1 answer

node.js install node-protobuf on windows10

I have tried to install node-protobuf on win10 a few days now. I have followed a few quides/readmes, how to to it, but there is no success. Now I'm stuck here: C:\rie>npm install node-protobuf / > node-protobuf@1.3.3 install…
ajlind
  • 185
  • 1
  • 2
  • 18
0
votes
3 answers

node-gyp: run binding.gyp in all subdirectories

I'm developing a big node.js project which also includes several native libraries. To use these libraries in JavaScript I'm compiling them to node addons (.node) using node-gyp. I'd like to run node-gyp once from the root directory to compile all…
JeB
  • 11,653
  • 10
  • 58
  • 87
0
votes
1 answer

How to add a method to functionalized module.exports

Question. How to add a method to functionalized module.exports in my addon? I want to execute following Node code. const hello = require('./build/Release/hello') hello((msg) => { console.log(msg) }) // prints 'hello world' console.log('hello',…
signal
  • 424
  • 6
  • 23
0
votes
1 answer

node-gyp rebuild fail , zmq/build file can't create

I use npm install node-gyp and it run well , but when I use npm to install zmq, the node-gyp rebuild fail and the error below. I need the /zmq/build for my program to run. I try reinstall the node-gyp but didn't work. Is anyone met this situation…
ChainLee
  • 1
  • 1
0
votes
1 answer

npm node-gyp build error CentOS

I am installing npm install on my CentOS machine and it gives the following error again and again. I have installed all latest dev-tools I also tried downgrading and upgrading but the issue remains the same. I am using CentOS6 on Amazon AWS. npm…
Hassnain Alvi
  • 333
  • 6
  • 16
0
votes
1 answer

Npm Install Failing on node-gyp rebuild

Seems like this is a pretty common issue, but none of the solutions I've researched have solved it for me. I am running Ubuntu 16.04, Node 4.2.6, NPM version 3.5.2. I suspect I have a dependency in my application that no longer works with these…
Larry Turtis
  • 1,907
  • 13
  • 26
0
votes
1 answer

Receiving Fatal Error c1083, Cannot open include file stddef.h while building node-gyp in Aurelia Project

I am been facing this problem for weeks now, with no hope of being solved. I am new to Aurelia JavaScript Framework and I am getting grips around the skeleton project hosted on github. I have successfully installed nodejs, npm and jspm. As part of…
realnsleo
  • 709
  • 2
  • 12
  • 29
0
votes
0 answers

Compiled node.js module not getting correct library path when copied to different machines

My problem is a little complicated but I'll try: I have a node.js application that needs to be completely prebuilt and bundled alongside standalone node.js (specifically 4.4.5 LTS), zipped and deployed to offline CentOS 6/7 machines, meaning I…