fnm icon indicating copy to clipboard operation
fnm copied to clipboard

When fnm is installed with winget, the symbolic link gets incorrect target if account contains character with accent

Open Attila-FIN opened this issue 8 months ago • 2 comments

I've installed fnm with winget winget install Schniz.fnm

However, after installation the execution was not possible. Then I've found that in folder %LOCALAPPDATA%\Microsoft\WinGet\Links the link to fnm.exe had an incorrect target, since my account's folder includes an "á" character.

The solution was to re-create the link with: New-Item -ItemType SymbolicLink -Path $env:LOCALAPPDATA -Name "\Microsoft\WinGet\Links\fnm.exe" -Value "$env:LOCALAPPDATA\Microsoft\WinGet\Packages\Schniz.fnm_Microsoft.Winget.Source_8wekyb3d8bbwe\fnm.exe"

However, after executing "fnm env", the result still includes the incorrect character and the resultant environment variables are wrong.

Attila-FIN avatar Jun 18 '24 19:06 Attila-FIN