Closed GilGustavoJ closed 5 years ago
Try npm rebuild wrtc --update-binary
@DiegoRBaquero Execute the command, but at the moment of execution npm start
it shows the same error
A JavaScript error occurred in the main process
Uncaught Exception:
Error: The module '/var/www/html/cotufas.js/node_modules/wrtc/build/Release/wrtc.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (internal/modules/cjs/loader.js:640:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/var/www/html/cotufas.js/node_modules/wrtc/lib/binding.js:6:20)
at Object.<anonymous> (/var/www/html/cotufas.js/node_modules/wrtc/lib/binding.js:9:3)
Hmmmm, weird. Don't really know what can help then :S
@DiegoRBaquero Execute the command, but at the moment of execution
npm start
it shows the same errorA JavaScript error occurred in the main process Uncaught Exception: Error: The module '/var/www/html/cotufas.js/node_modules/wrtc/build/Release/wrtc.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 64. This version of Node.js requires NODE_MODULE_VERSION 69. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`). at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31) at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31) at Module.load (internal/modules/cjs/loader.js:602:32) at tryModuleLoad (internal/modules/cjs/loader.js:541:12) at Function.Module._load (internal/modules/cjs/loader.js:533:3) at Module.require (internal/modules/cjs/loader.js:640:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/var/www/html/cotufas.js/node_modules/wrtc/lib/binding.js:6:20) at Object.<anonymous> (/var/www/html/cotufas.js/node_modules/wrtc/lib/binding.js:9:3)
This is the output at the moment to execute npm rebuild wrtc --update-binary
> wrtc@0.3.7 install /var/www/html/cotufas.js/node_modules/wrtc
> node scripts/install.js
Searching for a pre-built wrtc binary
node-pre-gyp WARN Using request for node-pre-gyp https download
[wrtc] Success: "/var/www/html/cotufas.js/node_modules/wrtc/build/Release/wrtc.node" is installed via remote
Installed a pre-built wrtc binary
wrtc@0.3.7 /var/www/html/cotufas.js/node_modules/wrtc
So the binary does get updated. Huh. weird, Node.js version?
So the binary does get updated. Huh. weird, Node.js version?
Node Version: 10.15.3
You shouldn't need to use webtorrent-hybrid
or compile wrtc
if you're using Electron. Electron already has WebRTC built into it's renderer processes. You'll have a much happier time if you just use the webtorrent
package directly in Electron.
OS Ubuntu 18.04 LTS
This is my package.json
My main.js
I am developing an application with Electron. The application is a Web Torrent Player. When executing
npm start
from the Linux console it shows the following error: