//进行命令之前,先换成淘宝的源
npm config set registry https://registry.npm.taobao.orgvue init simulatedgreg/electron-vue my-project
cd my-project
npm install
npm run dev

npm install过程中,还有个坑(顺利安装的可以忽略此步)

报错:electron@2.0.18 postinstall: `node install.js`

解决方法:在npmrc文件(这个文件在你nodejs的安装目录里,我的在这里E:\solf_down\node\node_modules\npm\npmrc)中添加,完美解决

electron_mirror="https://npm.taobao.org/mirrors/electron/"

当你用electron-vue创建好项目后,npm run dev运行时,报错

解决方法:直接在index.ejs中把下图的红框的代码去除掉,就行了。没有什么影响

也可以在https://github.com/SimulatedGREG/electron-vue/issues/871 看看其他解决方法

成功运行!

ERROR in Template execution failed: ReferenceError: process is not defined(使用electron-vue出现的错误)相关推荐

  1. Electron中 提示:Uncaught ReferenceError: process is not defined

    场景 用HTML和CSS和JS构建跨平台桌面应用程序的开源库Electron的介绍以及搭建HelloWorld: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/a ...

  2. puppeteer开发中Evaluation failed: ReferenceError: __awaiter is not defined 报错处理

    前言: 这两天在使用puppeteer编写脚本的时候,报了一个错,Evaluation failed: ReferenceError: __awaiter is not defined,花了大概1天多 ...

  3. Fatal error in launcher: Unable to create process using“”C:\Program Files (x86)\Python 出现这个错误的终极解决办法

    Fatal error in launcher: Unable to create process using ""C:\Program Files (x86)\Python33\ ...

  4. 在electron-vue中页面出现Webpack ReferenceError: process is not defined

    原文: https://github.com/SimulatedGREG/electron-vue/issues/871 解决方案: .electron-vue/webpack.web.config. ...

  5. 蚂蚁金服组件 ReferenceError: primordials is not defined

    ReferenceError: primordials is not defined 错误经过 使用蚂蚁金服的某个第三方组件时,本地需要测试编译,执行 npm start 出现这个错误 Referen ...

  6. Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException

    异常Log: Error:Execution failed for task ':app:dexDebug'.  > com.android.ide.common.process.Process ...

  7. Error:Execution failed for task ':myapp:dexDebug'. com.android.ide.common.process.ProcessExcepti

    错误如题所示:Error:Execution failed for task ':myapp:dexDebug'. com.android.ide.common.process.ProcessExce ...

  8. Error:Execution failed for task ':xst:process开发环境DebugResources'.

    用的gradle:2.3.3,编译时出现错误: Error:Execution failed for task ':xst:process开发环境DebugResources'. > com.a ...

  9. 完美解决Error:Execution failed for task ':APP:transformClassesWithDexForDebug'...问题

    今天下载一个demo运行出现问题,错误如下图 我的问题是JDK 1.8 版本问题问题,我吧1.8改成1.7运行成功 这个实在app下面的build.gradle 相信大伙在Android开发过程中都避 ...

最新文章

  1. 如何有效落地企业目标管理方法论?
  2. 轻松玩转jquery。
  3. 传统企业如何在数字化时代实现进化?
  4. C#调用webservice(二)
  5. LAMP平台--部署Discuz论坛
  6. 2019年,有远见的程序员都在关注这些硬核公众号
  7. 高德h5地图api接口_在uniapp h5中在线引入高德地图js api的方法分享
  8. 三色交替的下拉列表框
  9. 2个linux机器怎么传文件(scp)
  10. 正则表达式~~检索匹配的利器
  11. 斗地主发牌编程PHP,php模拟实现斗地主发牌
  12. 【堆栈溢出】堆栈溢出_liangchaoxi的IT博客_新浪博客
  13. 【汇编语言】纯汇编语言编写打飞机小游戏
  14. CDD文件——CANdelaStudio
  15. python中批量将矩形图片转化为正方形图片,并且缩放
  16. SAP SCC4 客户端设置的用法
  17. gh-ost封装脚本
  18. 拉里·埃里森和历史上最牛的演讲【转】
  19. net logon服务无法启动
  20. 【IoT库】RFID基础知识第2期 · 历史发展

热门文章

  1. 软件测试webtours飞机票bug档案,LoadRunner使用MercuryWebTours订机票的问题
  2. 了解一下COLLADA
  3. 斯坦福大学-自然语言处理入门 笔记 第十五课 词汇化(Lexicalization)的PCFGs
  4. php mysql exists语句_mysql子查询 exists,not exists,all和any
  5. Bromo-PEG4-N3/Azido-PEG4-Br/1951439-37-4是亲水性交联剂
  6. 用筛法求之N内的素数
  7. 爬虫进阶路程4——绕过ip反爬
  8. PB级全文检索(分布式)解决方案——HyperSearch
  9. Jarry的目标跟踪学习笔记一
  10. 统计字符串中字母个数,不分大小