#Have to Reinstall Bun Every Time I Use it

1 messages · Page 1 of 1 (latest)

verbal harbor
#

Thanks in advance for any help. I'm using bun in visual studio code on macos (Sonoma 14.2). I run

curl -fsSL https://bun.sh/install | bash
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

In the visual studio code terminal. Bun is installed as expected. If I then close and reopen visual studio code, bun no longer exists: zsh: command not found: bun.

The same thing happens if I use the default macos "terminal" app. I can install it and run it fine, but as soon as I close and reopen the app, I have to reinstall it.

This is probably just me not knowing how macos works, but at the very least your installation instructions could use more idiot-proofing for people like me. Thanks again.

#

Have to Reinstall Bun Every Time I Use it

sour lodge
#

you need to paste the two exports into your profile/rc file

#

which is probably either ~/.bash_profile or ~/.bashrc

verbal harbor
#

how can i tell what it is

#

ive checked and none of those exist

sour lodge
#

you can create one

verbal harbor
#

got it

#

thanks

#

it was ~/.bash_profile in the end

#

thanks for your help