oven-sh / bun

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

bun create/install could not work with proxychains #13529

Open YUxiangLuo opened 2 weeks ago

YUxiangLuo commented 2 weeks ago

What version of Bun is running?

1.1.24

What platform is your computer?

Linux 6.10.6-arch1-1 x86_64 unknown

What steps can reproduce the bug?

Set up a socks5 proxy at 127.0.0.1:1081

Add the proxy to proxychains config file like this

[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks5  127.0.0.1 1081

Try to create a project by "proxychains bun create vite"

What is the expected behavior?

Create a project using the proxy provied by proxychains

What do you see instead?

Stuck at this status forever

[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
  🔍 Resolving [1/1]

Additional information

I also tried "bun install --verbose" and it's also not work, here is the log:

alice@archlinux ~> cd pros/sing-box-key-web/

alice@archlinux ~/p/sing-box-key-web> ls
bun.lockb*        node_modules/      public/    tsconfig.app.json   vite.config.ts
eslint.config.js  package.json       README.md  tsconfig.json
index.html        package-lock.json  src/       tsconfig.node.json

alice@archlinux ~/p/sing-box-key-web> rm -rf node_modules/

alice@archlinux ~/p/sing-box-key-web> proxychains bun install --verbose
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.17
bun install v1.1.24 (85a32991)
Loaded 233 hoisted_dependencies
Loaded 344 resolutions
Loaded 344 dependencies
Loaded 4 extern_strings
Loaded 19455 string_bytes
Clean lockfile: 234 packages - 234 packages in 189.7us
info: cannot move files from tempdir: RenameAcrossMountPoints, using fallback
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... [PackageManager] waiting for 1 tasks
  🔍 Resolving... 

alice@archlinux ~/p/sing-box-key-web [SIGINT]> proxychains npm install
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
⠙[proxychains] Strict chain  ...  127.0.0.1:1081  ...  registry.npmjs.org:443  ...  OK

added 16 packages, changed 23 packages, and audited 197 packages in 1s

42 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
alice@archlinux ~/p/sing-box-key-web>
YUxiangLuo commented 2 weeks ago
alice@archlinux ~/pros> proxychains npm create vite
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] Strict chain  ...  127.0.0.1:1081  ...  registry.npmjs.org:443  ...  OK

> npx
> create-vite

[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
? Project name: › vite-project