node-gyp

Using electron-usb with electron

自闭症网瘾萝莉.ら 提交于 2019-12-10 19:57:22
问题 I tried is to include electron-usb library into my electron-project. When I execute npm start with require('electron-usb') in my index.html file an error occurs in the console: Uncaught Error: The specified procedure could not be found. \\?\C:\Users\Me\Documents\GitHub\electron-quick-start-master\electron-quick-start-master\node_modules\electron-usb\build\Release\electron-v0.36-win32-x64\usb_bindings.node This error occurs in the file ELECTRON_ASAR.js Click here to see it What did I do wrong?

Referring to environment variables from binding.gyp (node-gyp)

帅比萌擦擦* 提交于 2019-12-10 16:46:24
问题 I am using node-gyp, and I would like to use the value of an environment variable inside my binding.gyp file. Here is the hard way (list context): '<!@(printf "%s" "$FOO")' But is there an easier way? 回答1: To the best of my knowledge from working with gyp (the parent Google's project, not the one that ships with node https://code.google.com/p/gyp/). You can access environment variables the same way you would have in the shell. For example: '$(FOO)' Will return the data stored inside of FOO .

npm install mongoose fails (kerberos and bson errors)

牧云@^-^@ 提交于 2019-12-09 07:46:27
问题 So I'm attempting to launch my node app, but there's a few errors arising from my MongoDB installation. Here are the specs for my dev environment: node => 0.10.33 (installed from nodejs.org) npm => 1.4.28 (installed from nodejs.org) git => 2.1.3 (homebrewed) mongodb => 2.6.5 (homebrewed) If it makes a difference, I am also using the Mean Stack Skeleton as part of a tutorial. In a nutshell, when I try to run my node app using $ node app.js , I get the following feedback: USER$ npm install

Where are node-gyp's [options] documented?

时光总嘲笑我的痴心妄想 提交于 2019-12-08 18:33:21
问题 node-gyp --help says: Usage: node-gyp <command> [options] where <command> is one of: - build - Invokes `make` and builds the module - clean - Removes any generated build files and the "out" dir - configure - Generates a Makefile for the current module - rebuild - Runs "clean", "configure" and "build" all at once - install - Install node development files for the specified node version. - list - Prints a listing of the currently installed node development files - remove - Removes the node

“error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found” when trying to install npm module scrypt

杀马特。学长 韩版系。学妹 提交于 2019-12-08 13:11:24
问题 I´m trying to install the npm module scrypt. I know scrypt requires node-gyp, i installed it globally (several times). Also I know node-gyp requires python 2.7 and MS Build Tools. I installed the latest python 2.7 build and i installed MS Build Tools. I also tried with VS Community Edition 2017. I tried to repair and reinstall both. I also installed npm package windows-build-tools (several times) globally successful. But wenn i try npm i scrypt i got the following errors: C:\Program Files

'node-gyp' error in installing npm packages

怎甘沉沦 提交于 2019-12-08 05:26:28
问题 I am getting this error when I am trying to install "zmq" through npm oem@saurabh:~/Desktop/watcher/messaging$ npm install zmq > zmq@2.15.3 install /home/oem/Desktop/watcher/messaging/node_modules/zmq > node-gyp rebuild make: Entering directory '/home/oem/Desktop/watcher/messaging/node_modules/zmq/build' CXX(target) Release/obj.target/zmq/binding.o ../binding.cc:28:10: fatal error: zmq.h: No such file or directory #include <zmq.h> ^~~~~~~ compilation terminated. zmq.target.mk:101: recipe for

Cant find node-gyp module

孤街醉人 提交于 2019-12-08 04:57:13
问题 So I have a project where I've been using node-gyp to port C++ to node.js. Everything's been working but when I used to run node-gyp build but I would get allot of warnings for doing things like using int when I should have been doing unsigned long int . So I did some cleanup and got rid of all the errors, but now when I run node test.js I get MAC:project home$ node test.js module.js:340 throw err; ^ Error: Cannot find module 'build/Release/graph' at Function.Module._resolveFilename (module

How should binding.gyp be written to build a Node.js addon with OpenNI?

烂漫一生 提交于 2019-12-07 19:25:03
问题 I'm trying to build a Node.js addon that makes use of OpenNI. I haven't used Node-gyp before so I'm trying to set up the binding.gyp file so that it includes the OpenNI library as part of the build. The code I'm actually compiling is just the Hello World example. The binding.gyp file I'm using is based on the one from NUIMotion on Github, which is doing something similar. Here's mine: { "targets": [ { "target_name": "onijs", "sources": [ "src/main.cpp" ], "include_dirs": [ "./src/Include" ],

Building modules using node-gyp on Openshift

陌路散爱 提交于 2019-12-07 08:55:12
问题 When trying to build modules that require node-gyp like node-canvas on Openshift I get this error: > canvas@1.2.3 install /var/lib/.../repo/node_modules/canvas > node-gyp rebuild Traceback (most recent call last): File "/opt/rh/v8314/root/usr/bin/gyp", line 15, in <module> import gyp ImportError: No module named gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/opt/rh/nodejs010/root/usr/lib/node_modules/node-gyp/lib

How to rebuild node.js addon when source changes

限于喜欢 提交于 2019-12-07 05:23:11
问题 I have a node.js app and I have created a native addon. (In case you need background info, native addons for node.js can be created like this). In my development environment I want it to watch source files (these are C++ source files, in this case) and automatically rebuild my addon when the C++ source files change, and also automatically restart the node application after the build completes. I'm certain there's more than one way to accomplish this, but I went down the road of trying nodemon