santigimeno / node-pcsclite

Bindings over pcsclite to access Smart Cards
ISC License
170 stars 127 forks source link

Failed installation on OSX #89

Closed c0nstructer closed 5 years ago

c0nstructer commented 5 years ago

Hi,

I have issue output during npm i -S node-pcslite Here's the output

` CXX(target) Release/obj.target/pcsclite/src/addon.o In file included from ../src/addon.cpp:1: ../src/pcsclite.h:31:30: error: no template named 'Handle' in namespace 'v8' static void init(v8::Handle target);


In file included from ../src/addon.cpp:2:
../src/cardreader.h:90:30: error: no template named 'Handle' in namespace 'v8'
        static void init(v8::Handle<v8::Object> target);
                         ~~~~^
../src/cardreader.h:123:20: error: no template named 'Handle' in namespace 'v8'
        static v8::Handle<v8::Value> CreateBufferInstance(char* data, unsigned long size);
               ~~~~^
../src/addon.cpp:4:6: error: variable has incomplete type 'void'
void init_all(v8::Handle<v8::Object> target) {
     ^
../src/addon.cpp:4:36: error: expected '(' for function-style cast or type construction
void init_all(v8::Handle<v8::Object> target) {
                         ~~~~~~~~~~^
../src/addon.cpp:4:19: error: no member named 'Handle' in namespace 'v8'
void init_all(v8::Handle<v8::Object> target) {
              ~~~~^
../src/addon.cpp:4:38: error: use of undeclared identifier 'target'
void init_all(v8::Handle<v8::Object> target) {
                                     ^
../src/addon.cpp:4:45: error: expected ';' after top level declarator
void init_all(v8::Handle<v8::Object> target) {
                                            ^
                                            ;`

Node version is : 12.4.0