Closed julen closed 5 years ago
Hi @julen and sorry for the inconvenience! Which version are you using? which OS?
This is v1.7.1.
I agree that fnm use
could install if missing, but I'm not sure everybody's gonna like it, and rather have fnm use --install-if-missing
or have some interactivity
I'm using v1.6.2 on Mac OS 10.13.6.
I believe the error happens when you have zero node installations handled by fnm. Try removing those versions you have (or moving the ~/.fnm/node-versions/
folder somewhere else for that matter) and you should be able to reproduce the problem.
Woah, very good. I'm pushing a fix to that! thanks
Similar to #11, running
fnm use
when no node versions have been installed results in the same unfriendly error message and 125 error code:As a user I'd expect
fnm use
to install the version in case it didn't exist before. Please forgive if this is intended as my expectations come from usingnvm
before 😁; in such case, providing a friendlier message and pointing tofnm install
would help.