-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
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
Unable to npm install #7
Comments
I get the same issue when trying to install using: node -v v0.12.6 Would love to understand how I can get this working. |
Tried it with node v4.2.2 and it fails to build |
same issue using: |
Did anyone find a resolution to this? I'm trying to use the rc522-rfid and get the following: pi@raspberrypi2:~/RFID/node_modules/rc522-rfid$ node-gyp rebuild |
No, I haven't solved it yet, but I took a different approach. Here you can find my repository (rfid-reader-http) to play with RFID. I'm using If you want to use this repository, you can have a look on the more recent and updated forks. Maybe they had solved this issue. |
Cannot install after following the pre-requisite steps... pi@raspberrypi:~ $ npm install --save rc522-rfid
make: Entering directory '/home/pi/node_modules/rc522-rfid/build' |
I'm just checking to see if anyone has found a solution? |
Any update? npm install --save rc522-rfid
> rc522-rfid@14.1.10 preinstall /home/otserv/sesamo/node_modules/.staging/rc522-rfid-713f50e7
> (node-gyp configure) || (exit 0)
> rc522-rfid@14.1.10 install /home/otserv/sesamo/node_modules/rc522-rfid
> (node-gyp rebuild) || (exit 0)
make: Entering directory '/home/otserv/sesamo/node_modules/rc522-rfid/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:33: error: 'Arguments' does not name a type
Handle<Value> RunCallback(const Arguments& args) {
^~~~~~~~~
../src/accessor.cc: In function 'v8::Handle<v8::Value> RunCallback(const int&)':
../src/accessor.cc:25:15: error: 'v8::HandleScope::HandleScope()' is protected within this context
HandleScope scope;
^~~~~
In file included from /home/otserv/.node-gyp/7.2.0/include/node/node.h:42:0,
from ../src/accessor.cc:1:
/home/otserv/.node-gyp/7.2.0/include/node/v8.h:882:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../src/accessor.cc:27:58: error: invalid types 'const int[int]' for array subscript
Local<Function> callback = Local<Function>::Cast(args[0]);
^
../src/accessor.cc:70:50: error: 'New' is not a member of 'v8::String'
Local<Value> argv[argc] = { Local<Value>::New(String::New(&rfidChipSerialNumber[1])) };
^~~~~~
../src/accessor.cc:71:19: error: 'GetCurrent' is not a member of 'v8::Context'
callback->Call(Context::GetCurrent()->Global(), argc, argv);
^~~~~~~
../src/accessor.cc:84:15: error: 'class v8::HandleScope' has no member named 'Close'
return scope.Close(Undefined());
^~~~~
../src/accessor.cc:84:31: error: too few arguments to function 'v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)'
return scope.Close(Undefined());
^
In file included from /home/otserv/.node-gyp/7.2.0/include/node/node.h:42:0,
from ../src/accessor.cc:1:
/home/otserv/.node-gyp/7.2.0/include/node/v8.h:325:27: note: declared here
friend Local<Primitive> Undefined(Isolate* isolate);
^~~~~~~~~
../src/accessor.cc: In function 'void Init(v8::Handle<v8::Object>, v8::Handle<v8::Object>)':
../src/accessor.cc:89:15: error: 'NewSymbol' is not a member of 'v8::String'
module->Set(String::NewSymbol("exports"), FunctionTemplate::New(RunCallback)->GetFunction());
^~~~~~
../src/accessor.cc:89:78: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))'
module->Set(String::NewSymbol("exports"), FunctionTemplate::New(RunCallback)->GetFunction());
^
In file included from /home/otserv/.node-gyp/7.2.0/include/node/node.h:42:0,
from ../src/accessor.cc:1:
/home/otserv/.node-gyp/7.2.0/include/node/v8.h:4510:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
static Local<FunctionTemplate> New(
^~~
/home/otserv/.node-gyp/7.2.0/include/node/v8.h:4510:34: note: no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}' to 'v8::Isolate*'
make: *** [rc522.target.mk:92: Release/obj.target/rc522/src/accessor.o] Error 1
make: Leaving directory '/home/otserv/sesamo/node_modules/rc522-rfid/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:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.35-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/otserv/sesamo/node_modules/rc522-rfid
gyp ERR! node -v v7.2.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
sesamo@1.0.0 /home/otserv/sesamo
`-- rc522-rfid@14.1.10
npm WARN sesamo@1.0.0 No description
npm WARN sesamo@1.0.0 No repository field.
npm WARN sesamo@1.0.0 license should be a valid SPDX license expression |
I install error too
|
Hi,
I'm trying to
npm install --save rc522-rfid
, but it gets broken compiling. Here is the output:The text was updated successfully, but these errors were encountered: