AgoraIO-Community / Agora-Electron-Quickstart

Quickstart for Agora Electron SDK(Windows/macOS) https://github.com/AgoraIO/Electron-SDK
71 stars 36 forks source link

npm run dev页面空白,报错,window系统 #22

Open luoye111 opened 4 years ago

luoye111 commented 4 years ago

Uncaught Error: \?\E:\demo\agora\Agora-Electron-Vue\node_modules\agora-electron-sdk\build\Release\agora_node_ext.node is not a valid Win32 application. \?\E:\demo\agora\Agora-Electron-Vue\node_modules\agora-electron-sdk\build\Release\agora_node_ext.node at process.func [as dlopen] (electron/js2c/asar.js:155) at Object.Module._extensions..node (internal/modules/cjs/loader.js:881) at Object.func [as .node] (electron/js2c/asar.js:155) at Module.load (internal/modules/cjs/loader.js:701) at tryModuleLoad (internal/modules/cjs/loader.js:633) at Function.Module._load (internal/modules/cjs/loader.js:625) at Module.require (internal/modules/cjs/loader.js:739) at require (internal/modules/cjs/helpers.js:14) at Object. (E:\demo\agora\Agora-Electron-Vue\node_modules\agora-electron-sdk\js\Api\index.js:6) at Object. (E:\demo\agora\Agora-Electron-Vue\node_modules\agora-electron-sdk\js\Api\index.js:3786)

qisihan commented 4 years ago

Uncaught Error: \?\G:\Agora-Electron-Quickstart\Agora-Electron-React\node_modules_agora-electron-sdk@2.9.0@agora-electron-sdk\build\Release\agora_node_ext.node is not a valid Win32 application. \?\G:\Agora-Electron-Quickstart\Agora-Electron-React\node_modules_agora-electron-sdk@2.9.0@agora-electron-sdk\build\Release\agora_node_ext.node at process.func [as dlopen] (electron/js2c/asar.js:155) at Object.Module._extensions..node (internal/modules/cjs/loader.js:881) at Object.func [as .node] (electron/js2c/asar.js:155) at Module.load (internal/modules/cjs/loader.js:701) at tryModuleLoad (internal/modules/cjs/loader.js:633) at Function.Module._load (internal/modules/cjs/loader.js:625) at Module.require (internal/modules/cjs/loader.js:739) at require (internal/modules/cjs/helpers.js:14) at Object. (G:\Agora-Electron-Quickstart\Agora-Electron-React\node_modules_agora-electron-sdk@2.9.0@agora-electron-sdk\js\Api\index.js:6) at Object. (G:\Agora-Electron-Quickstart\Agora-Electron-React\node_modules_agora-electron-sdk@2.9.0@agora-electron-sdk\js\Api\index.js:3786)

plutoless commented 4 years ago

@luoye111 @qisihan windows下麻烦确认您安装的electron是32位的,需要执行 npm i electron --arch=ia32,我们提供的预编译库为了同时兼容32位和64位,暂时只提供32位