Open ferntheplant opened 7 months ago
npm adds symlinks to ~/.local/share/mise/installs/node/18/bin/
and that's typical behavior for languages in mise. This effectively locks the node version to the globally installed packages which is useful in case they're not compatible with future versions. That said it is annoying because updating node versions gets rid of all of your global packages.
It looks like we could probably retain this behavior via something that uses the install.globalDir
config, though I didn't see an env var way to configure that at first glance. Even that would require a shim though, so it wouldn't be ideal.
@Jarred-Sumner any thoughts on the best way to support bun? Can we use a single directory for all bun versions? Will bun be compatible with packages installed with different bun versions?
I am a little hesitant to use ~/.bun
just because no other language uses a global directory like that but it could probably be done.
Ah yea that makes sense - I'm not really used to considering having multiple versions installed simultaneously so the global ~.bun/bin
dir didn't seem like a concern. For now I manually added it to my path so I can use global bun packages and I don't plan on having multiple bun version simultaneously installed so it won't cause any issues.
I guess optimally bun would place it's bin dir alongside itself like does golang and python.
Describe the bug After successfully installing bun with
mise use -g bun
and installed some global package likebun add -g @biomejs/biome
I cannot run biome directly from my shell via$ biome --version
because~/.bun/bin
is not on my$PATH
For example with go I can install go with mise, run
go install <some package>
, and immediately be able to run the package in my shell with<some package> --version
To Reproduce From a fresh mise install run the following
Expected behavior I would expect globally installed bun packages to be accessible in my shell by having
~/.bun/bin
on my path. The official bun install script sets this for you and emits a command to add to your bashrc in case the automatic path update didn't work.mise doctor
outputThe dasel shim missing is irrelevant to the bun bin packages not being on path
Additional context Add any other context about the problem here.