oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.1k stars 2.76k forks source link

Enchanced/clear/suggested proxy or REGISTRY/mirror setting in Windows, especially in Windows PowerShell. #10291

Open Chigogo opened 6 months ago

Chigogo commented 6 months ago

What is the problem this feature would solve?

In powershell, I make env like this:

$proxyH="http://192.168.2.6:10811"
$env:http_proxy=$proxyH
$env:HTTP_PROXY=$proxyH
$env:https_proxy=$proxyH
$env:HTTPS_PROXY=$proxyH

or

$env:NPM_CONFIG_REGISTRY="https://registry.npmmirror.com/"

Are these two ways correct? It seems not work properly.

What is the feature you are proposing to solve the problem?

A clear/suggested way to set proxy or REGISTRY/mirror in Window PowerShell environment.

What alternatives have you considered?

We China users have speed issue when connect to global network. We need proxy or mirror registy to experience the edge-cutting bun. Would you please suggest some mirrors for China users?

Leni-Vienne commented 6 months ago

Same issue behind a company proxy. I have to use WSL with additionnal setup which is inconvenant