Tag: node gyp

在OSX上安装webpack和其他软件包时node-gyp rebuild失败

我在OS 10.10.13,节点v0.12.4和npm v2.10.1。 每当我运行以下命令安装webpack npm install webpack –save-dev –save-exact ,当node-gyp rebuild被调用时,我得到以下错误: > fsevents@0.3.6 install /Volumes/Macintosh HD/Users/ev_blurbs/Sites/products/react-week/new-app/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents > node-gyp rebuild SOLINK_MODULE(target) Release/.node SOLINK_MODULE(target) Release/.node: Finished CXX(target) Release/obj.target/fse/fsevents.o clang: error: no such file or directory: 'HD/Users/ev_blurbs/.node-gyp/0.12.4/src' clang: error: no such file or directory: 'HD/Users/ev_blurbs/.node-gyp/0.12.4/deps/uv/include' clang: error: no such file or directory: 'HD/Users/ev_blurbs/.node-gyp/0.12.4/deps/v8/include' make: *** [Release/obj.target/fse/fsevents.o] Error 1 […]

MAC OS X上的npm,node-gyp和gulp问题Yosemite 10.10.5

我在我的MAC上安装npm , node-gyp和gulp有问题。 我需要这个Laravel项目。 我在整个互联网做了我的研究,但是我找不到解决scheme为我工作。 似乎path出了问题。 我试过了: 通过网站nodejs.org安装节点/ npm,这似乎安装正常。 尝试使用node -v和npm -v所有内容都可以在全局访问。 通过自制程序安装npm。 也可以,但不会安装所有的依赖关系。 说到安装gulp和node-gyp,一切都出错了。 我尝试使用npm install -g gulp但我无法访问应用程序文件,也无法访问全局或通过安装path。 如果您需要更多信息,请告诉我! 非常感谢你的帮助! UPDATE 我已经按照这里的说明。 一切工作正常,直到我到了必须手动通过curl -L http://npmjs.org/install.sh | sh来安装npm的地步curl -L http://npmjs.org/install.sh | sh curl -L http://npmjs.org/install.sh | sh 。 我收到一条错误消息,说明SSL证书没有被validation。 尝试使用-k给我一个错误,找不到文件。 我也尝试下载shell脚本并从terminal手动运行它。 在这种情况下,它似乎做了一些事情,但它又引起了SSL证书的问题。

用npm安装socket.io

我安装了Python 2.7(3.4),并解决了一个错误。 然后,我安装了Windows 7 SDK,解决了另一个错误,但没有运气…我在这里读到,我不必安装Visual Studio以及…有人能给我一个解决scheme吗? 截图:

在尝试加载binding.gyp时,调用'node findJavaHome.js'返回退出状态1.

尝试在节点“npm install -g java”上安装java时,我不断收到此错误。 [node-java] Error: not found: javac gyp: Call to 'node findJavaHome.js' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack […]

在azure 32bit上安装nodejs sharp

我正在尝试将一个node.js项目部署到Azure Web Apps(免费层),并且它的一个依赖项是尖锐的: https : //github.com/lovell/sharp 在进行部署过程中,我得到: ERROR: Intel Architecture 32-bit systems require manual installation – please see http://sharp.dimens.io/en/stable/install/ gyp: Call to 'node -e "require('./binding').download_vips()"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at […]

用电子与电子

我试过的是将electron-usb库包含到我的电子项目中。 当我在我的index.html文件中以require('electron-usb')执行npm start时,在控制台中发生错误: Uncaught Error: The specified procedure could not be found. \\?\C:\Users\Me\Documents\GitHub\electron-quick-start-master\electron-quick-start-master\node_modules\electron-usb\build\Release\electron-v0.36-win32-x64\usb_bindings.node 这个错误发生在文件ELECTRON_ASAR.js 点击这里查看 我做错了什么? 我想我必须以某种方式configuration模块,它与电子,但我不知道如何。

在没有Visual Studio的情况下安装bcrypt

我试图通过npm来安装bcrypt ,并且Failed at the bcrypt@0.7.8 install script.出现Failed at the bcrypt@0.7.8 install script. 错误。 我在Windows 8 x64,节点版本0.10.29。 看着bcrypt的依赖关系告诉我需要node-gyp ,这显然需要visual studio 2012和python。 真的? 我真的需要安装一个完整的IDE,我不打算使用这个节点模块吗? 是编译器node-gyp之后,还是VS的一些其他小组件可以安装,这将做的伎俩? 会喜欢有关如何使这个工作尽可能less的额外的任何build议。

成功编译节点模块和“模块没有自行注册”。

我决定在Windows 8.1 32位下使用VS2015编译器和node-gyp编写Node的本地模块。 我使用这个页面的指示。 我search了互联网(包括StackOverflow)寻找解决我的问题。 我使用以下版本: 节点:4.6.0 Node-gyp:3.4.0 模块的源代码: // main.c++ #include <node.h> #include <v8.h> void Method(const v8::FunctionCallbackInfo<v8::Value>& args) { v8::Isolate* isolate = args.GetIsolate(); v8::HandleScope scope(isolate); args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world")); } void init(v8::Local<v8::Object> target) { NODE_SET_METHOD(target, "hello", Method); } NODE_MODULE(sapphire, init); // binding.gyp { "targets": [ { "target_name": "sapphire", "sources": [ "main.c++" ] } ] } 每次编译(在addon的源代码文件夹内调用node-gyp […]

堆栈“错误:证书链中的自签名证书”当试图build立“节点gypconfiguration”

当试图构buildsqlj的nodejs的微软驱动时,我得到了下面的错误 gyp信息它工作,如果它结束与好 gyp info使用node-gyp@3.2.1 gyp info使用node@5.3.0 | win32 | 64位 gyp http GET https://nodejs.org/download/release/v5.3.0/node-v5.3.0-headers.tar.gz gyp WARN安装出现错误,回滚安装 gyp ERR! configuration错误 gyp ERR! 堆栈错误:证书链中的自签名证书 gyp ERR! 在错误堆栈(本地) gyp ERR! 堆在TLSSocket。 (_tls_wrap.js:1057:38) gyp ERR! 在emitNone(events.js:67:13) gyp ERR! 在TLSSocket.emit(events.js:166:7) gyp ERR! 在TLSSocket._fini堆栈enter code here shInit gyp ERR! 不好 ” 我试着用下面的解决方法,但它力气工作 1) upgrade your version of npm npm install npm […]

如何解决NPM安装错误?

我正在将我的网站从Cloud9迁移到DigitalOcean。 大多数组件似乎已经安装(尽pipe无法findase-tools和node-gd),但有一些东西无法正常工作,安装时出现这些错误。 root@lospec:~/lospec# npm install npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN prefer global node-gyp@3.3.1 should be installed with -g > node-gd@1.4.0 install /root/lospec/node_modules/node-gd > node-gyp […]