2023年3月

需要卸载vs2012 2015 这些版本。 卸载vs2012失败如下图,想着要不先升级vs2012的升级包,也是提示这样的错误。

百度了不少,其实也是如下篇博客那样 写拒绝。

(24条消息) "visual studio 2012 安装引擎拒绝访问" 错误的解决_weixin_34023863的博客-CSDN博客
https://blog.csdn.net/weixin_34023863/article/details/90091600

背景:
本人 Thinkpad T430机械硬盘。买了块固态回来,不想重新安装系统也不太考虑双系统。因为有开发环境难安装。

打算:把机械的C盘系统 转到固态的系统盘上来,原来的机械系统C盘改名Z盘。

小知识:F1进入BIOS,F12进入快速引导,可以快速进入U盘启动盘。

机械盘放到光驱处(光驱有足够大空隙还利于散热),固态盘放在原来机械盘处(又刚好有足够多的空隙),刚好解决T430困扰多年的发热大,左边掌托 夏天能烫熟鸡蛋的烦恼(只能在空调环境下玩耍)。

发现点:引导问题

一开始ghost机械盘系统,为**.gho ,镜像还原到固态盘的系统盘中,BIOS设定固态为第一启动盘,报错 几个不同类型:

问题1:PE 装完ghost后 重启就出现 The Boot Configuration Data for your PC is missing or contains errors

UEFI引导损坏启动不了怎么修复教程
https://view.inews.qq.com/a/20210120A0704N00

折腾了一波,在BIOS里面的 各种设置,无解,

一开始以为做镜像(是热备份)引导不对 造成镜像不完全, 用U盘 PE 再做ghost再还原,还是黑屏报错,用pe的 引导修复了一下,再进去不黑屏了,能进到输密码前的界面了,但是一直到不了输入密码哪一步,感觉一直在加载东西,反复想进入密码的屏幕。无解。

发现点:硬盘格式问题

进而了解到我的机械盘格式居然是GPT,平常一般都是BMR格式的,GPT需要UEFI启动方式启动,硬盘会多出3个隐藏盘符,其中一个引导盘符FFI(还是叫做ESP ?)?。

而机械硬盘不能直接 GPT改成bmr ,除非格式整个盘不符合我需求。用ghost的方式 到固态,貌似需要先把固态变成gpt格式 和提前设定3个隐藏盘符,复杂,难,我也不太想固态再次为GPT格式了。所以无解。

硬盘GPT分区如何转换为MBR分区_硬盘GPT分区转换为MBR分区的方法 - 系统家园
https://www.somode.com/jiaocheng/2430.html

后来细想,
如果机械硬盘是GPT格式不会这么复杂的,直接ghost还原到固态应该都可以使用了,或者用diskgenius系统迁移。不知道多年前安装系统时怎么就是GPT格式。

发现点:软件兼容问题  系统迁移成功后,并不能完全打开所有软件,有隐藏问题,怕了。

妥协同意只要系统迁移成功 固态盘为GPT格式也可以。后来了解到群友说的

1、全盘对刻,整个硬盘拷贝,会一模一样,也有技术难点。后来发现diskgenius的有克隆磁盘,应该也是磁盘对刻。这个没有试

2、发现高版本的Diskgenius有系统迁移决定一试,官方文章也是这么介绍的,没有任何问题。高兴。

系统迁移 - DiskGenius
https://www.diskgenius.cn/help/system-migration.php

软件帮助 - DiskGenius
https://www.diskgenius.cn/help/index.php

了解一番后,当本人亲自试,发现系统迁移过来了(固态会变成GPT格式),也能正常启动,但发现很多软件启动不了,闪退或者报错,失望放弃了。

能正常打开的:qq,idea,navicat,小丸工具箱,Everything,百度网盘,360解压,360卫士管家都可以,腾讯微云,阿里旺旺,腾讯课堂,阿里云盘,eclipse-oxygen,XE2,向日葵,天行加速器...。


不能打开的:微信, vscode,360极速浏览器x,chrome,wps,postman,附件画图,Folder size explorer,nodepad++ ...

当时还做了反馈:原系统在机械盘,wps安装在机械盘的D盘,最近买了固态回来用diskgenius 只把机械盘的C系统盘迁移到了固态盘。
在固态盘系统中打开本软件。两块硬盘同时使用,D盘还是在原来的机械盘。

