Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
justdick opened this issue Oct 12, 2020 · 5 comments

Comments

@justdick
Copy link

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
Copy link
Author

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

@androidseb25
Copy link

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

@alba-ado
Copy link

alba-ado commented Dec 16, 2021

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
Copy link

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"

@shihao92
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants