Tag: node libcurl

我无法安装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失败,退出代码:1 gyp 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 […]

TypeError:curl.setopt不是函数]

我是一个新手,并试图创build一个基于poloniex.js API的应用程序获取错误 – types错误:curl.setopt不是一个函数]设置节点curl(不工作)和节点libcurl(部分工作,但function似乎不正确表示)在两个curl之间稍微混淆)node-curl已经过时了,也许这就是问题 – 你能告诉什么是错的吗? 'use strict'; var autobahn = require('autobahn'), crypto = require('crypto'), async = require('async'), https = require('https'), nonce = require('nonce')(), querystring = require('querystring'), Curl = require('node-libcurl').Curl, microtime = require('microtime'), events = require('events'), util = require('util'); var Poloniex = function Poloniex() {}; Poloniex._query_tradeApi = function (req, callback) { var post_data, hash = […]