开发者社区> 问答> 正文

创建Demo程序报错!第一次用不知道是什么情况?报错

错误如图,

根据教程创建

展开
收起
爱吃鱼的程序员 2020-06-09 14:11:08 481 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    nodejs安装对了嘛?

    constelectron=require('electron');const{app,BrowserWindow}=electron;letmainWindow=null;app.on('window-all-closed',()=>{if(process.platform!='darwin'){app.quit();}});app.on('ready',()=>{mainWindow=newBrowserWindow({width:600,height:500,show:false});mainWindow.loadURL(`file://${__dirname}/index.html`);mainWindow.on('closed',()=>{mainWindow=null;});mainWindow.show();});

    亲,代码过时啦。

    2020-06-09 14:11:25
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载