build error with node-curl on aws
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<S> v8::Persistent<T>::New(v8::Handle<T>) [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<T>::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::on_write(char_, size_t)’: ../src/node-curl.h:198:117: warning: ‘static v8::Persistent<S> v8::Persistent<T>::New(v8::Handle<T>) [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::on_end(CURLMsg)’: ../src/node-curl.h:215:113: warning: ‘static v8::Persistent<S> v8::Persistent<T>::New(v8::Handle<T>) [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::on_error(CURLMsg_)’: ../src/node-curl.h:226:117: warning: ‘static v8::Persistent<S> v8::Persistent<T>::New(v8::Handle<T>) [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?
Were you able to fix this?