santigimeno / node-pcsclite

Bindings over pcsclite to access Smart Cards
ISC License
170 stars 125 forks source link

Cannot install on windows (node 9.3 & npm 5.5.1) - HELP #79

Open trialsNow opened 6 years ago

trialsNow commented 6 years ago

npm install pcsclite..

throws the following error

C:\Desktop\BTReaderNode\node_modules\buffertools>if not defined npm_config_node_gyp (node "D:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild ) 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  buffertools.cc
  win_delay_load_hook.cc
c:\.node-gyp\9.3.0\include\node\v8.h(334): error C2988: unrecognizable template declaration/definition [C:\Desktop\BTReaderNode\node_modules\buffertools\build\buffertools.vcxproj]
c:\.node-gyp\9.3.0\include\node\v8.h(334): error C2059: syntax error : 'using' [C:\Desktop\BTReaderNode\node_modules\buffertools\build\buffertools.vcxproj]
c:\.node-gyp\9.3.0\include\node\v8.h(466): error C2332: 'enum' : missing tag name [C:\Desktop\BTReaderNode\node_modules\buffertools\build\buffertools.vcxproj]
c:\.node-gyp\9.3.0\include\node\v8.h(466): error C2236: unexpected 'class' 'v8::WeakCallbackType'. Did you forget a ';'? [C:\Desktop\BTReaderNode\node_modules\buffertools\build\buffertools.vcxproj]
......
c:\.node-gyp\9.3.0\include\node\v8.h(4046): fatal error C1003: error count exceeds 100; stopping compilation [C:\Desktop\BTReaderNode\node_modules\buffertools\build\buffertools.vcxproj]
....
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:159:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:209:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"

gyp ERR! node -v v9.3.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN BTReaderNode@1.0.0 No description
npm WARN BTReaderNode@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! buffertools@2.1.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the buffertools@2.1.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
alberman commented 1 year ago

@trialsNow Hi! Have you fixed this? Can't figure out what i am missing. Thank you