camme / node-nfc

A first try at binding libnfc to node. This project is right now not good enough to use.
68 stars 39 forks source link

cannot Load in Ubuntu #29

Open haribabu500 opened 7 years ago

haribabu500 commented 7 years ago

I was recently trying to load libraries but its giving me error like: `/home/dotmark/Desktop/nfc2/node_modules/bindings/bindings.js:83 throw e ^

Error: libnfc.so.5: cannot open shared object file: No such file or directory at Object.Module._extensions..node (module.js:598:18) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at bindings (/home/dotmark/Desktop/nfc2/node_modules/bindings/bindings.js:76:44) at Object. (/home/dotmark/Desktop/nfc2/node_modules/nfc/index.js:1:95) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) My codes for running in js file is : var nfc = require('nfc').nfc , util = require('util') ;

console.log('nfc.version(): ' + util.inspect(nfc.version(), { depth: null })); // { name: 'libfnc', version: '1.7.0' }

console.log('nfc.scan(): ' + util.inspect(nfc.scan(), { depth: null }));`