Skip to content

Can't infer shell in shim call in v1.37.0 #1153

@sky96111

Description

@sky96111

fnm env --use-on-cd | Out-String | Invoke-Expression and fnm completions | Out-String | Invoke-Expression shows

❯ fnm env --use-on-cd | Out-String | Invoke-Expression
error: Can't infer shell!
fnm can't infer your shell based on the process tree.
Maybe it is unsupported? we support the following shells:
* bash
* zsh
* fish
* powershell
* cmd
Invoke-Expression: Cannot bind argument to parameter 'Command' because it is an empty string.

environment:
fnm version: v1.37.0
OS: Windows 11 x86_64
OS Version: 23H2 22631.3672
Shell: PowerShell 7.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions