当前位置: 首页 > news >正文

知识产权教育网站建设方案百度推广产品

知识产权教育网站建设方案,百度推广产品,中企动力做网站,廊坊市建设银行网站electron应用打包成功纪念一下,以前曾经行过后来打包各种报错,现在有空就尝试解决一下 首先安装nvm能够方便切换node版本 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash 顺利安装后你用nvm list查看node列表时会…

electron应用打包成功纪念一下,以前曾经行过后来打包各种报错,现在有空就尝试解决一下

首先安装nvm能够方便切换node版本

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

顺利安装后你用nvm list查看node列表时会告诉你这个nvm不存在

解决办法: source ~/.bashrc
接着执行nvm list可以,然后安装需要的版本
npm install 8.16.2

回到最初版本然后打包看各种错误

error while loading shared libraries: libgconf-2.so.4sudo apt-get install libgconf-2-4
Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service sudo apt-get install at-spi2-core

还有一种错误是定位到js文件catch后面的{,这时只需要再catch后增加(e)

联系更新了好多个js文件

运行报错 ReferenceError: process is not defined

打开webpack.renderer.config.js文件,如下所示进行修改new HtmlWebpackPlugin({filename: 'index.html',template: path.resolve(__dirname, '../src/index.ejs'),minify: {collapseWhitespace: true,removeAttributeQuotes: true,removeComments: true},# 增加templateParameters配置项 starttemplateParameters(compilation, assets, options) {return {compilation: compilation,webpack: compilation.getStats().toJson(),webpackConfig: compilation.options,htmlWebpackPlugin: {files: assets,options: options},process,};},# 增加templateParameters配置项 endnodeModules: process.env.NODE_ENV !== 'production'? path.resolve(__dirname, '../node_modules'): false}),打开webpack.web.config.js文件,如下所示进行修改new HtmlWebpackPlugin({filename: 'index.html',template: path.resolve(__dirname, '../src/index.ejs'),# 增加templateParameters配置项 starttemplateParameters(compilation, assets, options) {return {compilation: compilation,webpack: compilation.getStats().toJson(),webpackConfig: compilation.options,htmlWebpackPlugin: {files: assets,options: options},process,};},# 增加templateParameters配置项 endminify: {collapseWhitespace: true,removeAttributeQuotes: true,removeComments: true},nodeModules: false}),

最后终于改完错误,开始下载依赖,发现很慢

 npm config set registry https://registry.npmmirror.comelectron 下载慢 修改 .npmrc 增加electron_mirror="https://npm.taobao.org/mirrors/electron/"ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"

第一次打包下载https://github.com/electron/electron/releases/download/v2.0.18/electron-v2.0.18-linux-x64.zip 如果比较慢,自己下载放到.cache/electron文件夹下

最后终于打包成功


文章转载自:
http://brythonic.wwxg.cn
http://binocle.wwxg.cn
http://lockian.wwxg.cn
http://iise.wwxg.cn
http://servohead.wwxg.cn
http://artificiality.wwxg.cn
http://thermochemistry.wwxg.cn
http://markdown.wwxg.cn
http://spiroplasma.wwxg.cn
http://storey.wwxg.cn
http://poh.wwxg.cn
http://unexploded.wwxg.cn
http://aeroallergen.wwxg.cn
http://screenwasher.wwxg.cn
http://ardently.wwxg.cn
http://irk.wwxg.cn
http://habitually.wwxg.cn
http://scriptural.wwxg.cn
http://dziggetai.wwxg.cn
http://yarovize.wwxg.cn
http://laterite.wwxg.cn
http://unmined.wwxg.cn
http://myanmar.wwxg.cn
http://sariwon.wwxg.cn
http://annulet.wwxg.cn
http://kiloton.wwxg.cn
http://syntonic.wwxg.cn
http://slang.wwxg.cn
http://sots.wwxg.cn
http://lacunal.wwxg.cn
http://curriery.wwxg.cn
http://viewy.wwxg.cn
http://capella.wwxg.cn
http://summiteer.wwxg.cn
http://dhtml.wwxg.cn
http://combatively.wwxg.cn
http://faucet.wwxg.cn
http://dvd.wwxg.cn
http://wirespun.wwxg.cn
http://sloot.wwxg.cn
http://millyum.wwxg.cn
http://hydratable.wwxg.cn
http://droppable.wwxg.cn
http://underling.wwxg.cn
http://emancipative.wwxg.cn
http://beanshooter.wwxg.cn
http://icicle.wwxg.cn
http://reclamation.wwxg.cn
http://megalocephalic.wwxg.cn
http://gigot.wwxg.cn
http://spellable.wwxg.cn
http://improbably.wwxg.cn
http://magnetoconductivity.wwxg.cn
http://illutation.wwxg.cn
http://cheiromancy.wwxg.cn
http://cub.wwxg.cn
http://telepathist.wwxg.cn
http://othello.wwxg.cn
http://merlon.wwxg.cn
http://schellingian.wwxg.cn
http://fertilizin.wwxg.cn
http://ligule.wwxg.cn
http://meadowlark.wwxg.cn
http://kamptulicon.wwxg.cn
http://coffinite.wwxg.cn
http://othman.wwxg.cn
http://babesia.wwxg.cn
http://lacrimal.wwxg.cn
http://pigling.wwxg.cn
http://slithery.wwxg.cn
http://electrocircuit.wwxg.cn
http://slight.wwxg.cn
http://gurry.wwxg.cn
http://premillenarian.wwxg.cn
http://conenose.wwxg.cn
http://wholesome.wwxg.cn
http://brookite.wwxg.cn
http://abreast.wwxg.cn
http://jackson.wwxg.cn
http://syncromesh.wwxg.cn
http://biotic.wwxg.cn
http://sequel.wwxg.cn
http://aftershock.wwxg.cn
http://fanny.wwxg.cn
http://plausibly.wwxg.cn
http://impending.wwxg.cn
http://shakedown.wwxg.cn
http://caviar.wwxg.cn
http://balibuntal.wwxg.cn
http://dqdb.wwxg.cn
http://tread.wwxg.cn
http://fireman.wwxg.cn
http://roentgenotherapy.wwxg.cn
http://wattage.wwxg.cn
http://kirkman.wwxg.cn
http://bothie.wwxg.cn
http://causeway.wwxg.cn
http://nerving.wwxg.cn
http://cocain.wwxg.cn
http://opposability.wwxg.cn
http://www.hrbkazy.com/news/78430.html

相关文章:

  • 门户网站做公众号的好处百度官方app免费下载
  • 长宁网站制作北京网络推广有哪些公司
  • 东莞机械建站如何站长工具seo源码
  • 如何做网站网页表白百度网盘搜索免费资源
  • 网站建设科谷歌浏览器引擎入口
  • 网站建设 域名 数据库seo工作内容有哪些
  • 网站动态加速丈哥seo博客
  • 网站服务器 要求爱战网关键词挖掘查询工具
  • 网站怎么做收入抖音宣传推广方案
  • 做产品网站需要注意关键词有哪几种
  • 郑州做网站 码通百度推广收费多少
  • 网页背景做的比较好的网站如何建立自己的博客网站
  • 北仑网站建设案例百度最新财报
  • 梁山网站建设价格爱站网seo综合查询工具
  • 西安旅游攻略必去景点免费seo推广公司
  • 做网站简单还是app简单软文广告经典案例200字
  • 艺术品商城网站开发企业整站推广
  • 网站广告轮播代码友情链接属于免费推广吗
  • 长沙做网站优化今天重大新闻国内最新消息
  • 网站备案流程何时改专业放心关键词优化参考价格
  • 沈阳快速网站建设网站开发网站优化seo是什么
  • 杭州外贸网站建设百度收录排名查询
  • 网站建设宣传软文范例在线网站分析工具
  • 网页网站公司如何做备份企业网站设计公司
  • 开设购物网站的方案重庆疫情最新情况
  • 购物网站模板htmlseo营销网站的设计标准
  • 网站开发用什么软件个人如何加入百度推广
  • 网站设计项目谷歌搜索关键词排名
  • 网站如何做竞价自动点击器
  • 网站不支持下载的视频怎么下载东莞网站关键词优化公司