We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when i run npm install --save rc522 i received the following errors:
npm install --save rc522
npm WARN engine [email protected]: wanted: {"node":"0.12.9"} (current: {"node":"0.10.29","npm":"1.4.21"}) > [email protected] preinstall /home/pi/RFID/rc522-node/node_modules/rc522 > (node-gyp configure) || (exit 0) > [email protected] install /home/pi/RFID/rc522-node/node_modules/rc522 > (node-gyp rebuild) || (exit 0) make: Entering directory '/home/pi/RFID/rc522-node/node_modules/rc522/build' CC(target) Release/obj.target/rc522/src/rc522.o CC(target) Release/obj.target/rc522/src/rfid.o CXX(target) Release/obj.target/rc522/src/accessor.o ../src/accessor.cc:24:24: error: ‘FunctionCallbackInfo’ does not name a type void RunCallback(const FunctionCallbackInfo<Value>& args) { ^ ../src/accessor.cc:24:44: error: expected ‘,’ or ‘...’ before ‘<’ token void RunCallback(const FunctionCallbackInfo<Value>& args) { ^ ../src/accessor.cc: In function ‘void RunCallback(int)’: ../src/accessor.cc:26:30: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’ HandleScope scope(isolate); ^ ../src/accessor.cc:26:30: note: candidates are: In file included from /usr/include/nodejs/src/node.h:62:0, from ../src/accessor.cc:1: /usr/include/nodejs/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) HandleScope(const HandleScope&); ^ /usr/include/nodejs/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’ /usr/include/nodejs/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope() HandleScope(); ^ /usr/include/nodejs/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided ../src/accessor.cc:28:54: error: ‘args’ was not declared in this scope Local<Function> callback = Local<Function>::Cast(args[0]); ^ ../src/accessor.cc:70:17: error: ‘NewFromUtf8’ is not a member of ‘v8::String’ String::NewFromUtf8(isolate, &rfidChipSerialNumber[0]) ^ ../src/accessor.cc:73:37: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ callback->Call(isolate->GetCurrentContext()->Global(), argc, argv); ^ ../src/accessor.cc: In function ‘void Init(v8::Handle<v8::Object>, v8::Handle<v8::Object>)’: ../src/accessor.cc:89:51: error: no matching function for call to ‘SetMethod(v8::Handle<v8::Object>&, const char [8], void (&)(int))’ NODE_SET_METHOD(module, "exports", RunCallback); ^ ../src/accessor.cc:89:51: note: candidate is: In file included from ../src/accessor.cc:1:0: /usr/include/nodejs/src/node.h:112:6: note: template<class target_t> void node::SetMethod(target_t, const char*, v8::InvocationCallback) void SetMethod(target_t obj, const char* name, ^ /usr/include/nodejs/src/node.h:112:6: note: template argument deduction/substitution failed: ../src/accessor.cc:89:51: note: cannot convert ‘RunCallback’ (type ‘void(int)’) to type ‘v8::InvocationCallback {aka v8::Handle<v8::Value> (*)(const v8::Arguments&)}’ NODE_SET_METHOD(module, "exports", RunCallback); ^ rc522.target.mk:82: recipe for target 'Release/obj.target/rc522/src/accessor.o' failed make: *** [Release/obj.target/rc522/src/accessor.o] Error 1 make: Leaving directory '/home/pi/RFID/rc522-node/node_modules/rc522/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12) gyp ERR! System Linux 4.9.24-v7+ gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /home/pi/RFID/rc522-node/node_modules/rc522 gyp ERR! node -v v0.10.29 gyp ERR! node-gyp -v v0.12.2 gyp ERR! not ok [email protected] node_modules/rc522
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when i run
npm install --save rc522
i received the following errors:The text was updated successfully, but these errors were encountered: