Bun package downloads fail with error messages
28 posts across 2 communities since Feb 2023; 96% from GitHub.
“What version of Bun is running? 1.4.0 What platform is your computer? macos arm What steps can reproduce the bug? My project The .env and .env.test all is The root package.json When run bun dev:server , it can work When run bun test:server2 , it can work But run bun test:server…”
“What is the problem this feature would solve? When running bun install on a different disk on Windows than BUN INSTALL location (e.g. running on D:\ , when BUN INSTALL is on C:\ , bun silently fallbacks to full copy of the package, taking additional space on disk. And it may be…”
“What is the problem this feature would solve? run bun test when some packages import resource files, such as .less, .sass, .jpg What is the feature you are proposing to solve the problem? provide transform stub config for bun test, so users can stub resource files, such as…”
Developers are encountering errors when attempting to download packages using Bun, including issues related to file permissions and missing dependencies. They're seeking solutions to resolve these installation problems and ensure smooth project development.
SOURCES (28)
“What version of Bun is running? 1.4.4+38afee6c8 What platform is your computer? Linux 7.2.11 arch1 1 x86 64 What steps can reproduce the bug? What is the expected behavior? bun install prints its usual output only, and nothing for a .env file it loads. At…”
“What version of Bun is running? 1.4.3+c6da4a4d3 (also reproduces on 1.4.2) What platform is your computer? Darwin 27.0.1 arm64 (macOS 27.0.1, Apple Silicon) What steps can reproduce the bug? Save as repro.test.ts in an empty directory (no package.json or bunfig.toml needed): Then run: What is the expected behavior? The test passes and a coverage report is printed. The data: module is either reported under some name or left out of the report. What do you see instead? Crash report: https://bun.rep”
“What version of Bun is running? 1.4.3+c6da4a4d3 What platform is your computer? Linux 7.2.9 201.fc44.x86 64 x86 64 unknown What steps can reproduce the bug? Install the eris package and run bun check . What is the expected behavior? No response What do you see instead? No response Additional information <img width="1553" height="762" alt="Image" src="https://github.com/user attachments/assets/188a27eb 6272 4532 8766 d3c21340b9c5" /”
“What version of Bun is running? 1.4.2+744846f84 What platform is your computer? Linux 7.0.14 orbstack 00380 ga7e0a2dc9535 aarch64 unknown What steps can reproduce the bug? export BUN OPTIONS= dns result order=ipv4first bun update What is the expected behavior? updating bun What do you see instead? error: This command updates Bun itself, and does not take package names. note: Use bun update upgrade instead. Additional information No response”
“What version of Bun is running? 1.4.2 (also the canary at the time of filing, 1.4.2+744846f84 ) What platform is your computer? Linux 6.18 x86 64 (also seen inside oven/bun:1.4 alpine containers) What steps can reproduce the bug? The resolver caches a directory's entries the first time it resolves through it. A symlink created in that directory afterwards is found by later resolutions, but it is treated as a plain directory: require.resolve returns the path through the link instead of the real p”
“What version of Bun is running? bun 1.2.x / main What platform is your computer? Linux (x86 64, aarch64 glibc, musl, bionic/Android) What steps will reproduce the bug? 1. Configure an environment where bun install backend symlink is used (or Method::Symlink is selected on Unix systems). 2. Install any package providing an executable binary: 3. Attempt to run the installed binary directly or via bunx: What did you expect to see? The binary executes successfully with executable permissions ( 0755”
“[unanswered, 10 views] warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance. If the cache and target directories are on different filesystems, hardlinking may not be supported. If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning. error: Failed to install: python-0.1.0-py3-none-any.whl (python==0.1.0 (from file:///D:/Projects/Python)) Caused by: Scripts must not use the reserved name `python`, got”
“What version of Bun is running? 1.4.0 What platform is your computer? macos arm What steps can reproduce the bug? My project The .env and .env.test all is The root package.json When run bun dev:server , it can work When run bun test:server2 , it can work But run bun test:server , got error, seem cannot fond packages/server/.env.test What is the expected behavior? bun filter test can have the same effect as bun filter run xxx What do you see instead? No response Additional information No response”
“What is the problem this feature would solve? When running bun install on a different disk on Windows than BUN INSTALL location (e.g. running on D:\ , when BUN INSTALL is on C:\ , bun silently fallbacks to full copy of the package, taking additional space on disk. And it may be easy to miss, especially for new users who may not even know that such feature exists. What is the feature you are proposing to solve the problem? Coming from uv (https://docs.astral.sh/uv/), they have a warning in such c”
“What version of Bun is running? 1.3.7 What platform is your computer? Microsoft Windows NT 10.0.26200.0 x64 What steps can reproduce the bug? 1. create a empty folder as root, create a packages.json 2. create a folder child under root, and make this folder as one of workspace of root 3. create a package.json in the child folder 4. running bun installhere is my child folder's config What is the expected behavior? do not produce any error What do you see instead? Additional information Method not”
“What version of Bun is running? 1.3.1+89fa0f343 What platform is your computer? Darwin 24.6.0 arm64 arm What steps can reproduce the bug? Set up the following directory tree: We have work , containing two workspaces foo and bar where foo depends on bar , and dep which we will try to link against. Run bun link in dep and then bun link dep in work/foo : What is the expected behavior? It should add "dep": "link:dep" to work/foo/package.json What do you see instead? Additional information No respons”
“What version of Bun is running? 1.2.19 What platform is your computer? x64 windows What steps can reproduce the bug? index.js package.json then run from the sub folder to compare to npm |Variable | bun | node(npm) | | | | | | npm command | "run script" | "run" | | npm config local prefix | C:\\project\sub | C:\\project | | INIT CWD| undefined | C:\\project\sub | What is the expected behavior? npm command should be run npm config local prefix should be where the package.json is I think it follows”
“What version of Bun is running? 1.2.17+282dda62c What platform is your computer? Darwin 24.5.0 arm64 arm What steps can reproduce the bug? reference process.env.BUN PUBLIC TEST in the frontend. Image Running file directly works: What is the expected behavior? Should work What do you see instead? Load page: console error Image Additional information No response”
“Bun Revision 1.2.17+282dda62c Platform Darwin 24.5.0 arm64 arm Bug Details For the life of me I can not figure out why I get env: node: No such file or directory when installing globally despite already adding the bin folder to my $PATH and restarting the shell. Top of my .zshrc (I'm using an oh my zsh config): Have echoed path to make sure it's in there multiple times, and it still doesn't work for some reason: Just frustrating because local dependencies seem to still work, it's just global pac”
“What version of Bun is running? 1.2.16 canary.22+022a567af What platform is your computer? Darwin 24.5.0 arm64 unknown What steps can reproduce the bug? root package.json root api/package.json Run bun install in root works as expected. Try to run bun link <some page , it fails with error: typescript@catalog: failed to resolve What is the expected behavior? bun link works together with catalog What do you see instead? error: typescript@catalog: failed to resolve Additional information No response”
“What version of Bun is running? 1.2.13 canary.23+500199fe8 What platform is your computer? Darwin 24.4.0 arm64 arm What steps can reproduce the bug? Create these files Then run bun test What is the expected behavior? Test passes What do you see instead? Additional information .env files are loaded correctly”
“What version of Bun is running? 1.2.4+fd9a5ea66 We can do this with the SDK to set the ResponseCacheControl But missing in the Bun API?”
“What version of Bun is running? 1.1.29+6d43b3662 What platform is your computer? Microsoft Windows NT 10.0.19045.0 x64 What steps can reproduce the bug? index.js package.json What is the expected behavior? Expected output is all torrent files are downloaded under the torrents folder. The same code works perfectly with node, without even having to add "trustedDependencies": ["node datachannel"] in package.json What do you see instead? While running this with bun, the folders are created, but it g”
“What version of Bun is running? 1.1.15 What platform is your computer? Mac os : Darwin 23.5.0 arm64 arm What steps can reproduce the bug? Create a new project. Create two environment variables files .env.production and .env.development Run bun env file=.env.development install What is the expected behavior? It should read .env.development file What do you see instead? It reads from .env.production file Additional information Screenshot 2024 06 21 at 7 27 46 AM”
“What version of Bun is running? 1.1.10 canary.1+6566b8a6d What platform is your computer? Darwin 23.5.0 arm64 arm What steps can reproduce the bug? Add workspaces to a package.json and run bun filter ' ' dev or a specific package in the filter What is the expected behavior? that the dev script would be executed in all packages. What do you see instead? ➜ bun filter 'isomorphic' run dev error: ENOENT Additional information No response”
“What version of Bun is running? 1.1.7+b0b7db5c0 What platform is your computer? Darwin 23.4.0 x86 64 i386 What steps can reproduce the bug? What is the expected behavior? Creation of a usable cli program. What do you see instead? Additional information the error message is about the package.json the script I am trying to run is in a subdirectory. is there an additional parameter to handle this?”
“What version of Bun is running? 1.1.6+e58d67b46 What platform is your computer? MacOS Sonoma What steps can reproduce the bug? I have following files setup in my project: ./package.json : /packages/functions/package.json /packages/functions/auth/package.json /packages/functions/storage/package.json Now run bun run fun:build . The output is shown as: What is the expected behavior? The same command works fine in pnpm with the r (recursive) flag. What do you see instead? No response Additional info”
“What version of Bun is running? 1.1.3+2615dc742 What platform is your computer? Microsoft Windows NT 10.0.22631.0 x64 What steps can reproduce the bug? bunfig.toml seems unable to work on Windows Here is my config Command bun install g live server still installed live server in /.bun, downloaded files cached in it as well. We need A BUN HOME env variable, so that we can just easily choose where to install and cache files downloaded or used by bun. What is the expected behavior? Command bun insta”
“What version of Bun is running? 1.0.30 What platform is your computer? Darwin 22.5.0 arm64 arm What steps can reproduce the bug? 1. Clone the reproduction repo 2. Run bun test Read more in "Additional information". What is the expected behavior? When running bun test , the mocked module overrides the original module even though the original module has already been imported by another test file that ran before it. What do you see instead? The mock for the module isn't "attached" if the original m”
“What version of Bun is running? 1.0.15 What platform is your computer? Darwin 23.1.0 arm64 arm What steps can reproduce the bug? Run bun pm g bin in a local Bun project What is the expected behavior? Print the path to the global bin directory What do you see instead? error: MissingPackageJSON Bun could not find a package.json file. Additional information bun pm bin (without g ) works fine.”
“What version of Bun is running? oven sh/setup bun@v1 (1.0.10+d85bd49d8) What platform is your computer? Ubuntu on Github Actions What steps can reproduce the bug? 1. Failed example : Fork and use this commit: https://github.com/jasongitmail/super sitemap/tree/1c6b4389abc3f82e0167ac0a7520ca873b0085c2 This commit's Github Actions .github/workflows/ci.yml uses bun install ; vitest always fails. You can view the job output from this commit here: https://github.com/jasongitmail/super sitemap/actions/”
“What version of Bun is running? 1.0.1+31aec4ebe325982fc0ef27498984b0ad9969162b What platform is your computer? Darwin 21.6.0 arm64 arm What steps can reproduce the bug? Have a local repo that is a regular npm module with a "bin" path in package.json. Example: What is the expected behavior? I can install the npm module globally from my local copy by referencing the folder. If im in the root dir I can refer to the module with . or ./ The command cowsay should now be globally available. What do you”
“What is the problem this feature would solve? run bun test when some packages import resource files, such as .less, .sass, .jpg What is the feature you are proposing to solve the problem? provide transform stub config for bun test, so users can stub resource files, such as .less, .sass, .jpg In another word, provide feature like: https://www.npmjs.com/package/jest transform stub”
