node-gyp

How to specify additional include directories for msbuild.exe

爱⌒轻易说出口 提交于 2019-12-22 07:02:55
问题 I am attempting to install the nodejs module ibm_db. The issue I am having is that in order to install this module node-gyp needs to build it using msbuild, but it won't detect some header files I have installed. How do I add the directory of my additional header files to some path so hatt msbuild.exe will find them when trying to compile any project? On linux I simply set cpath= and everything build just fine. Thanks! 回答1: MSBuild exposes special properties for resolving references in build

node-gyp on OSX 10.7.5 — dyld: lazy symbol binding failed: Symbol not found

扶醉桌前 提交于 2019-12-22 05:02:23
问题 I've searched quite a bit, and the closest thing I found to this same question was this (also unanswered) question: Symbol not found: _libintl_gettext I'm attempting to make a thin c++ wrapper for libpuzzle. $ node --version v0.8.18 $ npm --version 1.2.4 $ node-gyp --version v0.8.3 Source code on github Trying to build (I've hand shorted the paths with ...) $ node-gyp clean configure build && node test.js gyp info it worked if it ends with ok gyp info using node-gyp@0.8.3 gyp info using node

node.js app with node-gyp fails to deploy on azure website

▼魔方 西西 提交于 2019-12-22 03:43:25
问题 I have set up an Azure website and I am trying to use a sample application that relies on node-gyp. I am getting this: emote: > node-expat@2.0.0 install C:\DWASFiles\Sites\node-canvas\VirtualDirectory0\site\wwwroot\node_modules\node-salesforce\node_modules\xml2json\node_modules\node-expat remote: > node-gyp rebuild remote: remote: remote: C:\DWASFiles\Sites\node-canvas\VirtualDirectory0\site\wwwroot\node_modules\node-salesforce\node_modules\xml2json\node_modules\node-expat>node "D:\Program

Using Magick++ in a node.js application on heroku

和自甴很熟 提交于 2019-12-21 02:33:16
问题 I'm trying to push a Node app to heroku, but I am using imagemagick-native and it seems that Heroku is having an issue with Magick++ - I've tried using custom build packs but can't seem to find one that supports Magick++. (1) Is this the issue (2) Is there any solution to run Magick++ on Heorku? -----> Node.js app detected -----> Resolving engine versions Using Node.js version: 0.10.20 Using npm version: 1.3.11 -----> Fetching Node.js binaries -----> Vendoring node into slug -----> Installing

Building Autodesk Forge RCDB on Windows 10 fails with node-gyp errors

一笑奈何 提交于 2019-12-20 05:01:54
问题 While attempting to get the Forge Responsive Connected Database to build. I am unable to build this application on my Windows 10 machine. I am unable to succesffuly run “npm install”. I get the following errors as listed below. I ended up trying to use a pre-configured “canvas” and it still didn’t let the node app run. https://github.com/Autodesk-Forge/forge-rcdb.nodejs I have tried these solutions to no success: https://github.com/npm/npm/issues/14543 https://github.com/nodejs/node-gyp#on

npm install -g karma error MSB4019: The imported project “C:\Microsoft.Cpp.Default.props” was not found

跟風遠走 提交于 2019-12-17 10:29:18
问题 I've been looking into AngularJS and following its install steps, but I get an error running step #1: npm install -g karma Here is the full output: Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved. C:\Users\Travis>node --version v0.10.18 C:\Users\Travis>python --version Python 2.7.3 C:\Users\Travis>npm install -g karma npm http GET https://registry.npmjs.org/karma npm http 304 https://registry.npmjs.org/karma npm http GET https://registry.npmjs.org/di

node-gyp build error windows x64

强颜欢笑 提交于 2019-12-17 06:25:32
问题 Here's what I've done so far on my x64 OS: Installed Python (v2.7 --specifically 2.7.6) and added it to the system path (C:\Python27) Installed MS VS C++ 2010 Express Version (I already had VS 2012 but without the C++ component) Installed the compiler update for Windows SDK 7.1 Successfully executed node-gyp configure (from my add-on directory under nodejs\node_modules where binding.gyp is located) ran node-gyp build (as administrator)** This is what crashed, leaving me with: this error: C:

Can't find Python executable “/path/to/executable/python2.7”, you can set the PYTHON env variable

删除回忆录丶 提交于 2019-12-14 00:18:40
问题 bufferutil@1.2.1 install /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/bufferutil > node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "/path/to/executable/python2.7", you can set the PYTHON env variable . gyp ERR! stack at failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11 gyp ERR! stack at F (/usr/lib/node_modules

How to include c++ libraries so that node-gyp can link?

对着背影说爱祢 提交于 2019-12-13 13:05:48
问题 I am writing nodejs code and want to use C++ code (backend.cpp which includes 'mysql/mysql.h') using node-gyp to compile. I am getting this error while building: module.js:356 Module. extensions[extension](this, filename); ^ Error: ____/build/Release/backend.node: undefined symbol: mysql_init Can anyone help? How can I instruct node-gyp to link mysql.h to the target backend.node? 回答1: Have you added it in the libraries list in your binding.gyp file? Here's a short example: { "targets": [ {

Cannot find node-gyp

ぐ巨炮叔叔 提交于 2019-12-12 08:58:27
问题 I installed node v0.8.22 with homebrew. I have my node binary in /usr/local/bin/ but I need to recompile a node add-on with node-gyp but it cannot seem to find it in my PATH . I tried running npm install -g node-gyp but it's still not in my path. I noticed that npm -g installs everything into /usr/local/share/npm/bin/ . Does this mean I need to add this to my PATH ? 回答1: As j_mcnally recommends, you should try adding /usr/local/share/npm/bin/ to your path. There should be a symlink to node