We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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升级到当前最新版(13.0.0),却在mac上打包时报错,报错内容如下:
electron
Exit code: ENOENT. spawn /usr/bin/python ENOENT
13.0.0
23.0.3
2.1.1
在package.json中添加如下:
package.json
{ // ... "resolutions": { "vue-cli-plugin-electron-builder/electron-builder": "^23.0.3" } // ... }
该问题是由于mac系统升级后默认python命令是指向python3的,但是vue-cli-plugin-electron-builder是要求python2的,但是electron-builder是支持的,所以此处指定其使用electron-builder v23.0.3版本。
python
python3
vue-cli-plugin-electron-builder
python2
electron-builder
electron-builder v23.0.3
网上还有另一种解决方案就是将python重新指向python2,这种方案对于系统来说侵入性太强。我也考虑过起一个python2的docker continer然后临时指向,但是这样每次写代码还要设置下环境就很麻烦。
总体来说,还是觉得当前这个方案最方便了。
The text was updated successfully, but these errors were encountered:
不管用
Sorry, something went wrong.
已经过了很久了,前端的技术栈更新很快的。我在文中标明了是electron 13,现在稳定版已经33了😂
No branches or pull requests
报错
electron
升级到当前最新版(13.0.0),却在mac上打包时报错,报错内容如下:环境
13.0.0
23.0.3
2.1.1
解决
在
package.json
中添加如下:该问题是由于mac系统升级后默认
python
命令是指向python3
的,但是vue-cli-plugin-electron-builder
是要求python2
的,但是electron-builder
是支持的,所以此处指定其使用electron-builder v23.0.3
版本。网上还有另一种解决方案就是将
python
重新指向python2
,这种方案对于系统来说侵入性太强。我也考虑过起一个python2的docker continer然后临时指向,但是这样每次写代码还要设置下环境就很麻烦。总体来说,还是觉得当前这个方案最方便了。
参考文档
The text was updated successfully, but these errors were encountered: