我无法安装node-libcurl模块
我正在尝试在Ubuntu上安装node-libcurl模块。 要安装,我正在使用以下命令:
npm install node-libcurl --save
但是我面临这个问题:
node-pre-gyp ERR! 试图下载(404): https : //github.com/JCMais/node-libcurl/releases/download/v1.1.0/node_libcurl-v1.1.0-node-v57-linux-x64.tar.gz
node-pre-gyp ERR! 未find针对node-libcurl@1.1.0和node@8.0.0(node-v57 ABI)的预构build二进制文件(使用node-gyp回退到源代码编译)
gyp ERR! configuration错误
gyp ERR! 堆栈错误:
gyp
失败,退出代码:1gyp ERR! 在ChildProcess.onCpExit(/home/myfolder/node_modules/node-gyp/lib/configure.js:308:16)
gyp ERR! 在emitTwo(events.js:125:13)
gyp ERR! 在ChildProcess.emit(events.js:213:7)
gyp ERR! 在Process.ChildProcess._handle.onexit(internal / child_process.js:197:12)
gyp ERR! 系统Linux 4.2.0-42-通用
gyp ERR! 命令“/ usr / local / bin / node”“/home/myfolder/node_modules/node-gyp/bin/node-gyp.js”“configure”“–fallback-to-build”“–module = / home /myfolder/node_modules/node-libcurl/lib/binding/node_libcurl.node“–module_name = node_libcurl”“–module_path = / home / myfolder / node_modules / node-libcurl / lib / binding”
gyp ERR! cwd / home / myfolder / node_modules / node-libcurl
gyp ERR! 节点-v v8.0.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! 不好
node-pre-gyp ERR! build立错误
node-pre-gyp ERR! 在emitTwo(events.js:125:13)
node-pre-gyp ERR! 在ChildProcess.emit(events.js:213:7)
node-pre-gyp ERR! stack at maybeClose(internal / child_process.js:887:16)
node-pre-gyp ERR! 在Process.ChildProcess._handle.onexit(internal / child_process.js:208:5)
node-pre-gyp ERR! 系统Linux 4.2.0-42-通用
node-pre-gyp ERR! 节点-v v8.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! 不好
npm ERR! 代码ELIFECYCLE
npm ERR! errno 1
npm ERR! node-libcurl@1.1.0 install:安装
node-pre-gyp install --fallback-to-build
npm ERR! 退出状态1
npm ERR!
npm ERR! 在node-libcurl@1.1.0安装脚本上失败。
任何人都可以帮助解决这个问题?
过了一段时间,我意识到libcurl没有安装在机器上。 之前我没有意识到,因为错误信息没有提到,所以还不清楚。
我解决了:
apt-get install libcurl4-openssl-dev
和:
npm install node-libcurl --build-from-source
- 如何告诉一个本地的node.js扩展名在哪里可以find(正确的)libstdc ++?
- 有没有办法在node-gyp命令行上指定编译器标志(例如,预处理器macros定义)?
- 在尝试加载binding.gyp时,调用'node findJavaHome.js'返回退出状态1.
- MAC OS X上的npm,node-gyp和gulp问题Yosemite 10.10.5
- npm安装mongoose:错误与节点gyp错误
- 节点gyp错误TRACKER:错误TRK0005:无法find:“CL.exe”。 该系统找不到指定的文件
- 当试图configuration或重buildnode-gyp时,出现错误:mac osx mavericks
- 用npm安装mmmagic时出错,node-gyp重build失败
- Contextify@0.1.3安装:`node-gyp rebuild`失败1