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

本地调试检测更新没有问题,打包成功后,安装electron应用时提示Cannot find module 'electron-updater' #8220

Open
CaoRuimiao opened this issue May 16, 2024 · 2 comments

Comments

@CaoRuimiao
Copy link

CaoRuimiao commented May 16, 2024

Cannot find module 'electron-updater' after build

"dependencies": {
    "electron-log": "^5.1.4",
    "electron-updater": "6.1.8"
},
"devDependencies": {
    "electron": "^27.0.2",
    "electron-builder": "^22.9.1"
},

有人遇到吗?该怎么解决?

@ifurther
Copy link
Contributor

Maybe try this #1949 (comment)

@CaoRuimiao
Copy link
Author

Maybe try this #1949 (comment)

在我的package.json配置中electron-updater是在dependencies下面呢,没太明白该怎么处理。
刚刚试了下按照您的回复中的版本安装后,本地启动报错:
Uncaught Exception:
Error: Cannot find module ‘fs/promises'

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

2 participants