jiangmiao / node-curl

node curl wrapper with fully implemented
https://npmjs.org/package/node-curl
MIT License
184 stars 28 forks source link

node-curl istall error #49

Open dibyendu-matteroftech opened 8 years ago

dibyendu-matteroftech commented 8 years ago

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 /

node-curl@0.3.3 install /home/ubuntu/node12/node_modules/node-curl sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)

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(-24096); ^ ../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 New(Isolate isolate); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2933:24: note: candidate expects 1 argument, 0 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:418:5: error: ‘NewSymbol’ is not a member of ‘v8::String’ v8::String::NewSymbol(option.name), ^ ../src/node-curl.h:419:34: error: no matching function for call to ‘v8::Integer::New(const int&)’ v8::Integer::New(option.value) ^ ../src/node-curl.h:419:34: 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:2499:25: note: static v8::Local v8::Integer::New(v8::Isolate, int32_t) static Local New(Isolate isolate, int32_t value); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:422:10: error: ‘NewSymbol’ is not a member of ‘v8::String’ t->Set(v8::String::NewSymbol(group_name), node_options); ^ ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::New(const int&)’: ../src/node-curl.h:428:21: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ new NodeCurl(args.This()); ^ ../src/node-curl.h:429: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::process(const int&)’: ../src/node-curl.h:472:66: error: no matching function for call to ‘v8::Integer::New(int)’ return v8::Integer::New(transfered + (int)(running_handles > 0)); ^ ../src/node-curl.h:472:66: 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:2499:25: note: static v8::Local v8::Integer::New(v8::Isolate, int32_t) static Local New(Isolate isolate, int32_t value); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::perform(const int&)’: ../src/node-curl.h:478:32: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ NodeCurl curl = unwrap(args.This()); ^ ../src/node-curl.h:493: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::get_count(const int&)’: ../src/node-curl.h:498:32: error: no matching function for call to ‘v8::Integer::New(int&)’ return v8::Integer::New(count); ^ ../src/node-curl.h:498:32: 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:2499:25: note: static v8::Local v8::Integer::New(v8::Isolate, int32_t) static Local New(Isolate isolate, int32_t value); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::Initialize(v8::Handle)’: ../src/node-curl.h:518:69: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle (&)(const int&))’ v8::Handle t = v8::FunctionTemplate::New(New); ^ ../src/node-curl.h:518:69: 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:4349:34: note: static v8::Local v8::FunctionTemplate::New(v8::Isolate, v8::FunctionCallback, v8::Local, v8::Local, int) static Local New( ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handle(const int&) {aka v8::Local(const int&)}’ to ‘v8::Isolate’ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:522:58: error: invalid conversion from ‘v8::Handle ()(const int&) {aka v8::Local ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ [-fpermissive] NODE_SET_PROTOTYPEMETHOD(t , "perform" , perform); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:523:61: error: invalid conversion from ‘v8::Handle ()(const int&) {aka v8::Local ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "setoptint" , setopt_int); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:524:61: error: invalid conversion from ‘v8::Handle ()(const int&) {aka v8::Local ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "setoptstr" , setopt_str); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:525:63: error: invalid conversion from ‘v8::Handle ()(const int&) {aka v8::Local ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "setoptslist" , setopt_slist); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:526:69: error: invalid conversion from ‘v8::Handle ()(const int&) {aka v8::Local ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "setopthttppost" , setopt_httppost); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:528:64: error: invalid conversion from ‘v8::Handle ()(const int&) {aka v8::Local ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "getinfoint" , getinfo_int); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:529:64: error: invalid conversion from ‘v8::Handle ()(const int&) {aka v8::Local ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "getinfostr" , getinfo_str); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:530:67: error: invalid conversion from ‘v8::Handle ()(const int&) {aka v8::Local ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "getinfodouble" , getinfo_double); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:531:66: error: invalid conversion from ‘v8::Handle ()(const int&) {aka v8::Local ()(const int&)}’ to ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "getinfoslist" , getinfo_slist); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:533:47: error: no matches converting function ‘close’ to type ‘v8::FunctionCallback {aka void ()(const class v8::FunctionCallbackInfo&)}’ NODE_SET_PROTOTYPEMETHOD(t, "close", close); ^ ../src/node-curl.h:178:31: note: candidates are: static v8::Handle NodeCurl::close(const int&) static v8::Handle close(const v8::Arguments & args) ^ ../src/node-curl.h:171:7: note: void NodeCurl::close() void close() ^ ../src/node-curl.h:535:44: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle&, const char [9], v8::Handle (&)(const int&))’ NODE_SETMETHOD(t , "process" , process); ^ ../src/node-curl.h:535:44: note: candidate is: In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note: template argument deduction/substitution failed: In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:535:44: note: cannot convert ‘NodeCurl::process’ (type ‘v8::Handle(const int&) {aka v8::Local(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ NODE_SETMETHOD(t , "process" , process); ^ ../src/node-curl.h:536:46: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle&, const char [10], v8::Handle (&)(const int&))’ NODE_SET_METHOD(t , "get_count" , get_count); ^ ../src/node-curl.h:536:46: note: candidate is: In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note: template argument deduction/substitution failed: In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:536:46: note: cannot convert ‘NodeCurl::get_count’ (type ‘v8::Handle(const int&) {aka v8::Local(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfo&)}’ NODE_SET_METHOD(t , "get_count" , get_count); ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:594:15: error: ‘NewSymbol’ is not a member of ‘v8::String’ target->Set(v8::String::NewSymbol("Curl"), t->GetFunction()); ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In instantiation of ‘static v8::Handle NodeCurl::getinfo(const int&) [with CType = long int; JsClass = v8::Integer; v8::Handle = v8::Local]’: ../src/node-curl.h:280:41: required from here ../src/node-curl.h:275:38: error: no matching function for call to ‘v8::Integer::New(long int&)’ return result ? JsClass::New(result) : v8::Null(); ^ ../src/node-curl.h:275:38: 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:2499:25: note: static v8::Local v8::Integer::New(v8::Isolate, int32_t) static Local New(Isolate isolate, int32_t value); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In instantiation of ‘static v8::Handle NodeCurl::getinfo(const int&) [with CType = char; JsClass = v8::String; v8::Handle = v8::Local]’: ../src/node-curl.h:285:40: required from here ../src/node-curl.h:275:38: error: ‘New’ is not a member of ‘v8::String’ return result ? JsClass::New(result) : v8::Null(); ^ ../src/node-curl.h: In instantiation of ‘static v8::Handle NodeCurl::getinfo(const int&) [with CType = double; JsClass = v8::Number; v8::Handle = v8::Local]’: ../src/node-curl.h:290:42: required from here ../src/node-curl.h:275:38: error: no matching function for call to ‘v8::Number::New(double&)’ ../src/node-curl.h:275:38: 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:2486:24: note: static v8::Local v8::Number::New(v8::Isolate, double) static Local New(Isolate isolate, double value); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2486:24: note: candidate expects 2 arguments, 1 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&) [with CType = double; JsClass = v8::Number; v8::Handle = v8::Local]’: ../src/node-curl.h:276:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::getinfo(const int&) [with CType = char; JsClass = v8::String; v8::Handle = v8::Local]’: ../src/node-curl.h:276:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::getinfo(const int&) [with CType = long int; JsClass = v8::Integer; v8::Handle = v8::Local]’: ../src/node-curl.h:276:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::setopt_httppost(const int&)’: ../src/node-curl.h:377:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::setopt_slist(const int&)’: ../src/node-curl.h:353:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::setopt_str(const int&)’: ../src/node-curl.h:345:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::setopt_int(const int&)’: ../src/node-curl.h:333:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::perform(const int&)’: ../src/node-curl.h:494:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle NodeCurl::raise(const char, const char*)’: ../src/node-curl.h:408:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [Release/obj.target/node-curl/src/node-curl.o] Error 1 make: Leaving directory/home/ubuntu/node12/node_modules/node-curl/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 3.13.0-48-generic gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/ubuntu/node12/node_modules/node-curl gyp ERR! node -v v4.2.2 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok sh: 1: node-waf: not found npm ERR! Linux 3.13.0-48-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-curl" "--save" npm ERR! node v4.2.2 npm ERR! npm v2.14.7 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn

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

boompig commented 8 years ago

I also have the same error

karlito40 commented 8 years ago

So do i

zirho commented 8 years ago

same here

flipflopsimsommer commented 8 years ago

me too, ubuntu 15.10

Audace commented 8 years ago

👍

joshtronic commented 8 years ago

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!!