问题标签 [node-gyp]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
windows-7-x64 - node-gyp 构建错误窗口 x64
到目前为止,这是我在 x64 操作系统上所做的:
- 安装 Python (v2.7 -- 特别是 2.7.6) 并将其添加到系统路径 (C:\Python27)
- 安装了 MS VS C++ 2010 Express 版本(我已经有 VS 2012 但没有 C++ 组件)
- 安装了 Windows SDK 7.1 的编译器更新
成功执行 node-gyp 配置(来自我在 nodejs\node_modules 下的附加目录 binding.gyp 所在的位置)
运行 node-gyp build(以管理员身份)** 这就是崩溃的原因,给我留下了:
这个错误:
链接:致命错误 LNK1181:无法打开输入文件 'kernel32.lib' [C:\Program Files\nodejs\node_modules\msnodesql\build\sqlserver.vcxproj]
关于发生了什么的任何想法?提前致谢!只是想将我的 node-sqlserver MS 驱动程序用于 Node.js
visual-studio-2010 - node-gyp:无法打开输入文件“kernel32.lib”
环境是:
Window server 2008 R2 Standard Service Pack1 Build 7601 (64bits) Node js: v.0.10.25 (64 bits) npm: 1.3.24
我正在使用 Visual Studio 2010 Express。几天来我一直在尝试构建一个模块......在https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup上关注了 wiki
我也尝试过Visual Studio 2010 express + win sdk = cannot open input file 'kernel32.lib'。我可以生成一个模块,但是当我尝试使用它时,我得到
node server.js module.js:356 Module._extensions[extension](this, filename); 错误: %1 不是有效的 Win32 应用程序。
我正在使用节点 v0.10.25(64 位版本)
任何帮助真的很受欢迎。
node.js - node-gyp 构建库依赖项
我想找到一种方法来简化 Node.js“ libtorrent ”模块的安装。
我的目标是能够为每个架构提供预编译的 .node 文件,例如在fiber模块中完成。
这样,用户就可以安装模块,而无需安装依赖项、编译等。
我的问题是:如果我想这样做,我是否需要在项目中包含所有依赖项(libtorrent 和一些 Boost 库)并使用 node-gyp 构建它们?或者,如果我在安装了这些依赖项的系统上构建模块,它们将包含在最终的 .node 文件中?
谢谢你的帮助。
c++ - Invalid deployment target for -stdlib=libc++ on OSX 10.8
I am compiling through node-gyp
a Node.JS package written in C++. When I compile it I receive the following error: clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
. I'm running on OSX 10.8, and I have installed the XCode Command Line Tools. This is the file used by node-gyp to compile the package:
Basically it specifies the target of the compilation, the type and the flags, as well as the sources.
Any idea on how I can solve this problem?
windows - NodeJS Windows node-gyp 构建失败
我尝试在 Windows 上安装任何需要 npm 安装的东西都会node-gyp
出现错误。我尝试重新安装 node-gyp github 页面上建议的所有 Windows 内容。
为什么我会收到这些错误?这是安装 mongodb 的尝试
c++ - 在 windows 上安装 node-gd
在过去的几个小时里,我试图node-gd
在 Windows 上运行。我尝试了几个 repos,终于找到了https://github.com/mikesmullin/node-gd。当我跑
我收到以下错误:
我以为我应该安装gd
lib,但是当我用谷歌搜索它时,几乎所有信息php_gd
都不是关于 lib 本身的。
我应该把gd
文件放在哪里?
编辑:我编译它!现在我得到:
node.js - sudo npm install bignum -g : OSError: [Errno 13] Permission denied
尝试安装时出现此错误bignum
。
系统信息:
nodejs PPA ppa:chris-lea/node.js
节点-v v0.10.26
npm -v 1.4.3
Ubuntu 12.04 2.6.32-042stab081.5
node.js - 如何为 msbuild.exe 指定其他包含目录
我正在尝试安装 nodejs 模块 ibm_db。我遇到的问题是,为了安装这个模块 node-gyp 需要使用 msbuild 构建它,但它不会检测到我安装的一些头文件。
如何将附加头文件的目录添加到某个路径,以便在尝试编译任何项目时 hatt msbuild.exe 会找到它们?在 linux 上,我简单地设置 cpath= 并且一切都构建得很好。
谢谢!
node.js - WebFaction Node.Js 上的 BCrypt 未安装
我的 Node.Js 应用程序依赖于 bcrypt。它在我的本地服务器上运行良好,但是当我关闭 WebFaction 服务器的存储库时,bcrypt 似乎不想在那里安装(或编译?)。
我尝试了两个 npm install
(它在 packages.json 依赖项中列出)以及
但这些都不起作用,我收到以下错误:
[...]
我还尝试在运行 npm -g install node-gyp 的服务器上安装新版本的 node-gyp
但它没有用。
支持没有响应。
我请求你的帮助。
谢谢!
node.js - 带有 dll 的 node-webkit 本机模块
我正在使用 node webkit 和node webkit hipster 种子
我已经使用 Leap Motion SDK 构建了一个本地 C++ 模块,它可以编译并与 node-gyp 一起正常工作。
现在我试图在 node webkit 上实现它,但是当我需要我的模块时,我总是得到“错误:没有错误”。(是的,它是用 nw-gyp 重新编译的)
当我尝试使用 node-gyp 没有leap sdk dll的模块时遇到了同样的错误,所以我尝试将我的dll移到模块构建目录和应用程序构建目录中,但没有效果。
我使用的是 Windows 8,但我也会在 OSx 上构建