Closed hervehobbes closed 8 years ago
@hervethouzard What issues are you having? I haven't tried but I think it should work with raspbian.
Hello,
I have this error message:
/home/pi/node-pcsclite/node_modules/pcsclite/node_modules/bindings/bindings.js:83 throw e ^
Error: /home/pi/node-pcsclite/node_modules/pcsclite/build/Release/pcsclite.node: invalid ELF header
at Error (native)
at Object.Module._extensions..node (module.js:460:18)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at bindings (/home/pi/node-pcsclite/node_modules/pcsclite/node_modules/bindings/bindings.js:76:44)
at Object.
bye
When I launch /home/pi/node-pcsclite/node_modules/pcsclite/examples/nano example.js
@hervethouzard What version of nodejs are you running? How are you installing the module? Can you paste the output of: npm install -d pcsclite
?
Hello,
I have made a "sudo su" before to run the commands.
nodejs version: v4.2.1 I installed the module with: npm install pcsclite
And finally here is the output of npm install -d pcsclite:
npm install -d pcsclite npm info it worked if it ends with ok npm info using npm@2.14.7 npm info using node@v4.2.1 npm info attempt registry request try #1 at 14:35:19 npm http request GET https://registry.npmjs.org/pcsclite npm http 304 https://registry.npmjs.org/pcsclite npm info install pcsclite@0.4.4 into /home/pi npm info installOne pcsclite@0.4.4 npm WARN engine pcsclite@0.4.4: wanted: {"node":">=0.8.0 < 4"} (current: {"node":"4.2.1","npm":"2.14.7"}) npm info preinstall pcsclite@0.4.4 npm info attempt registry request try #1 at 14:35:26 npm http request GET https://registry.npmjs.org/bindings npm info attempt registry request try #1 at 14:35:26 npm http request GET https://registry.npmjs.org/nan npm info attempt registry request try #1 at 14:35:26 npm http request GET https://registry.npmjs.org/buffertools npm http 304 https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/nan npm http 304 https://registry.npmjs.org/buffertools npm info install bindings@1.2.1 into /home/pi/node_modules/pcsclite npm info install nan@2.0.9 into /home/pi/node_modules/pcsclite npm info install buffertools@2.1.3 into /home/pi/node_modules/pcsclite npm info installOne bindings@1.2.1 npm info installOne nan@2.0.9 npm info installOne buffertools@2.1.3 npm info preinstall bindings@1.2.1 npm info build /home/pi/node_modules/pcsclite/node_modules/bindings npm info linkStuff bindings@1.2.1 npm info install bindings@1.2.1 npm info postinstall bindings@1.2.1 npm info preinstall buffertools@2.1.3 npm info build /home/pi/node_modules/pcsclite/node_modules/buffertools npm info linkStuff buffertools@2.1.3 npm info install buffertools@2.1.3
buffertools@2.1.3 install /home/pi/node_modules/pcsclite/node_modules/buffertools node-gyp rebuild
gyp info it worked if it ends with ok gyp info using node-gyp@3.0.3 gyp info using node@4.2.1 | linux | arm gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.2.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/node_modules/pcsclite/node_modules/buffertools/.node-gyp" gyp http GET https://nodejs.org/download/release/v4.2.1/node-v4.2.1-headers.tar.gz gyp http 200 https://nodejs.org/download/release/v4.2.1/node-v4.2.1-headers.tar.gz gyp http GET https://nodejs.org/download/release/v4.2.1/SHASUMS256.txt gyp http 200 https://nodejs.org/download/release/v4.2.1/SHASUMS256.txt gyp info spawn python2 gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/home/pi/node_modules/pcsclite/node_modules/buffertools/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/pi/node_modules/pcsclite/node_modules/buffertools/.node-gyp/4.2.1/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/pi/node_modules/pcsclite/node_modules/buffertools/.node-gyp/4.2.1', gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=node.lib', gyp info spawn args '-Dmodule_root_dir=/home/pi/node_modules/pcsclite/node_modules/buffertools', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/home/pi/node_modules/pcsclite/node_modules/buffertools/build' CXX(target) Release/obj.target/buffertools/buffertools.o ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] }; ^ ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] ../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] SOLINK_MODULE(target) Release/obj.target/buffertools.node COPY Release/buffertools.node make: Leaving directory '/home/pi/node_modules/pcsclite/node_modules/buffertools/build' gyp info ok npm info preinstall nan@2.0.9 npm info build /home/pi/node_modules/pcsclite/node_modules/nan npm info linkStuff nan@2.0.9 npm info install nan@2.0.9 npm info postinstall nan@2.0.9 npm info postinstall buffertools@2.1.3 npm info build /home/pi/node_modules/pcsclite npm info linkStuff pcsclite@0.4.4 npm info install pcsclite@0.4.4
pcsclite@0.4.4 install /home/pi/node_modules/pcsclite node-gyp rebuild
gyp info it worked if it ends with ok gyp info using node-gyp@3.0.3 gyp info using node@4.2.1 | linux | arm gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.2.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/node_modules/pcsclite/.node-gyp" gyp http GET https://nodejs.org/download/release/v4.2.1/node-v4.2.1-headers.tar.gz gyp http 200 https://nodejs.org/download/release/v4.2.1/node-v4.2.1-headers.tar.gz gyp http GET https://nodejs.org/download/release/v4.2.1/SHASUMS256.txt gyp http 200 https://nodejs.org/download/release/v4.2.1/SHASUMS256.txt gyp info spawn python2 gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/home/pi/node_modules/pcsclite/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/pi/node_modules/pcsclite/.node-gyp/4.2.1/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/pi/node_modules/pcsclite/.node-gyp/4.2.1', gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=node.lib', gyp info spawn args '-Dmodule_root_dir=/home/pi/node_modules/pcsclite', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/home/pi/node_modules/pcsclite/build' CXX(target) Release/obj.target/pcsclite/src/addon.o CXX(target) Release/obj.target/pcsclite/src/pcsclite.o CXX(target) Release/obj.target/pcsclite/src/cardreader.o SOLINK_MODULE(target) Release/obj.target/pcsclite.node COPY Release/pcsclite.node make: Leaving directory '/home/pi/node_modules/pcsclite/build' gyp info ok npm info postinstall pcsclite@0.4.4 pcsclite@0.4.4 node_modules/pcsclite ├── bindings@1.2.1 ├── nan@2.0.9 └── buffertools@2.1.3 npm info ok
@hervethouzard I've installed pcsclite
in a raspberry pi ARMv6 and it works without problems. I've downloaded the binary from here: https://nodejs.org/en/download/
. It's version 4.2.3
instead of 4.2.1
but I don't think there should be any differences.
Hello,
Thank you for your time and tests, I will try.
Bye
No problem. Just let me know if you finally make it work and I'll close this. Thanks
Feel free to reopen if it's still an issue.
Hello,
Do you plan a Raspberry Pi version?
bye, Hervé