Steps:
- Required Nodejs v14.21.3 (else the compiler will failed)
npm install
- Navigate to node_modules/@pokusew/pcsclite/src/addon.cpp
- Copy and paste code below
#include "pcsclite.h"
#include "cardreader.h"
void init_all(v8::Local<v8::Object> target) {
PCSCLite::init(target);
CardReader::init(target);
}
#if NODE_MAJOR_VERSION >= 10
NAN_MODULE_WORKER_ENABLED(pcsclite, init_all)
#else
NODE_MODULE(pcsclite, init_all)
#endif
- Open terminal in project root dir, copy, paste and enter cli below
.\node_modules\.bin\electron-rebuild.cmd
- Then you can either run or compile the project
npm run start #run
npm run make #compile