Tag: gyp

Fibers / Node-Gyp悬挂在纱线上

看起来像wdio纤维作为依赖,它使用node-gyp,显然不会在没有Python 2.7的Windows上运行。 现在,我已经安装了,我没有得到“失踪的PYTHON”错误,但它永远挂在任何命令正在做 – 纤维。

node-gyp构build库依赖关系

我想find一种方法来简化Node.js“ libtorrent ”模块的安装。 我的目标是能够为每个体系结构提供预编译的.node文件,例如在光纤模块中完成。 这样,用户就可以安装模块而不需要安装依赖关系,编译等。 我的问题是:如果我想这样做,是否需要在项目中包含所有依赖关系(libtorrent和一些Boost库),并使用node-gyp构build它们? 或者如果我在我的系统上安装了这些依赖关系的模块,它们将被包含在最终的.node文件中? 谢谢你的帮助。

在OpenShift上找不到模块'../build/Debug/iconv.node'

我试图在OpenShift上部署一个叫做Jingo的Node.js Wiki: Error: Cannot find module '../build/Debug/iconv.node' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/var/lib/openshift/550a72cf5973cac5c10000ca/app-root/runtime/repo/node_modules/icon at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) DEBUG: Program node jingo -c config.yaml exited with code 8 我试过在命令行上运行node-gyp configure和node-gyp build,但是我没有足够的权限。 我也试过在package.json文件中包含node-gyp configure和node-gyp build作为安装脚本,但是得到以下错误: remote: > […]

node-gyp – 找不到库标题

我正在尝试在我的节点插件中使用gstreamer框架。 我有以下我的我的binding.gyp,但是当我运行生成命令它,控制台指出找不到标题。 当我编译我的gstreamer文件之外的节点gyp,它编译成功。 有没有人看到我的绑定文件有什么问题? 安慰 hello.cc3:25: fatal error: gstreamermm.h: No such file or directory binding.gyp { "targets": [ { "target_name": "addon", "libraries": [ "-lgstreamer-1.0", "-L/usr/inlcude/gstreamer-1.0/gst/" ], "sources": [ "hello.cc" ] } ] } 编译命令工作正常,我试图运行 g++ main.c -o main `pkg-config –cflags –libs gstreamer-1.0` 更新:继@Mike Kinghan binding.gyp

npm install <module>持久性错误? (node-gyp构build?)

我尝试安装jsdom这样的: $ sudo npm install -g jsdom # OR $ sudo npm install jsdom 在一些成功的命令之后,安装很快失败,第一个错误消息在[….] : $ sudo npm install jsdom npm http GET https://registry.npmjs.org/jsdom npm http 304 https://registry.npmjs.org/jsdom [….] > contextify@0.1.7 install /home/yug/Desktop/QGis/WikiAtlas/1_shaded_relief/test/node_modules/jsdom/node_modules/contextify > node-gyp rebuild gyp: /home/yug/.node-gyp/0.10.25/common.gypi not found (cwd: /home/yug/Desktop/QGis/WikiAtlas/1_shaded_relief/test/node_modules/jsdom/node_modules/contextify) while reading includes of binding.gyp gyp ERR! configure error gyp ERR! stack […]

gyp – 如何指定链接库的风格

我正在编写一个本地节点模块,我希望能够在发行版和debugging版本中构build它。 节点模块链接到另一个库,该库在两个不同的目录中具有debugging版本和发行版本。 现在,这是我被卡住的地方 – 我如何指定目前正在构build的configuration库目录? 我已经尝试在configurations.debug.link_settings键中设置,但是我得到错误:'在debuggingconfiguration中不允许link_settings,在目标binding.gyp中find

无法在NodeJS中使用本机Windows库

我正在尝试编写一个简单的使用Windows原生通知的Electron应用程序。 为了这个用途,我依靠电子窗口交互式通知 。 当我运行npm install并且在我的项目中进行了electron-rebuild之后,我得到: App threw an error during load Error: The specified module could not be found. \\?\C:\Users\moro\projects\tw-en-ty\node_modules\electron-windows-interactive-notifications\build\Release\notifications_bindings.node at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20) at Object.Module._extensions..node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at bindings […]

安装contextify-node-gyp重build失败时出错

编辑 我升级了节点并运行了“npm install -g contextify”它看起来好像安装的很好(没有错误),但是input“哪个比较”没有任何回报。 安装文章时的消息: npm http GET https://registry.npmjs.org/contextify npm http 304 https://registry.npmjs.org/contextify npm http GET https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/bindings > contextify@0.1.6 install /usr/local/share/npm/lib/node_modules/contextify > node-gyp rebuild CXX(target) Release/obj.target/contextify/src/contextify.o SOLINK_MODULE(target) Release/contextify.node SOLINK_MODULE(target) Release/contextify.node: Finished contextify@0.1.6 /usr/local/share/npm/lib/node_modules/contextify └── bindings@1.1.1 原版的 我遇到了一个问题,用npm安装symxtify: npm install -g contextify 并获得以下错误消息: npm http GET https://registry.npmjs.org/contextify npm http 304 https://registry.npmjs.org/contextify […]