oven-sh/bun · error · Error
NotSameFileSystem
Error message
NotSameFileSystem
What it means
A rename-based operation failed because source and destination are on different filesystems (EXDEV). It fires when installing via hardlink/rename across mount points, e.g. cache and project on different volumes.
Solutions
- Let Bun fall back to copying (or set the cache on the same filesystem as the project)
- Move BUN_INSTALL/cache to the same volume as your project
- Use a project directory on the same mount as the cache
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/install/error.rs:207 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/0b1aa7a2959fd781.
Report an issue: GitHub.
Appendix: source
Thrown at src/install/error.rs:207
#[error("Lockfile validation failed: unexpected number of package fields")]
LockfileValidationFailedUnexpectedNumberOfPackageFields,
#[error("Lockfile validation failed: invalid package list range")]
LockfileValidationFailedInvalidPackageListRange,
#[error("Lockfile validation failed: invalid resolution tag")]
LockfileValidationFailedInvalidResolutionTag,
#[error("Lockfile validation failed: invalid package meta")]
LockfileValidationFailedInvalidPackageMeta,
#[error("Lockfile validation failed: invalid bin tag")]
LockfileValidationFailedInvalidBinTag,
#[error("Lockfile validation failed: invalid package scripts")]
LockfileValidationFailedInvalidPackageScripts,
#[error("InvalidNPMLockfile")]
InvalidNPMLockfile,
#[error("NotSupported")]
NotSupported,
#[error("Unexpected")]
Unexpected,
#[error("NotSameFileSystem")]
NotSameFileSystem,
#[error("FailedToCopyFile")]
FailedToCopyFile,
#[error("InvalidBinCount")]
InvalidBinCount,
#[error("InvalidBinContent")]
InvalidBinContent,
#[error(transparent)]
Sys(#[from] bun_errno::SystemErrno),
#[error(transparent)]
Alloc(#[from] bun_alloc::AllocError),
#[error(transparent)]
Core(#[from] bun_core::Error),
#[error(transparent)]
Resolver(#[from] bun_resolver::Error),
#[error(transparent)]
Spawn(#[from] bun_spawn::Error),View on GitHub (pinned to 8c5296ac45)