oven-sh / bun

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

install package globally #15534

Closed titanRoyal closed 20 hours ago

titanRoyal commented 1 day ago

How can we reproduce the crash?

when I try to Test local package I run "bun install -g ." it throws this error "panic(main thread): Internal Error: Do not pass posix paths to Windows APIs, was given '\package.json'. Please open an issue on GitHub with a reproduction. oh no: Bun has crashed. This indicates a bug in Bun, not your code."

Relevant log output

Stack Trace (bun.report)

Bun v1.1.36 (ededc16) on windows x86_64 [AddCommand]

panic: Internal Error: Do not pass posix paths to Windows APIs, was given '\package.json'. Please open an issue on GitHub with a reproduction.

Features: lockfile_migration_from_package_lock

Sentry Issue: BUN-7ZF

github-actions[bot] commented 1 day ago

@titanRoyal, the latest version of Bun is v1.1.38, but this crash was reported on Bun v1.1.36.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade
RiskyMH commented 20 hours ago

Duplicate of #13806.

Also if you bun link and bunx <package_name>@link:<package_name> you can test your package locally (though it would be nice if this was easier).