问题标签 [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.
node.js - 无法安装 npm 模块telldus-core-js
你好,如果你能帮助我在树莓派上构建telldus-core-js,我会很高兴。
我收到以下错误,无法弄清楚我做错了什么。
我要安装的模块是这个https://github.com/evilmachina/telldus-core-js和 npm install telldus-core-js -g
node.js - How to convert node-waf wscript to node-gyp binding.gyp
I am writing a C addon for nodejs, and I can compile and create my module with node-waf without any problem. But I need to use node-gyp and when I try to build the module using node-gyp build
I get the following error (node-gyp configure
finishes successfully):
I guess that my problem could be caused by the difference between my wscript
and binding.gyp
. Does anybody know how to convert this wscript
to binding.gyp
?
and my current binding.gyp
is:
If you think that the problem is caused by something else (other than config file), your idea is welcome.
node.js - 有没有办法在 node-gyp 命令行上指定编译器标志(例如,预处理器宏定义)?
我正在尝试将 Node.js 插件集成到基于 CMake 的现有构建系统中。插件构建需要 CMake 上下文中可用的大量预处理器宏定义和库依赖项。我希望能够在node-gyp
CMake 调用它时将它们传递给它。不幸的是,我还没有找到一个简单的方法来做到这一点。
我尝试过使用用于普通旧的方法,gyp
如下所示:
但该-D
选项似乎并没有被node-gyp
. 查看 的来源node-gyp
,这并不完全令人惊讶。有没有一种直接、直接的方法来做到这一点,还是我坚持以binding.gyp
编程方式生成条目,从环境中提取这些信息或其他类似的东西?
node.js - 如何通过环境变量设置 node-gyp 的 tarball url
我想使用自定义节点压缩包通过 node-gyp 构建节点模块,有没有办法通过环境变量或 node-gyp 或 npm 的一些配置文件来设置它?
visual-studio-2010 - 错误 MSB3411:无法加载 Visual C++ 组件“VCBuild.exe”
我有带有 SP1 和 Windows sdk 7.1 的 Visual Studio 2010。我也有 VS2012 和 Windows 套件 8。
当我运行Windows SDK 7.1 Command Prompt
并运行node-gyp build --msvs_version=2010
它给我错误:
它是否试图找到 VCBuild.exe。
这是一个有效的错误吗?
我还发现,在 Windows 7 中,对于 .NET 3.5,您只需从控制面板打开它。我已经查看了有关 stackoverflow 的其他问题,例如此处和此。
但问题是,既然 vcbuild.exe 在带有 vs2010 的系统中不存在,那么为什么 node-gyp 正在搜索它呢?还是我错过了什么?
我该如何解决这个错误?
c++ - std::shared_ptr 和 VS2010 实用程序
我的项目中有这两个功能:
我将它们转换为:
以及它们的每一次使用(&*V8StringToChar(whatever))
但它给了我错误:
我正在使用 node-gyp 在 Windows 中构建项目。
windows - 无法安装 node-postgres node.js 模块
请注意:
显然,问题在于 libpq.lib 未链接,因此在链接构建步骤中缺少引用。
但我不明白为什么存在问题。
我已经直接使用配置目标运行 gyp:
我不知道我是否应该在那里看到它,但是在这个输出中根本没有对 postgres 的引用。
这是 binding.gyp 文件(我的操作系统是 Windows 7):
配置应该是成功的,因为:
还是有问题。
如何解决此问题?
node.js - 如何在 binding.gyp node-gyp 中为 node.js 扩展添加对静态库的依赖
我有一个简单的 binding.gyp 文件来构建我的 node.js 扩展。我想更改库“mylib”的链接方法并静态链接它而不是使用共享库。
mylib 的静态和共享版本在同一目录中:
我想静态链接以避免库安装/加载问题。
angularjs - npm install -g karma error MSB4019: 未找到导入的项目“C:\Microsoft.Cpp.Default.props”
我一直在研究AngularJS并遵循其安装步骤,但运行步骤 #1 时出现错误:
这是完整的输出:
听起来正在运行的 MSBuild 版本(我相信是 12.0)没有正确解析文件$(VCTargetsPath)
中的变量vcxproj
。
node.js - 节点gyp:gyp错误!无法加载共享 libpython2.7.so.1.0
我正在尝试为节点 js 构建 hello world c++ 插件。node.js 和 node-gyp 似乎都已成功安装到 redhat linux 中。但是,当我运行“node-gyp configure”时,它给出了以下错误。我未能通过谷歌以及维基页面获得任何有见地的信息。你能请教吗?
我从源代码构建了 python 并进行了自定义安装。并且 libpython2.7.so.1.0 呈现在以下内容中:$PYTHONPATH 以及 $LD_LIBRARY_PATH。node 或 node-gyp 是否会为共享库搜索一个完全不同的环境?
提前致谢。
堆栈错误:
但是当我单独运行 python 时,它会很好地加载共享库:
另外,我的 binding.gyp 如下: