运行yarn run build
后,控制台报错
- 解决方法:将项目迁移到一个没有中文的路径中
Error: C:\Users\wsl\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.3.2\Bin\makensis.exe exited with code 1Output:
……
- 原因:依赖中有通过yarn安装的,有通过cnpm安装的
解决方法:将node_modules清空,重新运行yarn
安装所有依赖
take it away `electron-builder`
• electron-builder version=20.44.4
• loaded configuration file=package.json ("build" field)
• writing effective config file=build\builder-effective-config.yaml
Error: Unresolved node modules: fs-extra, graceful-fs, is-promise
网友评论