An unhandled error occurred inside electron-rebuild. Could not find any Visual Studio installation to use

318 views Asked by At

I am trying to use zeroRPC but I got this error:

electron/js2c/asar.js:140
Uncaught Error:
The module
'\\?\C:\Users\Electron\\node_modules\zerorpc\node_modules\zeromq\build\Release\zmq.node'

was compiled against a different Node.js version using
NODE_MODULE_VERSION 72.

This version of Node.js requires
NODE_MODULE_VERSION 76.

Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`). 

Thus, I tried to use electron-rebuild but the rebuild failed. How can I fix this?
I have Visual Studio Community 2017 Desktop development with C++ and Visual Studio Build Tools 2017 Desktop Visual C++ build tools.

enter image description here Fig.1


enter image description here Fig.2 - Dependencies:

0

There are 0 answers