node-pcsclite icon indicating copy to clipboard operation
node-pcsclite copied to clipboard

compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 82

Open justdick opened this issue 5 years ago • 5 comments

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"

justdick avatar Oct 12 '20 14:10 justdick

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

justdick avatar Oct 12 '20 14:10 justdick

Same error by me, i created yesterday a issue in the nfc-pcsclite project

androidseb25 avatar Oct 20 '20 11:10 androidseb25

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"

alba-ado avatar Dec 16 '21 09:12 alba-ado

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"

alba-ado avatar Dec 16 '21 09:12 alba-ado

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

shihao92 avatar Mar 19 '22 01:03 shihao92