Bun has redefined the JavaScript/TypeScript toolchain, integrating development, testing, runtime, package management, and bundling into one, developed using Zig, with performance significantly higher than Node.js.
The domestic network environment causes Bun to download packages slowly. Currently, there is no configuration found for Bun to use a proxy for downloading packages. You can configure Bun to download from the domestic npm registry mirror to speed up the download process and improve the development experience.
Create a .bunfig.toml
file in the user home directory and add the following content; https://registry.npmmirror.com
is Alibaba's mirror site.
[install]
registry = "https://registry.npmmirror.com"