compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 82
Error: The module '\?\xxxx\node_modules@pokusew\pcsclite\build\Release\pcsclite.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 82. Please try re-compiling or re-installing
nodejs 14.13.1 "electron": "^10.1.3" "@pokusew/pcsclite": "^0.6.0", "electron-rebuild": "^2.2.0"
using Node LTS (12.19.0) too gives nodule_module_version 72
compiled against a different Node.js version using NODE_MODULE_VERSION 72. This version of Node.js requires NODE_MODULE_VERSION 82. Please try re-compiling or re-installing
Same error by me, i created yesterday a issue in the nfc-pcsclite project
Try recompiling the module with "npm rebuild". If you are using electron, use the electron-rebuild package to rebuild the source codes after installing the dependencies. You seemed to be installed the electron-rebuild module but not actually rebuilt the package afterward. Try "npx electron-rebuild"
Here is my npm script:
"scripts": {
"start": "electron .",
"ebuild": "electron-rebuild",
"build-workspace": "npm install && npm run ebuild"
}
after adding this to the package.json file you can recompile it by using "npm run build-workspace"
for this issue you can solve by executing the electron-forge package locally in your project folder using method below:
./node_modules/.bin/electron-forge start
after done npm install in your project folder