Skip to content

Instantly share code, notes, and snippets.

@grundyoso
Created April 15, 2017 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grundyoso/abde94d93d937c9ee6a2ba55d9dd1e20 to your computer and use it in GitHub Desktop.
Save grundyoso/abde94d93d937c9ee6a2ba55d9dd1e20 to your computer and use it in GitHub Desktop.
pi@raspberrypi:~/Documents/Visa $ npm install node-hid
[ ....] - extract:nan: verb gentlyRm don't care about contents; nuking /home/pi[ ....] | extract:nan: verb gentlyRm don't care about contents; nuking /hom[ ....] - extract:nan: verb gentlyRm don't care about contents; nuking /ho[ ....] | extract:nan: verb gentlyRm don't care about contents; nuking /[ ....] \ extract:nan: verb gentlyRm don't care about contents; nuking[ [ [ [ [ [ [ [ [ [ [ [ [ [ ....] \ extract:nan: verb gentlyRm don't care about contents; nuking /home/pi/nod[ ....] \ extract:nan: verb gentlyRm don't care about contents; nuking /home/pi/n[ ....] / extract:nan: verb gentlyRm don't care about contents; nuking /home/pi
> node-hid@0.5.4 install /home/pi/node_modules/node-hid
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/node-hid/node-hid/releases/download/0.5.4/HID-v0.5.4-node-v51-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-hid@0.5.4 and node@7.9.0 (node-v51 ABI) (falling back to source compile with node-gyp)
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/pi/node_modules/node-hid/build'
CC(target) Release/obj.target/hidapi/hidapi/libusb/hid.o
../hidapi/libusb/hid.c: In function ‘hid_read_timeout’:
../hidapi/libusb/hid.c:1078:6: warning: variable ‘bytes_read’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
int bytes_read = -1;
^
AR(target) Release/obj.target/hidapi.a
COPY Release/hidapi.a
CXX(target) Release/obj.target/HID/src/HID.o
../src/HID.cc: In member function ‘void HID::readResultsToJSCallbackArguments(HID::ReceiveIOCB*, v8::Local<v8::Value>*)’:
../src/HID.cc:209:74: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const’ is deprecated (declared at /home/pi/.node-gyp/7.9.0/include/node/v8.h:3657): Use maybe version [-Wdeprecated-declarations]
Local<Object> buf = nodeBufConstructor->NewInstance(1, nodeBufferArgs);
^
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::readTimeout(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:296:41: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated (declared at /home/pi/.node-gyp/7.9.0/include/node/v8.h:9035): Use maybe version [-Wdeprecated-declarations]
const int timeout = info[0]->ToUint32()->Value();
^
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::getFeatureReport(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:316:28: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated (declared at /home/pi/.node-gyp/7.9.0/include/node/v8.h:9035): Use maybe version [-Wdeprecated-declarations]
|| info[1]->ToUint32()->Value() == 0) {
^
../src/HID.cc:320:46: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated (declared at /home/pi/.node-gyp/7.9.0/include/node/v8.h:9035): Use maybe version [-Wdeprecated-declarations]
const uint8_t reportId = info[0]->ToUint32()->Value();
^
../src/HID.cc:322:41: warning: ‘v8::Local<v8::Uint32> v8::Value::ToUint32() const’ is deprecated (declared at /home/pi/.node-gyp/7.9.0/include/node/v8.h:9035): Use maybe version [-Wdeprecated-declarations]
const int bufSize = info[1]->ToUint32()->Value();
^
SOLINK_MODULE(target) Release/obj.target/HID.node
COPY Release/HID.node
make: Leaving directory '/home/pi/node_modules/node-hid/build'
/home/pi
└─┬ node-hid@0.5.4
├── nan@2.6.2
└─┬ node-pre-gyp@0.6.31
├─┬ mkdirp@0.5.1
│ └── minimist@0.0.8
├─┬ nopt@3.0.6
│ └── abbrev@1.0.9
├─┬ npmlog@4.0.2
│ ├─┬ are-we-there-yet@1.1.2
│ │ ├── delegates@1.0.0
│ │ └── readable-stream@2.2.2
│ ├── console-control-strings@1.1.0
│ ├─┬ gauge@2.7.2
│ │ ├── aproba@1.0.4
│ │ ├── has-unicode@2.0.1
│ │ ├── object-assign@4.1.0
│ │ ├── signal-exit@3.0.2
│ │ ├─┬ string-width@1.0.2
│ │ │ ├── code-point-at@1.1.0
│ │ │ └─┬ is-fullwidth-code-point@1.0.0
│ │ │ └── number-is-nan@1.0.1
│ │ ├─┬ strip-ansi@3.0.1
│ │ │ └── ansi-regex@2.1.1
│ │ ├── supports-color@0.2.0
│ │ └── wide-align@1.1.0
│ └── set-blocking@2.0.0
├─┬ rc@1.1.6
│ ├── deep-extend@0.4.1
│ ├── ini@1.3.4
│ ├── minimist@1.2.0
│ └── strip-json-comments@1.0.4
├─┬ request@2.79.0
│ ├── aws-sign2@0.6.0
│ ├── aws4@1.5.0
│ ├── caseless@0.11.0
│ ├─┬ combined-stream@1.0.5
│ │ └── delayed-stream@1.0.0
│ ├── extend@3.0.0
│ ├── forever-agent@0.6.1
│ ├─┬ form-data@2.1.2
│ │ └── asynckit@0.4.0
│ ├─┬ har-validator@2.0.6
│ │ ├─┬ chalk@1.1.3
│ │ │ ├── ansi-styles@2.2.1
│ │ │ ├── escape-string-regexp@1.0.5
│ │ │ ├── has-ansi@2.0.0
│ │ │ └── supports-color@2.0.0
│ │ ├─┬ commander@2.9.0
│ │ │ └── graceful-readlink@1.0.1
│ │ ├─┬ is-my-json-valid@2.15.0
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ └── is-property@1.0.2
│ │ │ ├── jsonpointer@4.0.1
│ │ │ └── xtend@4.0.1
│ │ └─┬ pinkie-promise@2.0.1
│ │ └── pinkie@2.0.4
│ ├─┬ hawk@3.1.3
│ │ ├── boom@2.10.1
│ │ ├── cryptiles@2.0.5
│ │ ├── hoek@2.16.3
│ │ └── sntp@1.0.9
│ ├─┬ http-signature@1.1.1
│ │ ├── assert-plus@0.2.0
│ │ ├─┬ jsprim@1.3.1
│ │ │ ├── extsprintf@1.0.2
│ │ │ ├── json-schema@0.2.3
│ │ │ └── verror@1.3.6
│ │ └─┬ sshpk@1.10.2
│ │ ├── asn1@0.2.3
│ │ ├── assert-plus@1.0.0
│ │ ├── bcrypt-pbkdf@1.0.0
│ │ ├─┬ dashdash@1.14.1
│ │ │ └── assert-plus@1.0.0
│ │ ├── ecc-jsbn@0.1.1
│ │ ├─┬ getpass@0.1.6
│ │ │ └── assert-plus@1.0.0
│ │ ├── jodid25519@1.0.2
│ │ ├── jsbn@0.1.0
│ │ └── tweetnacl@0.14.5
│ ├── is-typedarray@1.0.0
│ ├── isstream@0.1.2
│ ├── json-stringify-safe@5.0.1
│ ├─┬ mime-types@2.1.14
│ │ └── mime-db@1.26.0
│ ├── oauth-sign@0.8.2
│ ├── qs@6.3.0
│ ├── stringstream@0.0.5
│ ├─┬ tough-cookie@2.3.2
│ │ └── punycode@1.4.1
│ ├── tunnel-agent@0.4.3
│ └── uuid@3.0.1
├─┬ rimraf@2.5.4
│ └─┬ glob@7.1.1
│ ├── fs.realpath@1.0.0
│ ├── inflight@1.0.6
│ ├─┬ minimatch@3.0.3
│ │ └─┬ brace-expansion@1.1.6
│ │ ├── balanced-match@0.4.2
│ │ └── concat-map@0.0.1
│ ├── once@1.4.0
│ └── path-is-absolute@1.0.1
├── semver@5.3.0
├─┬ tar@2.2.1
│ ├── block-stream@0.0.9
│ ├─┬ fstream@1.0.10
│ │ └── graceful-fs@4.1.11
│ └── inherits@2.0.3
└─┬ tar-pack@3.3.0
├─┬ debug@2.2.0
│ └── ms@0.7.1
├── fstream-ignore@1.0.5
├─┬ once@1.3.3
│ └── wrappy@1.0.2
├─┬ readable-stream@2.1.5
│ ├── buffer-shims@1.0.0
│ ├── core-util-is@1.0.2
│ ├── isarray@1.0.0
│ ├── process-nextick-args@1.0.7
│ ├── string_decoder@0.10.31
│ └── util-deprecate@1.0.2
└── uid-number@0.0.6
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment