oven-sh / bun

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

BUN_HOME env variable for bun #9999

Open MMMMMoris opened 3 months ago

MMMMMoris commented 3 months ago

What is the type of issue?

Documentation is confusing

What is the issue?

Firstly, .bunfig.toml seems unable to work on Windows

Here is my config

[install.cache]
# the directory to use for the cache
dir = "~/AppData/Local/Temp/bun/install/cache"

# when true, don't load from the global cache.
# Bun may still write to node_modules/.cache
disable = false

# when true, always resolve the latest versions from the registry
disableManifest = false

Command bun install -g live-server still installed live-server in ~/.bun, downloaded files cached in it as well.

Secondly, can bun install packages through the value of env variable $BUN_HOME?

Just like many other program will do, set up a $PROGRAM_HOME env variable, and make modification under that very path only. Like $JAVA_HOME, $GOPATH, $GOCACHE To be honest, I don't want A .bun folder existing in my Home Folder, there is a .dev folder I set up for program tools specifically.

Where did you find it?

No response

jdalton commented 3 months ago

@MMMMMoris Can you file a separate issue for "Firstly, .bunfig.toml seems unable to work on Windows". That way we are can track it better.

MMMMMoris commented 3 months ago

@MMMMMoris Can you file a separate issue for "Firstly, .bunfig.toml seems unable to work on Windows". That way we are can track it better.

A bug issue opened here #10152, thanks for your attention.

Ecalose commented 1 month ago

same problem,any update for this?