-
Notifications
You must be signed in to change notification settings - Fork 129
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
Labels
compatibilty: Node.js 11+
Issues related to the incompatibility with the current Node.js versions
Comments
same issue here here |
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
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?
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: 2gyp 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/[email protected] install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @pokusew/[email protected] install script.
The text was updated successfully, but these errors were encountered: