Open dibyendu-matteroftech opened 8 years ago
I also have the same error
So do i
same here
me too, ubuntu 15.10
👍
This may help, I was having issues on Ubuntu 16.04 -- https://github.com/joshtronic/node-curl -- I submitted a PR but since I doubt it will get accepted you may just want to install from source:
npm install /path/to/joshtronic/node-curl
Also, was having issues with the OpenSSL version of libcurl4. Ended up swapping for the gnutls version
sudo apt-get install libcurl4-gnutls-dev
Hope this helps!!
Got following error when trying to run sudo npm install node-curl --save in AWS ubuntu 14.04
sudo npm install node-curl --save npm WARN package.json lattoApp@0.0.1 No repository field. npm WARN package.json lattoApp@0.0.1 No README data npm WARN package.json lattoApp@0.0.1 license should be a valid SPDX license expression /
extract constants from /usr/include/curl/curl.h generate src/integer_options.h generate src/string_options.h generate src/integer_infos.h generate src/string_infos.h generate src/double_infos.h make: Entering directory `/home/ubuntu/node12/node_modules/node-curl/build' CXX(target) Release/obj.target/node-curl/src/node-curl.o In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:178:43: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle close(const v8::Arguments & args)
^
../src/node-curl.h:178:59: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle close(const v8::Arguments & args)
^
../src/node-curl.h:265:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle getinfo(const v8::Arguments &args)
^
../src/node-curl.h:265:60: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle getinfo(const v8::Arguments &args)
^
../src/node-curl.h:278:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle getinfo_int(const v8::Arguments & args)
^
../src/node-curl.h:278:65: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle getinfo_int(const v8::Arguments & args)
^
../src/node-curl.h:283:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle getinfo_str(const v8::Arguments & args)
^
../src/node-curl.h:283:65: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle getinfo_str(const v8::Arguments & args)
^
../src/node-curl.h:288:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle getinfo_double(const v8::Arguments & args)
^
../src/node-curl.h:288:68: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle getinfo_double(const v8::Arguments & args)
^
../src/node-curl.h:293:51: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle getinfo_slist(const v8::Arguments & args)
^
../src/node-curl.h:293:67: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle getinfo_slist(const v8::Arguments & args)
^
../src/node-curl.h:330:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle setopt_int(const v8::Arguments & args)
^
../src/node-curl.h:330:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle setopt_int(const v8::Arguments & args)
^
../src/node-curl.h:335:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle setopt_str(const v8::Arguments & args)
^
../src/node-curl.h:335:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle setopt_str(const v8::Arguments & args)
^
../src/node-curl.h:347:50: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle setopt_slist(const v8::Arguments & args)
^
../src/node-curl.h:347:66: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle setopt_slist(const v8::Arguments & args)
^
../src/node-curl.h:355:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle setopt_httppost(const v8::Arguments & args)
^
../src/node-curl.h:355:69: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle setopt_httppost(const v8::Arguments & args)
^
../src/node-curl.h:426:41: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle New(const v8::Arguments & args)
^
../src/node-curl.h:426:57: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle New(const v8::Arguments & args)
^
../src/node-curl.h:433:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle process(const v8::Arguments & args)
^
../src/node-curl.h:433:61: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle process(const v8::Arguments & args)
^
../src/node-curl.h:476:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle perform(const v8::Arguments & args)
^
../src/node-curl.h:476:61: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle perform(const v8::Arguments & args)
^
../src/node-curl.h:496:47: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle get_count(const v8::Arguments & args )
^
../src/node-curl.h:496:63: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static v8::Handle get_count(const v8::Arguments & args )
^
../src/node-curl.h: In constructor ‘NodeCurl::NodeCurl(v8::Handle)’:
../src/node-curl.h:124:3: error: ‘AdjustAmountOfExternalAllocatedMemory’ is not a member of ‘v8::V8’
v8::V8::AdjustAmountOfExternalAllocatedMemory(24096);
^
../src/node-curl.h:125:11: error: ‘class v8::Object’ has no member named ‘SetPointerInInternalField’
object->SetPointerInInternalField(0, this);
^
../src/node-curl.h:126:50: error: no matching function for call to ‘v8::Persistent::New(v8::Handle&)’
handle = v8::Persistent::New(object);
^
../src/node-curl.h:126:50: note: candidate is:
In file included from ../src/node-curl.h:4:0,
from ../src/node-curl.cc:1:
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:7181:4: note: static T v8::PersistentBase::New(v8::Isolate, T) [with T = v8::Object]
T PersistentBase::New(Isolate isolate, T that) {
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:7181:4: note: candidate expects 2 arguments, 1 provided
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h:127:10: error: ‘class v8::Persistent’ has no member named ‘MakeWeak’
handle.MakeWeak(this, destructor);
^
../src/node-curl.h: In destructor ‘NodeCurl::~NodeCurl()’:
../src/node-curl.h:145:3: error: ‘AdjustAmountOfExternalAllocatedMemory’ is not a member of ‘v8::V8’
v8::V8::AdjustAmountOfExternalAllocatedMemory(-2 4096);
^
../src/node-curl.h: In static member function ‘static void NodeCurl::destructor(v8::Persistent, void)’:
../src/node-curl.h:166:40: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent’
v8::Handle object = value->ToObject();
^
../src/node-curl.h:167:40: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’
NodeCurl curl = (NodeCurl)object->GetPointerFromInternalField(0);
^
../src/node-curl.h: In member function ‘void NodeCurl::close()’:
../src/node-curl.h:173:9: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent’
handle->SetPointerInInternalField(0, NULL);
^
../src/node-curl.h:174:10: error: ‘class v8::Persistent’ has no member named ‘Dispose’
handle.Dispose();
^
../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::close(const int&)’:
../src/node-curl.h:180:38: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
NodeCurl node_curl = unwrap(args.This());
^
../src/node-curl.h:183:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
return args.This();
^
../src/node-curl.h: In static member function ‘static NodeCurl NodeCurl::unwrap(v8::Handle)’:
../src/node-curl.h:189:28: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’
return (NodeCurl )value->GetPointerFromInternalField(0);
^
../src/node-curl.h: In member function ‘size_t NodeCurl::on_write(char, size_t)’:
../src/node-curl.h:209:84: error: ‘NewSymbol’ is not a member of ‘v8::String’
static v8::Persistent SYM_ON_WRITE = v8::Persistent::New(v8::String::NewSymbol("on_write"));
^
../src/node-curl.h:210:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent’
v8::Handle cb = handle->Get(SYM_ON_WRITE);
^
../src/node-curl.h:213:17: error: expected primary-expression before ‘ ’ token
node::Buffer buffer = node::Buffer::New(data, n);
^
../src/node-curl.h:213:19: error: ‘buffer’ was not declared in this scope
node::Buffer buffer = node::Buffer::New(data, n);
^
../src/node-curl.h:213:53: error: no matching function for call to ‘New(char&, size_t&)’
node::Buffer buffer = node::Buffer::New(data, n);
^
../src/node-curl.h:213:53: note: candidates are:
In file included from ../src/node-curl.h:6:0,
from ../src/node-curl.cc:1:
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate, size_t)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate, size_t length);
^
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate’
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate, v8::Local, node::encoding)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate’
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate, char, size_t, node::Buffer::FreeCallback, void)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note: candidate expects 5 arguments, 2 provided
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate, char, size_t)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: candidate expects 3 arguments, 2 provided
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h:215:77: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent&, int, v8::Handle [1])’
v8::Handle rt = cb->ToObject()->CallAsFunction(handle, 1, argv);
^
../src/node-curl.h:215:77: note: candidates are:
In file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0,
from ../src/node-curl.h:4,
from ../src/node-curl.cc:1:
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local v8::Object::CallAsFunction(v8::Local, int, v8::Local )
Local CallAsFunction(Local recv, int argc,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
define V8_DEPRECATE_SOON(message, declarator) declarator
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: no known conversion for argument 1 from ‘v8::Persistent’ to ‘v8::Local’
Local CallAsFunction(Local recv, int argc,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
define V8_DEPRECATE_SOON(message, declarator) declarator
In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal v8::Object::CallAsFunction(v8::Local, v8::Local, int, v8::Local)
V8_WARN_UNUSED_RESULT MaybeLocal CallAsFunction(Local context,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: candidate expects 4 arguments, 3 provided
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h: In member function ‘size_t NodeCurl::on_header(char , size_t)’:
../src/node-curl.h:226:85: error: ‘NewSymbol’ is not a member of ‘v8::String’
static v8::Persistent SYM_ON_HEADER = v8::Persistent::New(v8::String::NewSymbol("on_header"));
^
../src/node-curl.h:227:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent’
v8::Handle cb = handle->Get(SYM_ON_HEADER);
^
../src/node-curl.h:230:17: error: expected primary-expression before ‘’ token
node::Buffer buffer = node::Buffer::New(data, n);
^
../src/node-curl.h:230:19: error: ‘buffer’ was not declared in this scope
node::Buffer buffer = node::Buffer::New(data, n);
^
../src/node-curl.h:230:53: error: no matching function for call to ‘New(char&, size_t&)’
node::Buffer buffer = node::Buffer::New(data, n);
^
../src/node-curl.h:230:53: note: candidates are:
In file included from ../src/node-curl.h:6:0,
from ../src/node-curl.cc:1:
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate , size_t)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate, size_t length);
^
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate’
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate , v8::Local, node::encoding)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate’
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate , char, size_t, node::Buffer::FreeCallback, void)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note: candidate expects 5 arguments, 2 provided
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate , char, size_t)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: candidate expects 3 arguments, 2 provided
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h:232:77: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent&, int, v8::Handle [1])’
v8::Handle rt = cb->ToObject()->CallAsFunction(handle, 1, argv);
^
../src/node-curl.h:232:77: note: candidates are:
In file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0,
from ../src/node-curl.h:4,
from ../src/node-curl.cc:1:
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local v8::Object::CallAsFunction(v8::Local, int, v8::Local*)
Local CallAsFunction(Local recv, int argc,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
define V8_DEPRECATE_SOON(message, declarator) declarator
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: no known conversion for argument 1 from ‘v8::Persistent’ to ‘v8::Local’
Local CallAsFunction(Local recv, int argc,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
define V8_DEPRECATE_SOON(message, declarator) declarator
In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal v8::Object::CallAsFunction(v8::Local, v8::Local, int, v8::Local)
V8_WARN_UNUSED_RESULT MaybeLocal CallAsFunction(Local context,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: candidate expects 4 arguments, 3 provided
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h: In member function ‘void NodeCurl::on_end(CURLMsg )’:
../src/node-curl.h:243:82: error: ‘NewSymbol’ is not a member of ‘v8::String’
static v8::Persistent SYM_ON_END = v8::Persistent::New(v8::String::NewSymbol("on_end"));
^
../src/node-curl.h:244:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent’
v8::Handle cb = handle->Get(SYM_ON_END);
^
../src/node-curl.h:248:50: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent&, int, v8::Handle [0])’
cb->ToObject()->CallAsFunction(handle, 0, argv);
^
../src/node-curl.h:248:50: note: candidates are:
In file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0,
from ../src/node-curl.h:4,
from ../src/node-curl.cc:1:
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local v8::Object::CallAsFunction(v8::Local, int, v8::Local*)
Local CallAsFunction(Local recv, int argc,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
define V8_DEPRECATE_SOON(message, declarator) declarator
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: no known conversion for argument 1 from ‘v8::Persistent’ to ‘v8::Local’
Local CallAsFunction(Local recv, int argc,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
define V8_DEPRECATE_SOON(message, declarator) declarator
In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal v8::Object::CallAsFunction(v8::Local, v8::Local, int, v8::Local)
V8_WARN_UNUSED_RESULT MaybeLocal CallAsFunction(Local context,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: candidate expects 4 arguments, 3 provided
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h: In member function ‘void NodeCurl::on_error(CURLMsg )’:
../src/node-curl.h:254:84: error: ‘NewSymbol’ is not a member of ‘v8::String’
static v8::Persistent SYM_ON_ERROR = v8::Persistent::New(v8::String::NewSymbol("on_error"));
^
../src/node-curl.h:255:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent’
v8::Handle cb = handle->Get(SYM_ON_ERROR);
^
../src/node-curl.h:258:57: error: ‘New’ is not a member of ‘v8::String’
v8::Handle argv[] = {v8::Exception::Error(v8::String::New(curl_easy_strerror(msg->data.result)))};
^
../src/node-curl.h:259:50: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent&, int, v8::Handle [1])’
cb->ToObject()->CallAsFunction(handle, 1, argv);
^
../src/node-curl.h:259:50: note: candidates are:
In file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0,
from ../src/node-curl.h:4,
from ../src/node-curl.cc:1:
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local v8::Object::CallAsFunction(v8::Local, int, v8::Local*)
Local CallAsFunction(Local recv, int argc,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
define V8_DEPRECATE_SOON(message, declarator) declarator
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: no known conversion for argument 1 from ‘v8::Persistent’ to ‘v8::Local’
Local CallAsFunction(Local recv, int argc,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’
define V8_DEPRECATE_SOON(message, declarator) declarator
In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal v8::Object::CallAsFunction(v8::Local, v8::Local, int, v8::Local)
V8_WARN_UNUSED_RESULT MaybeLocal CallAsFunction(Local context,
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: candidate expects 4 arguments, 3 provided
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::getinfo(const int&)’:
../src/node-curl.h:268:38: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
NodeCurl node_curl = unwrap(args.This());
^
../src/node-curl.h:269:35: error: invalid types ‘const int[int]’ for array subscript
CURLINFO info = (CURLINFO)args[0]->Int32Value();
^
../src/node-curl.h:275:51: error: too few arguments to function ‘v8::Local v8::Null(v8::Isolate)’
return result ? JsClass::New(result) : v8::Null();
^
In file included from ../src/node-curl.h:4:0,
from ../src/node-curl.cc:1:
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:8130:18: note: declared here
Local Null(Isolate isolate) {
^
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::getinfo_slist(const int&)’:
../src/node-curl.h:296:37: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
NodeCurl node_curl = unwrap(args.This());
^
../src/node-curl.h:297:35: error: invalid types ‘const int[int]’ for array subscript
CURLINFO info = (CURLINFO)args[0]->Int32Value();
^
../src/node-curl.h:303:48: error: no matching function for call to ‘v8::Array::New()’
v8::Handle array = v8::Array::New();
^
../src/node-curl.h:303:48: note: candidate is:
In file included from ../src/node-curl.h:4:0,
from ../src/node-curl.cc:1:
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2965:23: note: static v8::Local v8::Array::New(v8::Isolate , int)
static Local New(Isolate isolate, int length = 0);
^
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2965:23: note: candidate expects 2 arguments, 0 provided
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h:309:33: error: ‘New’ is not a member of ‘v8::String’
array->Set(array->Length(), v8::String::New(cur->data));
^
../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::setopt_int(const int&)’:
../src/node-curl.h:332:22: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
return unwrap(args.This())->setopt(args[0], args[1]->Int32Value());
^
../src/node-curl.h:332:44: error: invalid types ‘const int[int]’ for array subscript
return unwrap(args.This())->setopt(args[0], args[1]->Int32Value());
^
../src/node-curl.h:332:53: error: invalid types ‘const int[int]’ for array subscript
return unwrap(args.This())->setopt(args[0], args[1]->Int32Value());
^
../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::setopt_str(const int&)’:
../src/node-curl.h:339:40: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
NodeCurl node_curl = unwrap(args.This());
^
../src/node-curl.h:340:19: error: invalid types ‘const int[int]’ for array subscript
int key = args[0]->Int32Value();
^
../src/node-curl.h:341:37: error: invalid types ‘const int[int]’ for array subscript
v8::String::Utf8Value value(args[1]);
^
../src/node-curl.h:344:22: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
return unwrap(args.This())->setopt(args[0], node_curl->strings[key].c_str() );
^
../src/node-curl.h:344:44: error: invalid types ‘const int[int]’ for array subscript
return unwrap(args.This())->setopt(args[0], node_curl->strings[key].c_str() );
^
../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::setopt_slist(const int&)’:
../src/node-curl.h:349:40: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
NodeCurl node_curl = unwrap(args.This());
^
../src/node-curl.h:350:49: error: invalid types ‘const int[int]’ for array subscript
curl_slist slist = value_to_slist(args[1]);
^
../src/node-curl.h:352:34: error: invalid types ‘const int[int]’ for array subscript
return node_curl->setopt(args[0], slist);
^
../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::setopt_httppost(const int&)’:
../src/node-curl.h:357:38: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
NodeCurl node_curl = unwrap(args.This());
^
../src/node-curl.h:359:66: error: invalid types ‘const int[int]’ for array subscript
v8::Handle rows = v8::Handle::Cast(args[0]);
^
../src/node-curl.h:376:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
return args.This();
^
../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::raise(const char , const char)’:
../src/node-curl.h:407:10: error: ‘ThrowException’ is not a member of ‘v8’
return v8::ThrowException(v8::Exception::Error(v8::String::New(what)));
^
../src/node-curl.h:407:50: error: ‘New’ is not a member of ‘v8::String’
return v8::ThrowException(v8::Exception::Error(v8::String::New(what)));
^
../src/node-curl.h: In static member function ‘static void NodeCurl::export_curl_options(T, const char, NodeCurl::CurlOption, int)’:
../src/node-curl.h:413:57: error: no matching function for call to ‘v8::Object::New()’
v8::Handle node_options = v8::Object::New();
^
../src/node-curl.h:413:57: note: candidate is:
In file included from ../src/node-curl.h:4:0,
from ../src/node-curl.cc:1:
/home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2933:24: note: static v8::Local v8::Object::New(v8::Isolate )
static Local
npm ERR! node-curl@0.3.3 install:
sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)
npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the node-curl@0.3.3 install script 'sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)'. npm ERR! This is most likely a problem with the node-curl package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build) npm ERR! You can get their info via: npm ERR! npm owner ls node-curl npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/node12/npm-debug.log