node-gyp

Cross-compile node module with native bindings with node-gyp

喜你入骨 提交于 2019-12-03 15:08:00
问题 I'm using AWS Lambda, which involves creating an archive of my node.js script, including the node_modules folder and uploading that to their infrastructure to run. This works fine, except when it comes to node modules with native bindings (using node-gyp). Because the binding was complied and project archived on my local computer (OS X), it is not compatible with AWS's (Amazon Linux) servers. How can I cross-compile/install a node module (specifically, node-sqlite3) so when I upload it to

npm audit Arbitrary File Overwrite

梦想的初衷 提交于 2019-12-03 12:43:06
问题 I recently updated my version of angular using ng update and when running npm audit it found 1 high severity vulnerability but offered no suggestions on how to resolve it. It usually suggests to upgrade a package from package.json like: "angular-devkit/build-angular" but I am already using their latest version. === npm audit security report === Manual Review Some vulnerabilities require your attention to resolve Visit https://go.npm.me/audit-guide for additional guidance High Arbitrary File

npm install mongoose fails (kerberos and bson errors)

丶灬走出姿态 提交于 2019-12-03 09:37:15
So I'm attempting to launch my node app, but there's a few errors arising from my MongoDB installation. Here are the specs for my dev environment: node => 0.10.33 (installed from nodejs.org) npm => 1.4.28 (installed from nodejs.org) git => 2.1.3 (homebrewed) mongodb => 2.6.5 (homebrewed) If it makes a difference, I am also using the Mean Stack Skeleton as part of a tutorial. In a nutshell, when I try to run my node app using $ node app.js , I get the following feedback: USER$ npm install mongoose > kerberos@0.0.4 install /Users/USER/APP/node_modules/mongoose/node_modules/mongodb/node_modules

How to debug binary module of nodejs?

时光怂恿深爱的人放手 提交于 2019-12-03 08:39:34
问题 I have a node.js module written in C++ that provides some bindings for a C++ library. The library crashes with SIGSEGV, so I need to debug it with GDB and find out what goes wrong. I already have the source for the module in ./node_modules/somelib/ and if I go to that folder and type npm install the library is compiled and can be used through a require('somelib') from node.js. I can attach gdb to node and reproduce the error, but in the stacktrace I just see node_modules/somelib/Release

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

断了今生、忘了曾经 提交于 2019-12-03 07:56:49
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 dependencies with npm npm WARN package.json upload@0.1.3 'repositories' (plural) Not supported. npm

npm install error: “The build tools for v120 (Platform Toolset = 'v120') cannot be found”

佐手、 提交于 2019-12-03 04:24:56
问题 While running an npm install that required a node-gyp rebuild, the following build error was thrown: MSB8020: The build tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install v120 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution" System Information Windows 10 (x64) Visual Studio 2015 node v0.12.7 npm v2.11.3

NPM install fails with node-gyp

此生再无相见时 提交于 2019-12-03 04:23:35
问题 We are having problems running "npm install" on our project. A certain file cannot be found : fatal error C1083: Cannot open include file: 'windows.h' It appears to be coming from the node-gyp module : c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_lo ad_hook.c(13): fatal error C1083: Cannot open include file: 'windows.h': No suc h file or directory [D:\ngs-frontend-next\node_modules\browser-sync\node_module s\socket.io\node_modules\engine.io\node_modules\ws\node

What is node-gyp

做~自己de王妃 提交于 2019-12-03 02:59:35
问题 Can anyone explain me what is node-gyp and why it uses my system files to build Node.JS packages. If Ii build a node project and it used node-gyp internally. Then I just tar that project and moved to a different system I untar it there and try to use it Will this approach work? 回答1: node-gyp is a tool which compiles Node.js Addons. Node.js Addons are native Node.js Modules, written in C or C++, which therefore need to be compiled on your machine. After they are compiled with tools like node

npm audit Arbitrary File Overwrite

有些话、适合烂在心里 提交于 2019-12-03 02:21:02
I recently updated my version of angular using ng update and when running npm audit it found 1 high severity vulnerability but offered no suggestions on how to resolve it. It usually suggests to upgrade a package from package.json like: "angular-devkit/build-angular" but I am already using their latest version. === npm audit security report === Manual Review Some vulnerabilities require your attention to resolve Visit https://go.npm.me/audit-guide for additional guidance High Arbitrary File Overwrite Package tar Patched in >=4.4.2 Dependency of @angular-devkit/build-angular [dev] Path @angular

when trying to configure or rebuild node-gyp, getting errors: mac osx mavericks

依然范特西╮ 提交于 2019-12-03 01:07:41
I'm trying to run node-gyp configure , but am getting the following errors: gyp: binding.gyp not found (cwd: /usr/local/bin) gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:337:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12) gyp ERR! System Darwin 13.0.0 gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure" gyp ERR! cwd /usr/local/bin gyp ERR! node -v v0.10.20