I faced the same error , if you use linux you can just add the command fnm env --use-on-cd | Out-String | Invoke-Expression to your profile of shell. Otherwise , just run it in shell and fnm list then you can choose from the installed ones.
fnm env --use-on-cd | Out-String | Invoke-Expression
fnm list