Open TylerLeonhardt opened 7 years ago
FWIW, I also couldn't install this on Mac. Not sure if it's possible either:
> node-hid@0.3.2 preinstall /Users/tylerleonhardt/node_modules/.staging/node-hid-37aeac59
> sh get-hidapi.sh
Cloning into 'hidapi'...
remote: Counting objects: 2006, done.
remote: Total 2006 (delta 0), reused 0 (delta 0), pack-reused 2006
Receiving objects: 100% (2006/2006), 2.72 MiB | 1.76 MiB/s, done.
Resolving deltas: 100% (1174/1174), done.
> node-hid@0.3.2 install /Users/tylerleonhardt/node_modules/node-hid
> sh install.sh
CC(target) Release/obj.target/hidapi/hidapi/mac/hid.o
../hidapi/mac/hid.c:252:20: warning: comparison of integers of different signs: 'CFIndex' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
if (chars_copied == len)
~~~~~~~~~~~~ ^ ~~~
1 warning generated.
LIBTOOL-STATIC Release/hidapi.a
CXX(target) Release/obj.target/HID/src/HID.o
../src/HID.cc:50:79: error: no member named 'New' in 'v8::String'
virtual Handle<Value> asV8Exception() const { return ThrowException(String::New(message().c_str())); }
~~~~~~~~^
../src/HID.cc:57:12: error: expected class name
: public ObjectWrap
^
../src/HID.cc:61:38: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle<Value> devices(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/tylerleonhardt/.node-gyp/7.4.0/include/node/v8.h:148:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../src/HID.cc:76:34: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle<Value> New(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/tylerleonhardt/.node-gyp/7.4.0/include/node/v8.h:148:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../src/HID.cc:77:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle<Value> read(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/tylerleonhardt/.node-gyp/7.4.0/include/node/v8.h:148:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../src/HID.cc:78:36: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle<Value> write(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/tylerleonhardt/.node-gyp/7.4.0/include/node/v8.h:148:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../src/HID.cc:79:36: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle<Value> close(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/tylerleonhardt/.node-gyp/7.4.0/include/node/v8.h:148:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../src/HID.cc:80:45: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle<Value> setNonBlocking(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/tylerleonhardt/.node-gyp/7.4.0/include/node/v8.h:148:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../src/HID.cc:81:47: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle<Value> getFeatureReport(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/tylerleonhardt/.node-gyp/7.4.0/include/node/v8.h:148:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../src/HID.cc:83:48: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle<Value> sendFeatureReport(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/tylerleonhardt/.node-gyp/7.4.0/include/node/v8.h:148:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../src/HID.cc:86:25: error: unknown type name 'uv_work_t'
static void recvAsync(uv_work_t* req);
^
../src/HID.cc:87:29: error: unknown type name 'uv_work_t'
static void recvAsyncDone(uv_work_t* req);
^
../src/HID.cc:177:16: error: unknown type name 'uv_work_t'
HID::recvAsync(uv_work_t* req)
^
../src/HID.cc:195:40: error: no member named 'New' in 'v8::String'
argv[0] = Exception::Error(String::New(iocb->_error->message().c_str()));
~~~~~~~~^
../src/HID.cc:200:16: error: no member named 'GetCurrent' in 'v8::Context'
Context::GetCurrent()->Global()->Get(String::New("Buffer") )
~~~~~~~~~^
../src/HID.cc:200:52: error: no member named 'New' in 'v8::String'
Context::GetCurrent()->Global()->Get(String::New("Buffer") )
~~~~~~~~^
../src/HID.cc:203:68: error: too few arguments to function call, expected 2, have 1
Handle<Value> nodeBufferArgs[1] = { Integer::New(message.size()) };
~~~~~~~~~~~~ ^
/Users/tylerleonhardt/.node-gyp/7.4.0/include/node/v8.h:2541:3: note: 'New' declared here
static Local<Integer> New(Isolate* isolate, int32_t value);
^
../src/HID.cc:215:20: error: unknown type name 'uv_work_t'
HID::recvAsyncDone(uv_work_t* req)
^
../src/HID.cc:217:15: error: calling a protected constructor of class 'v8::HandleScope'
HandleScope scope;
^
/Users/tylerleonhardt/.node-gyp/7.4.0/include/node/v8.h:882:13: note: declared protected here
V8_INLINE HandleScope() {}
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/HID/src/HID.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: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 Darwin 16.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "install"
gyp ERR! cwd /Users/tylerleonhardt/node_modules/node-hid
gyp ERR! node -v v7.4.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@~0.4.1 (node_modules/noble/node_modules/bluetooth-hci-socket):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for bluetooth-hci-socket@0.4.4: wanted {"os":"linux,win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/Users/tylerleonhardt/package.json'
npm WARN tylerleonhardt No description
npm WARN tylerleonhardt No repository field.
npm WARN tylerleonhardt No README data
npm WARN tylerleonhardt No license field.
npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "blync"
npm ERR! node v7.4.0
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! node-hid@0.3.2 install: `sh install.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-hid@0.3.2 install script 'sh install.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-hid package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh install.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-hid
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-hid
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/tylerleonhardt/Desktop/CompSci/Javascript/Node.js/isthemountainout/npm-debug.log
Hi there,
Not sure if this is possible but I attempted to install this in an ubuntu docker container on macOS.
I received the following error:
Let me know what you think.
I appreciate any assistance!