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

npm i 报错 #52

Open
Exploit-3389 opened this issue Nov 23, 2022 · 3 comments
Open

npm i 报错 #52

Exploit-3389 opened this issue Nov 23, 2022 · 3 comments

Comments

@Exploit-3389
Copy link

Error: GET https://github.com/electron/electron/releases/download/v3.1.13/electron-v3.1.13-darwin-arm64.zip returned 404
应该是由于Github源删除导致依赖包无法完成安装,将package.json中electron版本改为最新的20.3.6,再次运行就一直停顿在

⠧ reify:app-builder-bin: timing reifyNode:node_modules/accessibility-developer-tools Completed in 4306ms

请问这个问题如何解决?

@pittleCheung
Copy link

image

@pittleCheung
Copy link

Error: GET https://github.com/electron/electron/releases/download/v3.1.13/electron-v3.1.13-darwin-arm64.zip returned 404 应该是由于Github源删除导致依赖包无法完成安装,将package.json中electron版本改为最新的20.3.6,再次运行就一直停顿在

⠧ reify:app-builder-bin: timing reifyNode:node_modules/accessibility-developer-tools Completed in 4306ms

请问这个问题如何解决?

我也想问 他这个有问题跑不起来

@yk47g
Copy link

yk47g commented May 1, 2023

在package.json里把版本"electron": "^3.1.13"换成官网最新的,比如我现在是v24.1.3,所以就会变成"electron": "^24.1.3"
然后使用cnpm i(我用npm i会有各种element和vue之间的冲突,看来这项目真是太老了😂)
然后在src/main/index.js里面把function createWindow ()函数里的内容改成:
const mainWindow = new BrowserWindow({ width: 1000, height: 600, webPreferences: { nodeIntegration: true, contextIsolation: false, enableRemoteModule: true, }, }); mainWindow.loadURL(winURL)

上面这个是因为新版electron改了点东西,要适配一下才行,不然会白屏。
然后按readme里说的把element的bug修复一下,就可以运行起来了(虽然很多警告😂,凑合用了)
然后默认账号密码是hiolabs

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

3 participants