mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Cannot build app behind corporate proxy #954
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mu88 on GitHub (Jun 17, 2024).
Problem description
When trying to build a Electron.NET app on my company laptop behind a corporate proxy, it fails with an
npmerror although the environment variablesHTTP_PROXYandHTTPS_PROXYare set.Versions
23.6.28.0.30020.8.1electronize build /target win)Steps to Reproduce
dotnet tool restoredotnet electronize build /target winLogs
Further information
At the very beginning, only the environment variables
HTTP_PROXYandHTTPS_PROXYwere set on my laptop. This way,npmdidn't restore any packages. I had to explicitly runnpm config set proxy http://proxy.company.com:1234to get to the current point.The problem is not bound to this particular app - it also fails for https://github.com/mu88/BlazorFotoManager.