Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to override the default node-versions and caches directories? #904

Closed
alshdavid opened this issue Jan 5, 2023 · 0 comments

Comments

@alshdavid
Copy link

alshdavid commented Jan 5, 2023

I'm a little weird and like to manually install things. I noticed that some of the assets spill out from the install directory making uninstalling fnm a bit challenging. I realise I am installing fnm globally, this is intentional.

My install process:

# Build
wget https://github.com/Schniz/fnm/archive/refs/heads/master.zip
unzip master.zip
cd fnm-master
cargo build --release

# Install
sudo mkdir /opt/fnm
sudo mv target/release/fnm /opt/fnm
sudo ln -s /opt/fnm/fnm /usr/local/bin/fnm

# Per-shell setup
eval "$(fnm env --shell zsh)"

By default node versions install to: /Users/dalsh/Library/Application Support/fnm/node-versions and cache versions are in /Users/dalsh/Library/Caches/fnm_multishells/*.

I would love to keep everything contained within my install directory of /opt/fnm - perhaps /opt/fnm/node-versions/* and /opt/fnm/multishells/*.

Is there a way to configure these settings or perhaps have it automatically install next to the binary?

@alshdavid alshdavid closed this as not planned Won't fix, can't repro, duplicate, stale Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant