GYP

sass-loader 出现 gyp verb which failed Error:not found: python2 错误

旧街凉风 提交于 2019-12-05 02:33:16
 在使用 npm rebuild sass-loader 出现 gyp verb which failed Error:not found: python2 错误,通过设置 npm 环境变量 $ npm set SKIP_SASS_BINARY_DOWNLOAD_FOR_CI = true $ npm set SKIP_NODE_SASS_TESTS = true 然后重新 npm rebuild sass-loader 既可 来源: https://my.oschina.net/jamesview/blog/3131783

Build googles v8 as shared library on windows?

 ̄綄美尐妖づ 提交于 2019-12-04 20:45:39
问题 Is it possible to build googles v8 as a shared library with gyp on windows (msvc 2012)? Everything I tried doesn't work. What I've tried: python build\gyp_v8 -Dcomponent=shared_library python build\gyp_v8 library=shared The second one gives an error that "library" is unknown. The first one does not have any effect. 回答1: This works in a project I'm using: python build\gyp_v8 -Dtarget_arch=ia32 -Dcomponent=shared_library msbuild /p:Configuration=Release /p:Platform=Win32 tools\gyp\v8.sln 来源:

Using shared library in Gyp in node-sqlite3

六月ゝ 毕业季﹏ 提交于 2019-12-04 12:32:23
问题 I'm new to Gyp. Instead of compiling my dependency, I would like to use a shared library, in particular, the libsqlite3.so which is already on my machine. The main binding.gyp currently looks like { 'targets': [ { 'target_name': 'node_sqlite3', 'sources': [ 'src/database.cc', 'src/node_sqlite3.cc', 'src/statement.cc' ], 'dependencies': [ 'deps/sqlite3/binding.gyp:sqlite3' ] } ] } How do I change this so that a shared sqlite3 library is used? The binding.gyp in the deps folder has a section

Build googles v8 as shared library on windows?

一个人想着一个人 提交于 2019-12-03 12:45:53
Is it possible to build googles v8 as a shared library with gyp on windows (msvc 2012)? Everything I tried doesn't work. What I've tried: python build\gyp_v8 -Dcomponent=shared_library python build\gyp_v8 library=shared The second one gives an error that "library" is unknown. The first one does not have any effect. This works in a project I'm using: python build\gyp_v8 -Dtarget_arch=ia32 -Dcomponent=shared_library msbuild /p:Configuration=Release /p:Platform=Win32 tools\gyp\v8.sln 来源: https://stackoverflow.com/questions/14916272/build-googles-v8-as-shared-library-on-windows

Using shared library in Gyp in node-sqlite3

与世无争的帅哥 提交于 2019-12-03 08:55:18
I'm new to Gyp. Instead of compiling my dependency, I would like to use a shared library, in particular, the libsqlite3.so which is already on my machine. The main binding.gyp currently looks like { 'targets': [ { 'target_name': 'node_sqlite3', 'sources': [ 'src/database.cc', 'src/node_sqlite3.cc', 'src/statement.cc' ], 'dependencies': [ 'deps/sqlite3/binding.gyp:sqlite3' ] } ] } How do I change this so that a shared sqlite3 library is used? The binding.gyp in the deps folder has a section that looks like below. I don't think I need gyp to do any compilation of sqlite3 for me, so switching

Node.js C++扩展实现

一曲冷凌霜 提交于 2019-12-02 03:32:56
因为有了Node.js,JavaScript可以被用于服务端编程。通过各种扩展,Node.js可以变得非常强大。今天分享下怎样用C++创建Node.js扩展。 参考原文: Making Dynamsoft Barcode SDK an Addon for Node.js 搭建Nodejs开发环境 要构建扩展,需要安装 node-gyp : npm install -g node-gyp 这个库里面包涵了JavaScript v8引擎所需要的头文件以及依赖库。 创建一个C/C++文件 dbr.cc 以及配置文件 binding.gyp 。打开配置文件,在里面加入扩展名和源代码文件: { "targets": [ { "target_name": "dbr", "sources": [ "dbr.cc" ] } ] } 现在就可以用来构建 dbr.node ,用于Node.js的动态链接库,相当于DLL。在命令行中输入: node-gyp configure install 这行命令干了两件事,首先生成了Visual Studio的工程文件。然后调用VS的编译器生成了动态链接库。可以看下生成的文件结构: build / binding.sln / dbr.vcxproj / dbr.vcxproj.filters / config.gypi / Release / dbr.node /

GYP ERR! build error. stack Error: 'make' failed with exit code 2

拈花ヽ惹草 提交于 2019-12-01 15:04:22
I am currently working on a nodejs web application I am having trouble pushing the application online with cloud foundry. I did some research on the errors and it seems that maybe some of the packages being installed have some conflicts. This is the package.json file. { "dependencies": { "c3": "^0.4.12", "cfenv": "1.0.0", "cloudant": "^1.8.0", "dygraphs": "^2.0.0", "express": "4.5.1", "getmac": "1.0.6", "http": "0.0.0", "mqtt": "1.0.5", "properties": "1.2.1", "save": "^2.3.0", "sockjs": "0.3.9", "websocket-multiplex": "0.1.x" }, "description": "description.", "license": "UNLICENSED", "main":

GYP ERR! build error. stack Error: 'make' failed with exit code 2

◇◆丶佛笑我妖孽 提交于 2019-12-01 13:51:11
问题 I am currently working on a nodejs web application I am having trouble pushing the application online with cloud foundry. I did some research on the errors and it seems that maybe some of the packages being installed have some conflicts. This is the package.json file. { "dependencies": { "c3": "^0.4.12", "cfenv": "1.0.0", "cloudant": "^1.8.0", "dygraphs": "^2.0.0", "express": "4.5.1", "getmac": "1.0.6", "http": "0.0.0", "mqtt": "1.0.5", "properties": "1.2.1", "save": "^2.3.0", "sockjs": "0.3

nodejieba 的安装

北战南征 提交于 2019-11-30 18:03:23
//首先安装python环境,安装完成后重新起动cmd,让python环境变量起作用 1、npm install --global --production windows-build-tools 2、npm install --g node-gyp //安装node-gyp 3、cnpm install nodejieba //注意使用cnpm 参考: 1、 https://www.awesomes.cn/repo/yanyiwu/nodejieba 2、ICTPOS汉语词性标记集: https://wenku.baidu.com/view/72b03002eff9aef8941e068e.html 来源: https://my.oschina.net/jsjapp/blog/3113343