赞
踩
折腾了一天在macos上安装虚拟机安装debian操作系统,然后又折腾了一天在debian上打包,踩了不少的坑,废话不多说
sudo apt update
sudo apt upgrade
sudo apt install nodejs
sudo apt install npm
node -v
npm -v
如果输出了版本号,则表示已成功安装。
使用官方推荐的electron-forge来运行应用npm run start
"scripts": {
"start": "electron-forge start"
}
报错:[FATAL:electron_main_delegate.cc(294)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180
,目前还是未解决,在mac系统上是可以开发并运行的,所以先不运行了,能打包为deb文件就行
使用官方推荐的electron-forge来打包应用npm run make
"scripts": {
"make": "electron-forge make"
}
An unhandled rejection has occurred inside Forge:Error:Connot make for rpm,thefollowing extwnal binaries need to be installed:rpmbuild
sudo apt install rpm
安装完成后,再次运行electron-forge make命令即可。
An unhandled rejection has occurred inside Forge: Error: spawn zip ENOENT
sudo apt install zip
安装完成后,再次运行electron-forge make命令即可。
An unhandled rejection has occurred inside Forge: Error:No Description or ProductDescription provided.Please set editer a description in the app's package.json or provide it in the this.options.
package.json
中缺少description
这个key,加上就好了error:License field must be present in package
package.json
中缺少license
这个key,加上就好了Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。