Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#518·fnm

[Request] Add --install-if-missing to fnm exec ?

Author: jcayzacCreated Aug 20, 2021Updated Aug 19, 2026

I'm calling fnm directly and not using a shell environment. This means fnm use fails because it can't find the environment it depends on. I would love being able to pass --install-if-missing directly to fnm exec, e.g.

bash
$ fnm exec --using="v10.24.1" --install-if-missing -- node --version
Installing Node v10.24.1 (x64)
v10.24.1
$ fnm exec --using="v10.24.1" --install-if-missing -- node --version
v10.24.1
$ fnm exec --using="v10.24.1" --install-if-missing -- node --version
v10.24.1

Source: Schniz/fnm

View original on GitHubView discussion on GitHub