[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.
$ 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.1Source: Schniz/fnm