心想连系统的 附加 画图工具都打开有异常,有多少暗病难说,果断放弃了。

但没有找出为什么出现这样现象的原因,难道是因为系统盘在固态,D盘在机械盘吗?

还是注册表的问题?

最后
,采用双系统模式,在固态安装新的win10 也清爽,慢慢把环境搭配好,旧的保留比较复杂的软件先。 但这里又会遇到一个 双系统 盘符混乱的问题,这是后话了。

后来发现这个网友和我的需求是一样 的,深奥难懂, 也许也不完全符合我的情况。

HDD GPT磁盘上的WIN7无损迁移到SSD MBR磁盘 - 爱码网
https://www.likecs.com/show-182376.html

IntelliJ IDEA 2017.1.5  台式机是 32位,通过下面方法激活不成功:(笔记本T 64位 ,是通过下面方法成功的,20220825)

2.将你下载好的JetbrainsCrack-2.6.2.jar拷贝到你的Idea安装目录的bin目录下,如下图红色框所示3.在安装的idea下面的bin目录下面有2个文件 : 一个是idea64.exe.vmoptions,还有一个是idea.exe.vmoptions(如上图绿框)。
用记事本打开 分别在最下面一行增加一行:-javaagent
:D:\IDEA\bin\JetbrainsCrack-2.6.2.jar
注意:“D:
\IDEA\bin\JetbrainsCrack-2.6.2.jar”是我对应的JetbrainsCrack-2.6.2.jar的位置,你用你自己的安装路径。4.重新启动软件,再到Acrivation code中选择界面的时候,写入下面注册代码(到2099年到期)

ThisCrackLicenseId-{    
"licenseId":"ThisCrackLicenseId",    
"licenseeName":"idea",    
"assigneeName":"",    
"assigneeEmail":"idea@163.com",    
"licenseRestriction":"For This Crack, Only Test! Please support genuine!!!",    
"checkConcurrentUse":false,    
"products":[    
{"code":"II","paidUpTo":"2099-12-31"},    
{"code":"DM","paidUpTo":"2099-12-31"},    
{"code":"AC","paidUpTo":"2099-12-31"},    
{"code":"RS0","paidUpTo":"2099-12-31"},    
{"code":"WS","paidUpTo":"2099-12-31"},    
{"code":"DPN","paidUpTo":"2099-12-31"},    
{"code":"RC","paidUpTo":"2099-12-31"},    
{"code":"PS","paidUpTo":"2099-12-31"},    
{"code":"DC","paidUpTo":"2099-12-31"},    
{"code":"RM","paidUpTo":"2099-12-31"},    
{"code":"CL","paidUpTo":"2099-12-31"},    
{"code":"PC","paidUpTo":"2099-12-31"}    
],    
"hash":"2911276/0",    
"gracePeriodDays":7,    
"autoProlongated":false}

在线激活。台式机是通过第二个地址激活 的

复制填入下面的某一个license server到License server address输入框中:

http://intellij.mandroid.cn/
http://idea.imsxm.com/
http://idea.iteblog.com/key.
php

汉化: resources_cn.jar 把这个包放到 JetBrains\IntelliJIDEA2017.1.5\lib 中 重启即可。很简单。应该也是可以放在其他版本。也许汉化不全,但也许很不错了。

1、搜狗输入法快捷键冲突
刚换了新环境,新装的idea的快捷键ctrl+shift+f按了没反应,于是想到快捷键冲突了,马上查看qq和搜狗输入法的快捷键:

2、没有安装搜狗的话,

微软输入法快捷键冲突
最近新装了win10系统后又出问题了,但是我又没有装搜狗输入法,只能想到微软自带的拼音了,话说这个快捷键设置相当隐蔽。
默认情况下 ctrl+shift+f 是简体/繁体切换快捷键

右下角显示 输入法工具栏 后,按ctrl+shift+f 就可以看到 繁简切换了。找到它取消即可。


可以在控制面板 --> 时间和语言 --> 区域和语言 --> 点击语言选项

下拉 找到键盘  选择  点击选项

进去点击 按键

3、直接 修改idea冲突的快捷键

如果你实在找不到原因或者不想修改别的应用的快捷键,这里还有第二种方法,就是idea自定义快捷键的设置。

在Idea中设置快捷键,如下图:
然后按照以下步骤设置:File --settings
第一步:搜索找到Keymap
第二步:点击shortcut查询
第三步:勾上 second stroke
第四步:在键盘上,按下Ctrl +Shift+F,不是一个字母一个字母敲上去的

在Find in Path右键,Add Keyboard Shortcut

直接按下你想用的快捷键(不要和其他的冲突了),如:Ctrl +Shift+V      应用保存,就好了。

eosforce/wallet-desktop: eos force 桌面钱包
https://github.com/eosforce/wallet-desktop

要会的知识

永久使用 淘宝镜像代理
npm config set registry https:
//registry.npm.taobao.org 验证是否设置成功
npm
infoexpress
恢复使用
npm config set registry https:
//registry.npmjs.org 安装yarn插件, npm install -g yarn
npm
install -g npm 不指定版本升级 npm
npm
install --python=python2.7 //想通过这样安装python结果失败 npm config set python python2.7配置环境变量,不起作用
npm
install --global --production windows-build-tools 通过这样安装python2.7成功了,一开始也是不成功的。 需要cmd管理员权限安装。
python
-v 查看版本

按照项目说明运行三个命令

# installdependencies
yarn
# serve with hot reload at localhost:
9081yarn dev
# build electron application
forproduction
yarn build

一、运行 yarn 安装依赖,发现很多小问题, ,也运行了一下 yarn dev 通过不了

PS F:\Projects\XuNiProj\eosforce\wallet-desktop-master2>yarn
yarn install v1.
22.19warning package.json: No license field
warning eosforce@
1.1.261: No license field
[
1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... [-/5] ⠐ waiting... [2/5] ⠐ electron [3/5] ⠈ node-sass [5/5] ⠈ pre-commit error F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\node-sass: Command failed.
Exit code:
1Command: node scripts/build.js Arguments:
Directory: F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\node-sass
Output:
Building: D:\ProgramFiles\nodejs\node.exe F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=gyp info it workedif it ends withok
gyp verb cli [
gyp verb cli
'D:\\ProgramFiles\\nodejs\\node.exe',
gyp verb cli
'F:\\Projects\\XuNiProj\\eosforce\\wallet-desktop-master2\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli
'rebuild',
gyp verb cli
'--verbose',
gyp verb cli
'--libsass_ext=',
gyp verb cli
'--libsass_cflags=',
gyp verb cli
'--libsass_ldflags=',
gyp verb cli
'--libsass_library='gyp verb cli ]
gyp info using node
-gyp@3.6.2gyp info using node@16.15.0 | win32 |x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing
"build"directory
gyp verb command configure []
gyp verb check python checking
for Python executable "python2" inthe PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:80:29)
gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:89:16gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\isexe\index.js:42:5gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\isexe\windows.js:36:5gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:80:29)
gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:89:16gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\isexe\index.js:42:5gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\isexe\windows.js:36:5gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {
gyp verb `which` failed code:
'ENOENT'gyp verb `which` failed }
gyp verb check python checking
for Python executable "python" inthe PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed at getNotFoundError (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:80:29)
gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:89:16gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\isexe\index.js:42:5gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\isexe\windows.js:36:5gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
gyp verb `which` failed python Error: not found: python
gyp verb `which` failed at getNotFoundError (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:80:29)
gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\which\which.js:89:16gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\isexe\index.js:42:5gyp verb `which` failed at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\isexe\windows.js:36:5gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {
gyp verb `which` failed code:
'ENOENT'gyp verb `which` failed }
gyp verb could not find
"python". checking python launcher
gyp verb could not find
"python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR
!configure error
gyp ERR
! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "D:\\ProgramFiles\\nodejs\\node.exe" "F:\\Projects\\XuNiProj\\eosforce\\wallet-desktop-master2\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\node-sass
gyp ERR! node -v v16.15.0

主要两个问题

1、node_modules\node-sass: Command failed2、gyp verb ensuring that fileexists: C:\Python27\python.exe
gyp ERR
!configure error
gyp ERR
! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 1、node-sass 有问题,2、 需要安装python2.7在c盘根目录下,C:\Python27

build时看错误提示 ,一开始以为是插件electron版本不对,曾经npm install electron@^2.0.6 -g 安装过,后来又改回2.0.5了。
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass   设定 node-sass的路径 不知道什么用,反正按网上说,要尔并没有成功,
npm install -g mirror-config-china 也操作过这个,不知道是否有用,

反正就是折腾了很久,后来在安装好python环境后,

二、再继续折腾,看着错误百度一通,

为了解决 node-sass 说什么样式 环境和github上的不一致造成的,也有其他方法,本人试了下面的,
npm install --save node-sass 超级耗时间,没有等完就取消了,后面反正也是乱,
npm uninstall --save node-sass 执行这个直接报错,再执行上面的安装也直接报错。
后来重新弄过了一份代码。

。。。

再 安装 node-sass  居然成功了,

PS F:\Projects\XuNiProj\eosforce\wallet-desktop-master2> npm install node-sass
npm WARN npm npm does not support Node.js v16.
15.0npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can
't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13.
npm WARN npm You can
find the latest version at https://nodejs.org/ npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request@
2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated tar@2.2.2: This version of taris no longer supported, and will not receive security updates. Please upgrade asap.

added
21 packages, removed 28 packages, and changed 109 packages in 6m

yarn dev 居然也成功了,看到调试模式,能看到和build不同的版本。(dev 是v2.0.6版本, build是1.1.261版本),此时 yarn build还是不能成功,不能下载 二进制压缩包。

yarn dev 会有 Unable to install `vue-devtools`:  这个错误提示,调试模式下 左边界面右边开发者工具。

三、 yarn build的错误提示:

 OKAY  take it away `electron-builder`

• electron
-builder version=19.56.2• loaded configurationfile=package.json ("build"field)
• writing effective config
file=build\electron-builder.yaml
• no native production dependencies
• packaging platform
=win32 arch=x64 electron=2.0.6 appOutDir=build\win-unpacked
Downloading tmp
-347504-0-electron-v2.0.6-win32-x64.zipError: GET https://npm.taobao.org/mirrors/electron/2.0.6/electron-v2.0.6-win32-x64.zip returned 404 Error: Failed to find Electron v2.0.6 for win32-x64 at https://npm.taobao.org/mirrors/electron/2.0.6/electron-v2.0.6-win32-x64.zip at Request.<anonymous> (F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\nugget\index.js:169:61)
at Request.emit (node:events:
527:28)
at Request.onRequestResponse (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\request\request.js:1059:10)
at ClientRequest.emit (node:events:
527:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:
631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:
128:17)
at TLSSocket.socketOnData (node:_http_client:
494:22)
at TLSSocket.emit (node:events:
527:28)
at addChunk (node:internal
/streams/readable:315:12)
at readableAddChunk (node:internal
/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal
/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal
/stream_base_commons:190:23)
From previous event:
at Packager.packager.electronDownloader (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder\src\builder.ts:291:12)
at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\src\packager\dirPackager.ts:53:21at Generator.next (<anonymous>)
From previous event:
at unpack (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\out\packager\dirPackager.js:55:21)
at unpackElectron (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\src\packager\dirPackager.ts:27:10)
at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\src\platformPackager.ts:164:27at Generator.next (<anonymous>)
at processImmediate (node:internal
/timers:466:21)
From previous event:
at WinPackager.doPack (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\out\platformPackager.js:276:11)
at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\src\platformPackager.ts:113:16at Generator.next (<anonymous>)
From previous event:
at WinPackager.pack (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\out\platformPackager.js:196:11)
at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\src\packager.ts:364:24at Generator.next (<anonymous>)
at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\fs-extra-p\node_modules\fs-extra\lib\mkdirs\mkdirs.js:56:16at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\graceful-fs\polyfills.js:287:18at FSReqCallback.oncomplete (node:fs:199:5)
From previous event:
at Packager.doBuild (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\out\packager.js:432:11)
at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\src\packager.ts:308:52at Generator.next (<anonymous>)
at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\graceful-fs\graceful-fs.js:99:16at F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\graceful-fs\graceful-fs.js:43:10at FSReqCallback.oncomplete (node:fs:188:23)
From previous event:
at Packager._build (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\out\packager.js:376:11)
at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\src\packager.ts:270:23at Generator.next (<anonymous>)
From previous event:
at Packager.build (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder-lib\out\packager.js:332:11)
at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder\src\builder.ts:310:40at Generator.next (<anonymous>)
From previous event:
at _build (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder\out\builder.js:61:21)
at build (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder\src\builder.ts:280:10)
at F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder\src\cli\cli.ts:48:33at processImmediate (node:internal/timers:466:21)
From previous event:
at Object.handler (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder\src\cli\cli.ts:48:33)
at Object.runCommand (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder\node_modules\yargs\lib\command.js:235:44)
at Object.parseArgs [as _parseArgs] (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder\node_modules\yargs\yargs.js:1042:24)
at Object.get [as argv] (F:\Projects\XuNiProj\eosforce\wallet
-desktop-master2\node_modules\electron-builder\node_modules\yargs\yargs.js:957:21)
at Object.
<anonymous> (F:\Projects\XuNiProj\eosforce\wallet-desktop-master2\node_modules\electron-builder\src\cli\cli.ts:42:15)
at Module._compile (node:internal
/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal
/modules/cjs/loader:1159:10)
at Module.load (node:internal
/modules/cjs/loader:981:32)
at Function.Module._load (node:internal
/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal
/modules/run_main:77:12)
at node:internal
/main/run_main_module:17:47error Command failed with exit code1.

错误提示是下载不了https://npm.taobao.org/mirrors/electron/2.0.6/electron-v2.0.6-win32-x64.zip  后来百度了很久,把npm的淘宝代理改回原来的,也是安装不成功,重启也不行。提到下面两个地址,想看看他们是哪里产生的下载地址,没有看出端倪。

https://github.com/electron/electron/releases/download/v9.2.0/electron-v9.2.0-win32-x64.zip
https:
//cdn.npmmirror.com/binaries/electron/2.0.6/electron-v2.0.6-win32-x64.zip

后来不知折腾多久,灵机一动,重新 运行 yarn成功,在yarn build 也成功。提示如下::

PS F:\Projects\XuNiProj\eosforce\wallet-desktop-master2>yarn
yarn install v1
.22.19warning package.json: No license field
warning package-lock
.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.warning eosforce@1.1.261: No license field
[
1/4] Resolving packages...Hash: b3985fff2ea2aef55842
Version: webpack
3.12.0 Time: 4993ms
Asset Size Chunks Chunk Names
main
.js 1.06 kB 0[emitted] main
[
0] ./src/main/index.js 786 bytes {0} [built]
[
1] external "electron" 42 bytes {0} [notcacheable]
[
2] external "path" 42 bytes {0} [notcacheable]

Hash: c581e87be97b7f46b60b
Version: webpack
3.12.0 Time: 169969ms
Asset Size Chunks Chunk Names
fonts
/element-icons--fonts.ttf 11kB [emitted]
imgs
/kefu--assets.png 83.9kB [emitted]0.js 11.1 kB 0[emitted]1.js 70.3 kB 1[emitted]2.js 26.5 kB 2[emitted]3.js 23.2 kB 3[emitted]4.js 45.8 kB 4[emitted]5.js 15 kB 5[emitted]6.js 22.7 kB 6[emitted]7.js 22.3 kB 7[emitted]8.js 12.3 kB 8[emitted]9.js 14.1 kB 9[emitted]10.js 15.9 kB 10[emitted]11.js 15.9 kB 11[emitted]12.js 51.6 kB 12[emitted]13.js 35.5 kB 13[emitted]14.js 34.9 kB 14[emitted]15.js 34.6 kB 15[emitted]16.js 33.9 kB 16[emitted]17.js 11 kB 17[emitted]18.js 13.4 kB 18[emitted]19.js 1.28 kB 19[emitted]20.js 1.92 kB 20[emitted]
renderer
.js 1.07 MB 21[emitted] [big] renderer
styles
.css 203 kB 21[emitted] renderer
index
.html 352bytes [emitted]
static
/term.html 18.5kB [emitted]
[
6] ./node_modules/vue/dist/vue.esm.js 292 kB {21} [built]
[
11] ./node_modules/element-ui/lib/utils/dom.js 5.37 kB {21} [built]
[
16] ./node_modules/element-ui/lib/utils/util.js 2.11 kB {21} [built]
[
22] ./node_modules/element-ui/lib/mixins/emitter.js 1.01 kB {21} [built]
[
46] ./src/renderer/store/index.js 202 bytes {21} [built]
[
83] ./node_modules/element-ui/lib/element-ui.common.js 974 kB {21} [built]
[
116] ./src/renderer/messages.js 38.6 kB {21} [built]
[
128] ./src/renderer/utils/filter.js 2.26 kB {21} [built]
[
130] ./src/renderer/main.js 988 bytes {21} [built]
[
131] external "vue-i18n" 42 bytes {21} [notcacheable]
[
201] ./node_modules/element-ui/lib/theme-chalk/index.css 41 bytes {21} [built]
[
202] ./src/renderer/App.vue 1.32 kB {21} [built]
[
214] ./src/renderer/router/index.js 4.58 kB {21} [built]
[
254] ./src/renderer/menu.js 1.76 kB {21} [built]
[
259] external "vue-electron" 42 bytes {21} [notcacheable]+ 452hidden modules
Child html-webpack-plugin
for "index.html":
Asset Size Chunks Chunk Names
index
.html 572 kB 0[0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.ejs 1.23 kB {0} [built]
[
1] ./node_modules/lodash/lodash.js 544 kB {0} [built]
[
2] (webpack)/buildin/module.js 517 bytes {0} [built]
Child extract-text-webpack-plugin node_modules
/extract-text-webpack-plugin/dist node_modules/css-loader/index.js!node_modules/element-ui/lib/theme-chalk/index.css:
Asset Size Chunks Chunk Names
fonts
/element-icons--fonts.ttf 11kB
[
0] ./node_modules/css-loader!./node_modules/element-ui/lib/theme-chalk/index.css 196 kB {0} [built]
[
1] ./node_modules/css-loader/lib/url/escape.js 448 bytes {0} [built]
[
2] ./node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
[
3] ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.woff 8.27 kB {0} [built]
[
4] ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf 76 bytes {0} [built]


OKAY take it away `electron-builder`

• electron-builder version
=19.56.2• loaded configuration file=package.json ("build" field)• writing effective config file=build\electron-builder.yaml
• no native production dependencies
• packaging platform
=win32 arch=x64 electron=2.0.18 appOutDir=build\win-unpacked
Downloading tmp-
401360-1-SHASUMS256.txt-2.0.18[============================================>] 100.0% of 5.39 kB (5.39 kB/s)• downloadingpath=C:\Users\yc\AppData\Local\electron-builder\cache\app-builder\app-builder-v0.6.1-x64 url=https://github.com/develar/app-builder/releases/download/v0.6.1/app-builder-v0.6.1-win-x64.7z
• downloading
path=C:\Users\yc\AppData\Local\electron-builder\cache\winCodeSign\winCodeSign-1.9.0 url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-1.9.0/winCodeSign-1.9.0.7z
• building target
=nsis file=build\eosforce Setup 1.1.261.exe archs=x64 oneClick=true
• downloading
path=C:\Users\yc\AppData\Local\electron-builder\cache\nsis\nsis-3.0.1.13 url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.1.13/nsis-3.0.1.13.7z
• downloading
path=C:\Users\yc\AppData\Local\electron-builder\cache\nsis-resources\nsis-resources-3.3.0 url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.3.0/nsis-resources-3.3.0.7z
• building block map blockMapFile
=build\eosforce Setup 1.1.261.exe.blockmap
Done in
369.67s.PS F:\Projects\XuNiProj\eosforce\wallet-desktop-master2>

最后发现

1、下载了个electron=2.0.18 exe和一个文本放在C:\Users\yc\AppData\Local\electron\Cache 下

2、下载了4个文件放在C:\Users\yc\AppData\Local\electron-builder\cache 下

/v0.6.1/app-builder-v0.6.1-win-x64.7z
/winCodeSign-1.9.0/winCodeSign-1.9.0.7z
/nsis-3.0.1.13/nsis-3.0.1.13.7z
/nsis-resources-3.3.0/nsis-resources-3.3.0.7z

3、发现 C:\Users\yc\.windows-build-tools 下还有 python的安装包和 vs_BuildTools.exe ,不知道是否可以删除。先保留。

在wallet-desktop-master2\build\win-unpacked 看到了 build后生成的exe,但为什么是 unpacked的呢?