jiangmiao / node-curl

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

build error with node-curl on aws #17

Open alfredkam opened 11 years ago

alfredkam commented 11 years ago

Hey,

im running into this problem on a aws instance

when ever it requires node-curl, i run into : Error: Cannot find module '/home/ubuntu/node_modules/node-curl/lib/../build/default/node-curl'

running console.log on the error : Error: Module version mismatch. Expected 12, got 1.

there also appears a build error in "node_modules/node-curl/build" to repeat the error, i ran sudo make:

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: In constructor ‘NodeCurl::NodeCurl(v8::Handlev8::Object)’: ../src/node-curl.h:123:11: error: ‘class v8::Object’ has no member named ‘SetPointerInInternalField’ ../src/node-curl.h:124:50: warning: ‘static v8::Persistent v8::Persistent::New(v8::Handle) [with T = v8::Object]’ is deprecated (declared at /home/ubuntu/.node-gyp/0.11.3/deps/v8/include/v8.h:5514) [-Wdeprecated-declarations] ../src/node-curl.h:125:35: error: invalid conversion from ‘void ()(v8::Persistentv8::Value, void)’ to ‘void ()(v8::Isolate, v8::Persistentv8::Object, NodeCurl)’ [-fpermissive] /home/ubuntu/.node-gyp/0.11.3/deps/v8/include/v8.h:5593:6: error: initializing argument 2 of ‘void v8::Persistent::MakeWeak(P, typename v8::WeakReferenceCallbacks<T, P>::Revivable) [with P = NodeCurl, T = v8::Object, typename v8::WeakReferenceCallbacks<T, P>::Revivable = void ()(v8::Isolate, v8::Persistentv8::Object, NodeCurl)]’ [-fpermissive] ../src/node-curl.h: In static member function ‘static void NodeCurl::destructor(v8::Persistentv8::Value, void)’: ../src/node-curl.h:163:40: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’ ../src/node-curl.h: In member function ‘void NodeCurl::close()’: ../src/node-curl.h:169:11: error: ‘class v8::Object’ has no member named ‘SetPointerInInternalField’ ../src/node-curl.h: In static member function ‘static NodeCurl* NodeCurl::unwrap(v8::Handlev8::Object)’: ../src/node-curl.h:185:28: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’ ../src/node-curl.h: In member function ‘size_t NodeCurl::onwrite(char, sizet)’: ../src/node-curl.h:198:117: warning: ‘static v8::Persistent v8::Persistent::New(v8::Handle) [with T = v8::String]’ is deprecated (declared at /home/ubuntu/.node-gyp/0.11.3/deps/v8/include/v8.h:5514) [-Wdeprecated-declarations] ../src/node-curl.h:202:17: error: expected primary-expression before ‘’ token ../src/node-curl.h:202:19: error: ‘buffer’ was not declared in this scope ../src/node-curl.h: In member function ‘void NodeCurl::onend(CURLMsg)’: ../src/node-curl.h:215:113: warning: ‘static v8::Persistent v8::Persistent::New(v8::Handle) [with T = v8::String]’ is deprecated (declared at /home/ubuntu/.node-gyp/0.11.3/deps/v8/include/v8.h:5514) [-Wdeprecated-declarations] ../src/node-curl.h: In member function ‘void NodeCurl::onerror(CURLMsg)’: ../src/node-curl.h:226:117: warning: ‘static v8::Persistent v8::Persistent::New(v8::Handle) [with T = v8::String]’ is deprecated (declared at /home/ubuntu/.node-gyp/0.11.3/deps/v8/include/v8.h:5514) [-Wdeprecated-declarations] ../src/node-curl.h: In static member function ‘static NodeCurl* NodeCurl::unwrap(v8::Handlev8::Object)’: ../src/node-curl.h:186:2: warning: control reaches end of non-void function [-Wreturn-type] make: *\ [Release/obj.target/node-curl/src/node-curl.o] Error 1

able to help out?

Eduardo-Vargas commented 6 years ago

Were you able to fix this?