是不好安,electron一直有问题,要改镜像
[Environment]::SetEnvironmentVariable("ELECTRON_MIRROR", "https://npmmirror.com/mirrors/electron/", "User")
$env:ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
还要清干净环境
Stop-Process -Name "Hermes" -Force -ErrorAction Ignore
Stop-Process -Name "electron" -Force -ErrorAction Ignore
Remove-Item -Recurse -Force "C:\Users\lenovo\AppData\Local\hermes\hermes-agent\apps\desktop\release" -ErrorAction Ignore
折腾大半天