Skip to content
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

Local Example Install Errors #86

Closed
nchiles opened this issue Jun 12, 2019 · 2 comments · Fixed by pokusew/node-pcsclite#27
Closed

Local Example Install Errors #86

nchiles opened this issue Jun 12, 2019 · 2 comments · Fixed by pokusew/node-pcsclite#27
Assignees
Labels
compatibilty: Node.js 11+ Issues related to the incompatibility with the current Node.js versions

Comments

@nchiles
Copy link

nchiles commented Jun 12, 2019

I'm unable to install the example files locally. I've tried the solutions in this thread with no luck. Any ideas to fix the errors?

@pokusew/pcsclite@0.5.2 install /Users/natechiles/nfc-pcsc/node_modules/@pokusew/pcsclite
node-gyp rebuild

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::Handlev8::Object 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::Handlev8::Object target);
~~~~^
../src/cardreader.h:123:20: error: no template named 'Handle' in namespace 'v8'
static v8::Handlev8::Value CreateBufferInstance(char* data, un...
~~~~^
../src/addon.cpp:4:6: error: variable has incomplete type 'void'
void init_all(v8::Handlev8::Object target) {
^
../src/addon.cpp:4:36: error: expected '(' for function-style cast or type
construction
void init_all(v8::Handlev8::Object target) {
~~~~~~~~~~^
../src/addon.cpp:4:19: error: no member named 'Handle' in namespace 'v8'
void init_all(v8::Handlev8::Object target) {
~~~~^
../src/addon.cpp:4:38: error: use of undeclared identifier 'target'
void init_all(v8::Handlev8::Object target) {
^
../src/addon.cpp:4:45: error: expected ';' after top level declarator
void init_all(v8::Handlev8::Object target) {
^
;
8 errors generated.
make: *** [Release/obj.target/pcsclite/src/addon.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:200:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/Cellar/node/12.4.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/natechiles/nfc-pcsc/node_modules/@pokusew/pcsclite
gyp ERR! node -v v12.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @pokusew/pcsclite@0.5.2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @pokusew/pcsclite@0.5.2 install script.

@nchiles
Copy link
Author

nchiles commented Jun 12, 2019

same issue here here

@pokusew pokusew added the compatibilty: Node.js 11+ Issues related to the incompatibility with the current Node.js versions label Jan 25, 2020
@pokusew pokusew self-assigned this Jan 25, 2020
@pokusew
Copy link
Owner

pokusew commented Jan 26, 2020

@nchiles Fixed and released in version 0.8.0. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibilty: Node.js 11+ Issues related to the incompatibility with the current Node.js versions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants