node-gyp

how to add dependence to static library in binding.gyp node-gyp for node.js extension

坚强是说给别人听的谎言 提交于 2019-12-12 08:21:21
问题 I have a simple binding.gyp file for building my node.js extension. I want to change the linking method of the library "mylib" and link it statically instead of using shared library. { "targets": [ { "target_name": "myext", "sources": [ "code/main.cpp", "code/load.cpp", "include/load.h" ], "include_dirs": [ "include", "../Library/include" ], "libraries": [ "-lmylib", "-L/home/admin/MyLib/Library/binaries/linux/Release" ], "cflags!": [ "-fno-exceptions" ], "cflags": [ "-std=c++11" ], "cflags

node-gyp configure error at execvp()

一世执手 提交于 2019-12-12 02:06:08
问题 Under Node 0.8.20 Compile the node addon from here Have node-gyp, python 2.7.3 and gcc installed. When running node-gyp configure errors occurred. Below is the error outputs: gyp info it worked if it ends with ok gyp info using node-gyp@0.8.5 gyp info using node@0.8.20 | linux | arm gyp ERR! configure error gyp ERR! stack Error: Command failed: execvp(): Permission denied gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:540:15) gyp ERR! stack at ChildProcess

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

假装没事ソ 提交于 2019-12-11 20:45:49
问题 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 v0.12.4 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs \\node_modules\\npm\\bin\\npm-cli.js" "install" "oracledb" npm ERR! node v0.12.4 npm ERR!

Installation of Protractor 2.0 and MSBUILD error MSB3428

China☆狼群 提交于 2019-12-11 17:59:45
问题 I still have problem with the Protractor 2.0.0 installation on my Windows 8 box (first problem here : see How to have protractor reliable results? and Cannot install Protractor 2.0.0 : ENOENT in bufferutil while node-gyp rebuild). The error at npm install -g protractor is the following : $ npm install -g protractor npm http GET https://registry.npmjs.org/protractor npm http 304 https://registry.npmjs.org/protractor npm http GET https://registry.npmjs.org/jasmine npm http GET https://registry

Error while executing the “npm install” command in ubuntu 18.04 LTS

倾然丶 夕夏残阳落幕 提交于 2019-12-11 17:33:01
问题 I have been trying to install and run my first hyperledger fabric application (http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html) but have been encountering the following issue everytime I run the "npm install" command. Please let me know what is the solution to resolve this issue. The error is as follows: I have tried deleted .node-gyp, .npmrc folder from $HOME and restarting the computer.Nothing helped. 回答1: Faced a similar issue in Centos 7 and resolved by installing

Error installing npm package on Azure app service

青春壹個敷衍的年華 提交于 2019-12-11 17:21:50
问题 Was able to successfully build better-sqlite3 and integer@1.0.1 with npm install on Linux and Windows 7 without a problem. However have issue on Azure. Have following error: > npm install integer -dd �[37;40mnpm info it worked if it ends with ok �[37;40mnpm �[34;40mverb cli [ 'D:\\Program Files (x86)\\nodejs\\8.9.0\\node.exe', �[37;40mnpm �[34;40mverb cli 'D:\\Program Files (x86)\\npm\\5.5.1\\node_modules\\npm\\bin\\npm-cli.js', �[37;40mnpm �[34;40mverb cli 'install', �[37;40mnpm �[34;40mverb

Can not install node-gyp

夙愿已清 提交于 2019-12-11 07:22:59
问题 I can't install node-gyp in Windows 7. After many searches and trying many suggestions, I use (+), use npm install no-gyp-xml-stream . and in cmd (run as admin) this errors occurred: gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Enter prise\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\ npm\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at

Notifying javascript from a node.js native addon (c++)

廉价感情. 提交于 2019-12-11 05:51:03
问题 I do not have much knowledge about javascript. I have written in C++ a shared library that does certain things in a daemon thread. I needed this to be invoked from javascript. By using SWIG I've successfully able to generate a wrapper and compile my code along with it into .node module using node-gyp (wrote binding.gyp for it too). Now i can drop to node prompt and do something like: > var a = require("./module_name") > a.SomeCppFunction("SomeString") and wonderfully invoke the cpp functions,

Electron native addon failing on windows

两盒软妹~` 提交于 2019-12-11 05:37:02
问题 I have a native addon that uses openSSL library on a unpacked electron app. On a windows 10 it works and on a windows 7 it's not working , I am receiving this: Error: The specified module could not be found. \\?\C:\Program Files (x86)\AppX Player\resources\app\src\addon\foo.node at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20) at Object.Module._extensions..node (module.js:568:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js

How to use tfjs-node with libtensorflow that is built from source

假如想象 提交于 2019-12-11 01:08:55
问题 I see that it is possible to use libtensorflow that is built from source, as mentioned in the README https://github.com/tensorflow/tfjs-node#optional-build-libtensorflow-from-tensorflow-source I have successfully built from source, but I don't know how to let tfjs-node use this custom built version, instead of the pre-built one. 回答1: I found that the following workaround seems to work: Copy the file bazel-bin/tensorflow/libtensorflow.so from the tensorflow source directory to replace node