adamnoakes / javacard-simulator

Java Card Simulator
25 stars 11 forks source link

Installation fails at npm install #7

Open JohnMcLear opened 5 years ago

JohnMcLear commented 5 years ago

Windows 10, haven't tested on Ubuntu although I imagine it works there.

D:\javacard-simulator [master ≡]> npm install
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated superagent@1.8.5: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header).  This notice will go away with v5.0.2+ once it is released.
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated mongodb@2.1.21: Please upgrade to 2.2.19 or higher
npm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> bignum@0.11.0 install D:\javacard-simulator\node_modules\bignum
> node-gyp configure build

D:\javacard-simulator\node_modules\bignum>if not defined npm_config_node_gyp (node "C:\Users\jose\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure build )  else (node "C:\Users\jose\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" configure build )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  bignum.cc
  win_delay_load_hook.cc
..\bignum.cc(143): error C2061: syntax error: identifier 'BN_is_zero' [D:\javacard-simulator\node_modules\bignum\build\bign
um.vcxproj]
..\bignum.cc(145): error C2061: syntax error: identifier 'BN_is_one' [D:\javacard-simulator\node_modules\bignum\build\bignu
m.vcxproj]
..\bignum.cc(183): error C2079: 'BigNum::bignum_' uses undefined struct 'bignum_st' [D:\javacard-simulator\node_modules\big
num\build\bignum.vcxproj]
..\bignum.cc(296): error C3861: 'BN_init': identifier not found [D:\javacard-simulator\node_modules\bignum\build\bignum.vcx
proj]
..\bignum.cc(297): error C2664: 'int BN_set_word(BIGNUM *,unsigned __int64)': cannot convert argument 1 from 'int *' to 'BI
GNUM *' [D:\javacard-simulator\node_modules\bignum\build\bignum.vcxproj]
  ..\bignum.cc(297): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-s
  tyle cast
..\bignum.cc(299): error C2440: 'initializing': cannot convert from 'int *' to 'BIGNUM *' [D:\javacard-simulator\node_modul
es\bignum\build\bignum.vcxproj]
  ..\bignum.cc(299): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-s
  tyle cast
..\bignum.cc(304): error C3861: 'BN_init': identifier not found [D:\javacard-simulator\node_modules\bignum\build\bignum.vcx
proj]
..\bignum.cc(307): error C2664: 'int BN_set_bit(BIGNUM *,int)': cannot convert argument 1 from 'int *' to 'BIGNUM *' [D:\ja
vacard-simulator\node_modules\bignum\build\bignum.vcxproj]
  ..\bignum.cc(307): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-s
  tyle cast
tuanna2 commented 4 years ago

install node v8.10.0, this project not support node version higher