ubuntu中使用vue+electron-builder插件搭建好项目运行时无报错,直接进程中断了
gmy@gmy-virtual-machine:/vue-project$ sudo npm run electron:serve
[sudo] gmy 的密码:
> vue-project@0.1.0 electron:serve
> vue-cli-service electron:serve
INFO Starting development server...
DONE Compiled successfully in 1707ms 12:05:20
App running at:
- Local: http://localhost:8081/
- Network: http://192.168.239.130:8081/
Note that the development build is not optimized.
To create a production build, run npm run build.
⠦ Bundling main process...
DONE Compiled successfully in 559ms 12:05:21
File Size Gzipped
dist_electron/index.js 662.48 KiB 151.33 KiB
Images and other types of assets omitted.
Build at: 2024-03-05T04:05:21.651Z - Hash: db31e0fb41531a283c05 - Time: 559ms
INFO Launching Electron...
gmy@gmy-virtual-machine:/vue-project$