我的github
posts - 3162,  comments - 42,  views - 156万
npm init
npm install electron --save-dev

局部安装electron导致命令行窗口无法识别electron命令

Uncaught ReferenceError: require is not defined :https://www.cnblogs.com/smileyqp/p/12675350.html  https://blog.csdn.net/BigFamer/article/details/111594514

Uncaught TyeEror: Cannot set properies of null (setting innerHTML):div的id写错了

 

>>Electron+Vue:

>>Syntax:unexpected token:https://www.jianshu.com/p/38acd81deaec  https://blog.csdn.net/weixin_46736220/article/details/109224677

Vue代码里面那么多import,怎么可能全部换成require

>>vue2-electron9-开发模板:https://blog.csdn.net/pyorz/article/details/110233238

执行yarn run electron:serve

 

模板启动后

 

posted on   XiaoNiuFeiTian  阅读(901)  评论(1编辑  收藏  举报
< 2025年1月 >
29 30 31 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示